• Backup and restore the xref table during attempted startxref recovery to avoid corrupt states. Added a guard condition to handle invalid xref entries types, preventing processing of unsupported cases. These changes improve robustness during PDF parsing and recovery.
    m-holger authored
     
    Browse File »


  • During xref table reconstruction ignore uncompressed object entries found
    in xref streams. The xref table gets populated with entries for the
    objects actually found in the file. The entries for uncompressed object in
    xref streams are redundant and potentially incorrect.
    m-holger authored
     
    Browse File »



  • ... containing objects with no white-space between them.
    
    To enforce the rule that objects end at the start-offset of the next
    object, each object is parsed in it own object stream.
    
    To facilitate this, a new private API input source is::OffsetBuffer has
    been added which only contains the object but reports offsets relative to
    the start of the object stream. This is adapted from OffsetInputSource by
    changing the direction of the offset, endowing it with its own
    BufferInputSource and striooing out checks duplicated in BufferInputSource.
    
    Fixes the expected failure in the test case added in #1266.
    m-holger authored
     
    Browse File »