Error opening PDF: “There was an error opening this document. The file is damaged and could not be repaired”

Last Updated : Apr 03, 2024 |

Condition

When you try to open a PDF produced from Tridion Docs, the displays There was an error opening this document. The file is damaged and could not be repaired error, and you cannot open the PDF.

Cause

When a table breaks across pages in the PDF, the text Table continues appears at the bottom of the table to indicate that the table continues on the next page. When certain tagging, such as conditionalizing columns is used in tables in a larger publication, the combination of the tagging and the Table continues can cause an issue in Antenna House, which is one of the applications used in our DITA processing.

If you encounter this issue, you can turn off the Table continues at the publication level.

Solution

Procedure

  1. Right-click the bookmap and select Check out with in Oxygen XML Author.
  2. Expand the bookmeta element.
  3. Position the cursor before the ending bookmeta tag, press Enter, and select othermeta.

    If you are using the <bookid> element, position the cursor before < bookid> instead of putting the cursor before the ending <bookmeta> element.

  4. In the Attributes dialog box, type yes in the content field and turnOffTableContinues in the name field.
  5. Click OK.
  6. Click SDLTridionDocs > Check in and follow the prompts to check in the map.

    If you have the publication open that uses the bookmap that you edited, Tridion Docs displays a reload message The object bookmap-name has been changed by another application and the new content has been loaded.