Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Apr 07, 2022 11:12 pm

Hello,

I've managed to create a 2.4GB PDF using Spire and saved it to the file system.

I then try to run this code:

Code: Select all
using (var loadedPdf = new PdfDocument(dest)
            {
                var formWidget = loadedPdf.Form as PdfFormWidget;
                for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
                {
                    var pdfField = formWidget.FieldsWidget.List[i] as PdfField;

                    // If the two above conditions are met, create a bookmark.
                    CreateBookmark(loadedPdf, pdfField.Page, "test");
                }

                loadedPdf.SaveToFile(dest);
            }


During testing, I've noticed that when loading the PDF into a PDF Document, it only seems to be able to load the first 2 pages of the original PDF (the full document is 81000 pages).

Then when trying to run the SaveToFile method, I receive a System.IO.Exception complaining that the file I'm trying to save is currently in use by another process.

I'd like to know why, in this instance, Spire is unable to load the full document into memory when loading the large PDF. I'm assuming that issue and the File Lock issue are probably related.

I can provide the 2.4GB PDF file to you for your internal testing so please let me know how best to pass that to you.

Thank you,
Zac

ZCliff92
 
Posts: 28
Joined: Thu Jan 20, 2022 1:58 am

Fri Apr 08, 2022 2:22 am

Hi,

Thank you for your inquiry.
The forum has 2MB limitation on attachment size. You could upload your file via DropBox or OneDrive and then provide us with the download link (attach the download link here or send to our email (support@-eiceblue.com)).
In addition, to help us have a better investigation, please also provide your test environment (Win 10, 64bit, 16gb) and the info of application (Console App, .NET Framework 4.6, X64). Thanks in advance.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Mon Apr 11, 2022 2:55 am

Hi Kylie,

Thank you for your reply.

I've uploaded the file to an Azure Blob Storage container. The link to this file is in a .txt file I've attached to this post.

The link has a 3 day timeout so please try to access the file within the next few days.


As for test environment information here are my specs:

-Windows 11 Home
-64bit
-11th Gen Intel(R) Core(TM) i7-1165G7
-16GB

Application Info:

-Console Application
-.NET Core 3.1
-x64

ZCliff92
 
Posts: 28
Joined: Thu Jan 20, 2022 1:58 am

Mon Apr 11, 2022 10:31 am

Hi,

Thank you for your reply.
I will download your file and give you a feedback after the test.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Tue Apr 12, 2022 9:33 am

Hi,

I reproduced your problem on my side and posted it to our bug tracking system with the ticket number SPIREPDF-5082. Once the problem is solved or there is any update, I will inform you as soon as possible. Sorry for the inconvenience.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Fri May 13, 2022 12:15 am

Hello Kylie,

It's been about a month now, do we have an update on when this issue may be addressed?

Thank you,
Zac

ZCliff92
 
Posts: 28
Joined: Thu Jan 20, 2022 1:58 am

Fri May 13, 2022 10:15 am

Hi Zac,

Thanks for your following up.

Due to the complexity of the problem, we have not solved it yet. I will urge the development team again to fix it ASAP. Sorry for the delay.
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Thu Jun 02, 2022 12:26 am

Hello,

It's been almost 3 weeks since the last communication on this issue.

Has there been any progress in finding a solution here?

Do we have a timeframe on when we can expect this to be resolved?

Thanks,
Zac

ZCliff92
 
Posts: 28
Joined: Thu Jan 20, 2022 1:58 am

Thu Jun 02, 2022 9:34 am

Hi,

Sorry our dev team haven't found a good solution to deal with it yet and I can't provide a timeframe at this moment. I have urged our dev team again and they will speed up to fix it, please spare us more time, if there is any meaningful progress, I will inform you. Thank you for understanding.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to Spire.PDF

cron