DEV Community

Lalit Kumar
Lalit Kumar

Posted on

The document could not be saved. A number is out of range.

When the user tries to view a PDF or delete a page from a PDF, then you see an error message;

“A number is out of range.”

A user can also get the same error when you try to perform other actions on the PDF, such as combining it with another PDF or inserting a new page.

Solution:

Export the PDF as a PostScript file and then convert it into a PDF using Distiller. The “A number is out of range” error occurs when Acrobat finds some problem with the underlying structure of the PDF file. The best solution is to get a new PDF from the owner. If you can’t get one, then follow the below steps to resolve the problem.


title: "originally posted here 👇"

canonical_url: https://kodlogs.com/blog/692/the-document-could-not-be-saved-a-number-is-out-of-range

Steps to follow:

  • Open the PDF in Acrobat.
  • Choose File -> Export To -> PostScript.
  • In the Save As PDF dialog box, enter a different name for the file and then click on the Save button.
  • Go to the folder where you saved the PostScript. Right-click on the file and choose Open with Adobe Acrobat Distiller. Acrobat Distiller converts the PostScript file into PDF file. The PDF file now saved in the same folder.
  • Open the PDF file in Acrobat. Now you can try to view the pages or delete, insert, or add a page in the PDF.

Find more in original blog

Top comments (0)