Error Message Instead Only Number of Pages After "Create PDF" API

New Here ,
May 23, 2022 May 23, 2022

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.

TOPICS
Document Generation API , PDF Services API

Views

50

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 24, 2022 May 24, 2022

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.

Likes

Translate

Translate
Adobe Employee ,
May 23, 2022 May 23, 2022

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. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 24, 2022 May 24, 2022

Copy link to clipboard

Copied

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 24, 2022 May 24, 2022

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources