Commit b0457b37e2af4d782f38532f41d50418236e6780

Authored by m-holger
Committed by Jay Berkenbilt
1 parent 0ca44ef8

Update doc comment for QPDF::fixDanglingReferences

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