Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
May 23, 2022 May 23, 2022

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
881
Translate
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.

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

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. 

Translate
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
 
Translate
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
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.

Translate
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