Copy link to clipboard
Copied
After using the "Create PDF" API to convert a word document (docx) to PDF, I'm using Ghostscript in order to get the generated PDF's number of pages and receiving the string " **** Error: This hybrid file's XRefStm does not point to a valid stream.\n Ignoring error, output may be incorrect.\n1\n" where 1 is the number of pages. The string should contain only the number of pages.
I don't see anything wrong with that PDF. Unfortunately I'd have to say I think it's your script? Do note that our services have a Properties API that also returns page count. You could just use that.
Copy link to clipboard
Copied
Can you share the PDF output? Our service should generate good PDFs only, so I'm leaning towards blaming your script, but I'd like to see the PDF you used if I could.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I don't see anything wrong with that PDF. Unfortunately I'd have to say I think it's your script? Do note that our services have a Properties API that also returns page count. You could just use that.