2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-08 17:24:06 +00:00

Update doc comment for QPDF::fixDanglingReferences

This commit is contained in:
m-holger 2022-12-07 10:07:51 +00:00 committed by Jay Berkenbilt
parent 0ca44ef84c
commit b0457b37e2

View File

@ -713,15 +713,16 @@ class QPDF
QPDF_DLL QPDF_DLL
void showXRefTable(); void showXRefTable();
// Detect all indirect references to objects that don't exist and // Starting from qpdf 11.0 user code should not need to call this method.
// resolve them by replacing them with null, which is how the PDF // Before 11.0 this method was used to detect all indirect references to
// spec says to interpret such dangling references. This method is // objects that don't exist and resolve them by replacing them with null,
// called automatically if you try to add any new objects, if you // which is how the PDF spec says to interpret such dangling references.
// call getAllObjects, and before a file is written. The qpdf // This method is called automatically when you try to add any new objects,
// object caches whether it has run this to avoid running it // if you call getAllObjects, and before a file is written. The qpdf object
// multiple times. You can pass true to force it to run again if // caches whether it has run this to avoid running it multiple times.
// you have explicitly added new objects that may have additional // Before 11.2.1 you could pass true to force it to run again if you had
// dangling references. // explicitly added new objects that may have additional dangling
// references.
QPDF_DLL QPDF_DLL
void fixDanglingReferences(bool force = false); void fixDanglingReferences(bool force = false);