Global |
When a document cannot be read as written - a damaged or missing cross-reference table, wrong stream lengths, a document catalog the trailer does not point to - it is read again with its structure rebuilt from the objects the file contains, as PDF viewers do. A document that reads as written is not affected.
Set it to false to refuse such documents instead: opening one throws an exception. It applies to every document opened after it is set: a document loaded from a file or a stream and a document appended or merged into another. The PDF to text and PDF to image converters read a document their own reader cannot open through the same repair.
A repaired document is saved in full, not as an update to the file it was read from, so a digital signature it carried no longer verifies once it is saved. A document opened with a wrong password is refused either way.