Logo white

OpenSystemsDevelopment / qpdf

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 4,691
  • Compare
  • Branches 1
  • Tags 0
  • qpdf
  • libqpdf
  • QPDF.cc
17 Mar, 2025
2 commits
  • Revert "Split QPDF.cc into QPDF.cc and QPDF_objects.cc" ...
    57da8874
    This reverts commit bb045907a043b5c6de9fb804ff11087333747329.
    m-holger authored
    2025-03-17 13:50:23 +0000  
    Browse File »
  • Split QPDF.cc into QPDF.cc and QPDF_objects.cc ...
    bb045907
    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
    2025-03-17 12:17:06 +0000  
    Browse File »

16 Mar, 2025
2 commits
  • Merge pull request #1392 from m-holger/i1335 ...
    9740930b
    Refine recovery from missing startxref (fixes #1335)
    m-holger authored
    2025-03-16 07:54:27 +0000  
    Browse File »
  • Merge pull request #1391 from m-holger/i1362 ...
    ab48d664
    Refactor xref table reconstruction (Fixes #1362)
    m-holger authored
    2025-03-16 07:43:39 +0000  
    Browse File »

14 Mar, 2025
2 commits
  • Refactor QPDF::isLinearized
    27791cc8
    m-holger authored
    2025-03-14 09:12:52 +0000  
    Browse File »
  • Use new read method in QPDF::pipeStreamData
    5dcf3ba9
    m-holger authored
    2025-03-14 09:11:17 +0000  
    Browse File »

11 Mar, 2025
1 commit
  • Minor code formatting fixes
    a9b5ebef
    m-holger authored
    2025-03-11 13:47:23 +0000  
    Browse File »

10 Mar, 2025
2 commits
  • Refine recovery from missing startxref (fixes #1335) ...
    7927241d
    If startxref cannot be found in the last 1024 try finding it in the
    whole file and check whether it is valid.
    m-holger authored
    2025-03-10 18:26:14 +0000  
    Browse File »
  • Refactor xref table reconstruction (Fixes #1362) ...
    649709a8
    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
    2025-03-10 15:12:28 +0000  
    Browse File »

07 Mar, 2025
1 commit
  • Enhance error checking of object stream object ids and offsets ...
    f06209ca
    The original test file contains multiple entries with id 0 and offset 0.
    One entry has been modified such that the id is valid (6).
    
    Object streams with invalid offsets are a source of unreproduceable
    oss-fuzz time-outs.
    m-holger authored
    2025-03-07 20:27:54 +0000  
    Browse File »

06 Mar, 2025
2 commits
  • Tidy QPDF_private.hh ...
    cff95bff
    Modernise constructors, make classes final, etc.
    m-holger authored
    2025-03-06 14:12:35 +0000  
    Browse File »
  • Move QPDF inner class definitions to new QPDF_private.hh
    5c866633
    m-holger authored
    2025-03-06 14:12:27 +0000  
    Browse File »

05 Mar, 2025
1 commit
  • Move QPDFObject::disconnect to Basehandle
    f78b9993
    m-holger authored
    2025-03-05 09:08:41 +0000  
    Browse File »

03 Mar, 2025
2 commits
  • Un-inline QUtil functions ...
    67edbfd9
    Add new private Util.hh header to define inline functions and expose as
    ordinary functions in QUtil.
    m-holger authored
    2025-03-03 14:01:58 +0000  
    Browse File »
  • Tidy public header files ...
    783d591f
    - Remove unnecessary QPDF_DLLs
    - make deleted constructors public
    - move some comments to support tooltips
    - modernise some constructors and destructors
    - change some member shared pointers to unique pointers
    m-holger authored
    2025-03-03 14:01:56 +0000  
    Browse File »

02 Mar, 2025
5 commits
  • Use QPDFObjectHandle::as_array to iterate over arrays in library
    1b7c8727
    m-holger authored
    2025-03-02 20:51:32 +0000  
    Browse File »
  • Use QPDFObjectHandle::as_dictionary instead of getKeys in library
    b6f5330d
    m-holger authored
    2025-03-02 20:51:32 +0000  
    Browse File »
  • Move QPDFObject::as to BaseHandle
    873562f4
    m-holger authored
    2025-03-02 20:45:49 +0000  
    Browse File »
  • Refactor QPDFObject to use std::variant instead of std::shared_pointer
    8d7ed764
    m-holger authored
    2025-03-02 20:45:49 +0000  
    Browse File »
  • Refactor QPDF_Stream ...
    09c3dc5f
    Move all stream-specific methods to new class qpdf::Stream
    m-holger authored
    2025-03-02 20:45:49 +0000  
    Browse File »

16 Feb, 2025
1 commit
  • Pass QPDFObjGen by value ...
    d8e4a081
    Except for virtual functions to avoid the need for users to update code.
    m-holger authored
    2025-02-16 11:56:39 +0000  
    Browse File »

08 Feb, 2025
1 commit
  • Bump clang-format to version 20 and reformat ...
    38d8cc7f
    This improves indentation of long strings. This commit also fixes some
    trailing whitespace in ChangeLog.
    Jay Berkenbilt authored
    2025-02-08 11:17:57 -0500  
    Browse File »

02 Feb, 2025
1 commit
  • Refine xref reconstruction (fixes #1335) ...
    ca3ea2e3
    When recovering XRef streams, start with the stream with the largest
    /Size rather than the largest offset.
    
    Also, if reconstruction fails to find a trailer with a valid /Root entry
    search for a root object.
    m-holger authored
    2025-02-02 21:14:08 +0000  
    Browse File »

28 Jan, 2025
1 commit
  • Fix QPDF::copyForeignObject warning ...
    cc95f473
    Provide correct obj_gen and offset.
    m-holger authored
    2025-01-28 11:01:18 +0000  
    Browse File »

16 Jan, 2025
3 commits
  • Revert "Merge pull request #1272 from m-holger/xref_table" ...
    0d5c57c1
    This reverts commit ff2a78f579ebdd06b417e34260a17dba06e71137, reversing
    changes made to 8f54319f7a6514110f4b05cbbf1cb1c9fc8cb6a0.
    m-holger authored
    2025-01-16 16:40:08 +0000  
    Browse File »
  • Revert "Merge pull request #1289 from m-holger/fuzz" ...
    f1800410
    This reverts commit 0e92cf6bf399249c603c3d0212e898fd29e71fcd, reversing
    changes made to 7d34b89a69e8e89c098dd373442f7df809c28eff.
    m-holger authored
    2025-01-16 16:36:48 +0000  
    Browse File »
  • Revert "Merge pull request #1297 from m-holger/qpdf_objects" ...
    efb2e8f6
    This reverts commit c648b9a018105a3c30b3e7f3c5f8a058d3ddd92c, reversing
    changes made to 12b67a3227df6b6df3a4f5f098e11cce173ff7d5.
    m-holger authored
    2025-01-16 16:15:11 +0000  
    Browse File »

09 Oct, 2024
8 commits
  • Add QPDF::Objects destructor ...
    acc57ca0
    Also, make obj_cache private and rename to table.
    m-holger authored
    2024-10-09 12:02:34 +0100  
    Browse File »
  • Move calculations from QPDF::getObjectCount to Objects::next_id
    336d7833
    m-holger authored
    2024-10-09 11:55:29 +0100  
    Browse File »
  • Add new method Objects::all
    113ea4e7
    m-holger authored
    2024-10-09 11:39:44 +0100  
    Browse File »
  • Add new method Objects::swap
    9e03dc54
    m-holger authored
    2024-10-09 11:39:17 +0100  
    Browse File »
  • Add new method Objects::replace
    83fc18af
    m-holger authored
    2024-10-09 11:27:40 +0100  
    Browse File »
  • Add new method Objects::get
    6c990306
    m-holger authored
    2024-10-09 11:27:28 +0100  
    Browse File »
  • Make Xref_table an inner class of QPDF::Objects
    b5a57800
    m-holger authored
    2024-10-09 09:53:57 +0100  
    Browse File »
  • Move private methods in QPDF_objects to QPDF::Objects
    a3f693c8
    m-holger authored
    2024-10-09 08:58:57 +0100  
    Browse File »

07 Oct, 2024
2 commits
  • Add new inner class to QPDF::Objects
    2015f71c
    m-holger authored
    2024-10-07 14:18:59 +0100  
    Browse File »
  • Split QPDF.cc into QPDF.cc and QPDF_objects.cc ...
    83897e87
    Move methods responsible for loading or keeping track of objects to
    QPDF_objects.cc.
    m-holger authored
    2024-10-07 14:10:18 +0100  
    Browse File »

28 Sep, 2024
2 commits
  • Validate that offsets in object streams are strictly increasing
    19252522
    m-holger authored
    2024-09-28 00:28:17 +0100  
    Browse File »
  • Add sanity check for xref stream /Size entry
    1b6a504d
    m-holger authored
    2024-09-28 00:25:31 +0100  
    Browse File »

20 Sep, 2024
1 commit
  • Add sanity check on trailer /Size entry
    21f176d3
    m-holger authored
    2024-09-20 15:28:49 +0100  
    Browse File »