Skip to content

Checks whether the pdf is broken or not

This adds support for the to be added functionality in Poppler, which detects whether or not the Xref Table has been reconstructed. Essentially, I've added a new value in the OpenResult enum to support returning that value if the document is corrupted. Also, I've extended the PDFGenerator class with the function to be called by Poppler if there has been any XRef reconstruction, assuming that the PDFGenerator class actually loads all pages in loading the document and that means that we'd know if the file is broken or not once it has been loaded.

@aacid

Edited by Mahmoud Khalil

Merge request reports