• ... 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 »
  • Only build strings when needed.
    m-holger authored
     
    Browse File »



  • Move methods responsible for loading or keeping track of objects to
    QPDF_objects.cc.
    
    The split was part of the reverted #1297. Reintroducing it now makes it
    easier/safer to keep the work to refactor the xref and object tables in
    sync with main.
    m-holger authored
     
    Browse File »



  • Split reconstruction into three passes - scanning of input for objects and
    trailer, insertion of objects into the xref table, and loading the trailer.
    
    This allows insertion to take place in the usual reverse order and removes
    the need for a separate insertReconstructedXrefEntry method.
    
    It also allows trailer to be tried from most recent to oldest.
    
    Ignore any found trailers without /Root entry.
    m-holger authored
     
    Browse File »








  • Push mode is not used by qpdf and is not tested. It is difficult to see a
    legitimate use for it.
    
    Continuing to support it creates unnecessary constraints and effort when
    adapting the tokenizer.
    m-holger authored
     
    Browse File »