Hello, Support Team,
I am working with a PDF file that is approximately 3.5 GB in size.
When I try to open this PDF, I receive an error and cannot open it.
This PDF does not contain any layers, passwords, or attachments.
It consists of approximately 3,600 scanned pages.
1-1) The code I am using to open the file is as follows:
PdfDocument _doc = new PdfDocument();
_doc.LoadFromFile(_filename);
1-2) The error message is as follows (shown in the original text):
System.ArgumentOutOfRangeException: '負の値ではない数値が必要です。
パラメーター名:value'
この例外は、最初にこの呼び出し履歴
System.IO.FileStream.Position.set(long)
spr跌.恫(long)
spr豟.惽()
spr豟.spr豟(System.IO.Stream)
spr揶.spr揶(System.IO.Stream, string, bool)
spr揶.spr揶(string)
Spire.Pdf.PdfDocument.LoadFromFile(string)
CPDFSpire.GetPageCount(string, bool) 場所: CPDFSpire.cs
でスローされました
2) The product and version I am using are as follows:
Spire.Pdf 10.1.0.1040
3) I am using both Windows 10 and Windows 11, both 64-bit versions. I am also using them in Japan.
4) The application type is a Windows Forms application; the code is written in C# using the .NET Framework 4.8.
5) I tried the following:
A.) Re-printing using Adobe’s “Microsoft Print to PDF” and opening the resulting file
B.) Splitting a single 3,600-page file into two 1,800-page files and opening them
As a result, A.) resulted in an error, but B.) opened successfully.
Could the file size be the reason it won’t open? Please advise.
Thank you for reading.
Sincerely,
h.yamamoto