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.

Mon Jun 16, 2025 1:13 pm

i followed this code sample from the website:




but it failed with...........

Failed to convert xx.pdf: ArguArg_ParamName_Name, index: at System.ThrowHelper.ThrowArgumentOutOfRange_IndexMustBeLessExcept
at Spire.Pdf.Widget.PdfPageCollection.spra(Int32) + 0x37
at Spire.Pdf.PdfDocumentBase.spra(Int32, Int32, Int32) + 0xd5
at Spire.Pdf.PdfDocument.SaveAsImage(Int32) + 0x69
at Spire.Pdf.AOT.NLPdfDocument.PdfDocument_SaveAsImage(IntPtr, Int32, IntPtr) + 0x52

pdf2image also has a problem with these large PDFs and cannot convert them. Any tips? Thank you

ctgarvey
 
Posts: 1
Joined: Wed May 28, 2025 10:42 am

Tue Jun 17, 2025 3:42 am

Hello,

Thanks for your inquiry.
I used the latest version of Spire.PDF for Python for the initial test on Windows, but it did not reproduce your problem. If you were not using the latest version, I suggest that you give it a try first, if the issue still occurs, please provide your input PDF file as well as your test environment (e.g. Windows 10, Python 3.9) to help us further analyze your problem. You can attach your file here or send to this email [email protected]. Thanks in advance.

Sincerely,
Tommy
E-iceblue support team
User avatar

Tommy.Tang
 
Posts: 85
Joined: Mon Apr 21, 2025 7:05 am

Return to Spire.PDF

cron