How can I fix this error? "The document could not be saved. There was a problem reading this document (109)"

We are using PDF files for our reporting system. We are using Microsoft Reporting Services (SSRS) to generate the PDF files. I am running on Windows 7 using Microsoft SQL 2012. I've installed the following SQL hot fix that fixed issues with generating some PDF files: http://support.microsoft.com/kb/2645648.

I am using Adobe Reader XI version 11.0.06.70 to view the PDFs. When the user wants to view a report we copy the PDF file to the user's temporary directory and open Adobe Reader (or whatever is the registered PDF viewer) to view the report. If the user wants to keep a copy of the report they do a Save As and save wherever they want. The file being in the temporary directory is not part of the issue. It is a problem wherever the file is located.

With a small percentage of the reports, they always get the error trying to save the document. I haven't been able to determine any differences in the reports that work or don't work. I've looked all over the internet but haven't found any answer besides "download the file again". This doesn't work. I've tried another PDF viewer and Save As works fine.

I would love to be able to solve this or at least determine if it is an Adobe or Microsoft issue. I would love to send a PDF file that has this issue so we can move forward with finding a solution. At this point we are going to tell our customers to install and use the alternate PDF viewer.


Jeff LeBert


3 Answers

Voted Best Answer

After looking at the file created by SSRS, it's clear that the file was created corrupt: The cross-reference table has an entry to an object that does not exist.

The file can be repaired by using e.g. pdftk, but the right course of action would be to report this to Microsoft and have them fix their PDF output routine.

Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com


By Karl Heinz Kremer   

Any time you get an error message from Acrobat with a number on it, you can hold down the Ctrl key when you click on the OK button to get more information. Try that, and report back with what the detailed error message says.

Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com


Karl Heinz Kremer   

This is an indication of a corrupt PDF file. The question now is, was it corrupt before you opened it (some file corruptions are only discovered when you do a "Save as" - a normal Save will not rewrite the whole file, so it may not even touch the section of the file that is corrupt), or did the corruption occur while editing the file in Reader.

Based on my experience, I would assume that the file was already corrupt. You may want to investigate if your reporting system does generate corrupt PDF files. Based on a quick Google search, I think there is enough evidence that SSRS is actually creating corrupt PDF files from time to time.

Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com


Karl Heinz Kremer   


Please specify a reason: