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
  • QPDFObjectHandle.cc
16 Jan, 2021
1 commit
  • Add warn() to QPDF's public API
    6226b69d
    Jay Berkenbilt authored
    2021-01-16 18:41:53 -0500  
    Browse File »

02 Jan, 2021
5 commits
  • Make more QPDFPageObjectHelper methods work with form XObject
    3be58f49
    Jay Berkenbilt authored
    2021-01-02 14:08:53 -0500  
    Browse File »
  • Bug fix: avoid extraneous pipeline finish calls with multiple contents ...
    bedf35d6
    Avoid calling finish() multiple times on the pipeline passed to
    pipeContentStreams. This commit also fixes a bug in which qpdf was not
    exiting with the proper exit status if warnings found while splitting
    pages; this was exposed by a test case that changed.
    Jay Berkenbilt authored
    2021-01-02 14:08:17 -0500  
    Browse File »
  • Add several methods for working with form XObjects (fixes #436) ...
    a139d2b3
    Make some more methods in QPDFPageObjectHelper work with form
    XObjects, provide forEach methods to walk through nested form
    XObjects, possibly recursively. This should make it easier to work
    with form XObjects from user code.
    Jay Berkenbilt authored
    2021-01-02 12:29:31 -0500  
    Browse File »
  • QPDFPageObjectHelper: getPageImages -> getImages
    63ea4619
    Jay Berkenbilt authored
    2021-01-02 11:33:36 -0500  
    Browse File »
  • QPDFPageObjectHelper::getPageImages: support form XObjects
    e7a85545
    Jay Berkenbilt authored
    2021-01-02 11:33:36 -0500  
    Browse File »

01 Jan, 2021
1 commit
  • Add QPDFObjectHandle::isFormXObject
    1562d34c
    Jay Berkenbilt authored
    2021-01-01 07:36:10 -0500  
    Browse File »

28 Dec, 2020
1 commit
  • Add QPDFObjectHandle::setFilterOnWrite
    12ecd201
    Jay Berkenbilt authored
    2020-12-28 12:58:19 -0500  
    Browse File »

26 Dec, 2020
1 commit
  • Add QPDFObjectHandle::makeDirect(bool allow_streams)
    cc889507
    Jay Berkenbilt authored
    2020-12-26 08:48:18 -0500  
    Browse File »

11 Nov, 2020
1 commit
  • Treat direct page as runtime rather than logic error (fuzz issue 27393)
    bd79138c
    Jay Berkenbilt authored
    2020-11-11 09:50:43 -0500  
    Browse File »

23 Oct, 2020
1 commit
  • Avoid merging adjacent tokens when concatenating contents (fixes #444)
    b30deaee
    Jay Berkenbilt authored
    2020-10-23 08:00:04 -0400  
    Browse File »

16 Apr, 2020
1 commit
  • Fix warnings reported by -Wshadow=local (fixes #431)
    92d3cbec
    Jay Berkenbilt authored
    2020-04-16 12:41:43 -0400  
    Browse File »

05 Apr, 2020
1 commit
  • Allow propagation of errors and retry through StreamDataProvider ...
    893d38b8
    StreamDataProvider::provideStreamData now has a rich enough API for it
    to effectively proxy to pipeStreamData.
    Jay Berkenbilt authored
    2020-04-05 20:07:13 -0400  
    Browse File »

03 Apr, 2020
3 commits
  • Avoid potential segfault in warning methods
    6a4117ad
    Jay Berkenbilt authored
    2020-04-03 21:39:20 -0400  
    Browse File »
  • Add QPDFObjectHandle::unsafeShallowCopy
    38afdcea
    Jay Berkenbilt authored
    2020-04-03 12:16:24 -0400  
    Browse File »
  • Performance: remove Members indirection for QPDFObjectHandle
    89f19b70
    Jay Berkenbilt authored
    2020-04-03 12:16:24 -0400  
    Browse File »

31 Mar, 2020
1 commit
  • Refactor QPDFPageObjectHelper::removeUnreferencedResources() ...
    278710fb
    Refactor removeUnreferencedResources to prepare for filtering form
    XObjects.
    Jay Berkenbilt authored
    2020-03-31 17:39:20 -0400  
    Browse File »

22 Oct, 2019
2 commits
  • Parse Contents in signature dictionary without encryption ...
    5a842792
    Various PDF digital signing tools do not encrypt /Contents value in
    signature dictionary. Adobe Acrobat Reader DC can handle a PDF with
    the /Contents value not encrypted.
    
    Write Contents in signature dictionary without encryption
    
    Tests ensure that string /Contents are not handled specially when not
    found in sig dicts.
    Masamichi Hosoda authored
    2019-10-22 16:20:21 -0400  
    Browse File »
  • Add QPDFObject::getParsedOffset()
    cdc46d78
    Masamichi Hosoda authored
    2019-10-22 16:19:06 -0400  
    Browse File »

19 Sep, 2019
2 commits
  • Correct reversed Rectangle coordinates (fixes #363)
    685250d7
    Jay Berkenbilt authored
    2019-09-19 21:25:34 -0400  
    Browse File »
  • Warn for duplicated dictionary keys (fixes #345)
    8b1e3077
    Jay Berkenbilt authored
    2019-09-19 20:22:34 -0400  
    Browse File »

25 Aug, 2019
1 commit
  • Fix fuzz issue 16301
    94e86e25
    Jay Berkenbilt authored
    2019-08-25 22:52:25 -0400  
    Browse File »

22 Aug, 2019
3 commits
  • Pass offset and length to ParserCallbacks::handleObject
    3f1ab640
    Jay Berkenbilt authored
    2019-08-22 22:54:29 -0400  
    Browse File »
  • Test for direct, rather than resolved nulls in parser ...
    4b2e72c4
    Just because we know an indirect reference is null, doesn't mean we
    shouldn't keep it indirect.
    Jay Berkenbilt authored
    2019-08-22 17:55:16 -0400  
    Browse File »
  • Protect against coding error of re-entrant parsing
    225cd9da
    Jay Berkenbilt authored
    2019-08-22 17:55:16 -0400  
    Browse File »

19 Aug, 2019
1 commit
  • Handle invalid name tokens symmetrically for PDF < 1.2 (fixes #332)
    42d396f1
    Jay Berkenbilt authored
    2019-08-19 19:48:27 -0400  
    Browse File »

17 Aug, 2019
4 commits
  • Shallow copy arrays without removing sparseness
    5187a3ec
    Jay Berkenbilt authored
    2019-08-17 23:02:41 -0400  
    Browse File »
  • Use SparseOHArray in parsing
    bf7c6a80
    Jay Berkenbilt authored
    2019-08-17 23:02:41 -0400  
    Browse File »
  • Refactor QPDF_Array in preparation for using SparseOHArray
    a89d8a06
    Jay Berkenbilt authored
    2019-08-17 23:02:41 -0400  
    Browse File »
  • SparseOHArray
    e83f3308
    Jay Berkenbilt authored
    2019-08-17 23:02:41 -0400  
    Browse File »

25 Jun, 2019
1 commit
  • Convert some cases of logic_error to runtime_error ...
    4db1de97
    There were a few cases that could be caused by invalid input rather
    than bugs in the code which were throwing logic_error instead of
    runtime_error.
    Jay Berkenbilt authored
    2019-06-25 12:43:06 -0400  
    Browse File »

21 Jun, 2019
5 commits
  • Add missing #include <cstring>
    848351f1
    Jay Berkenbilt authored
    2019-06-21 22:29:31 -0400  
    Browse File »
  • Fix bugs found by fuzz tests ...
    b07ad679
    * Several assertions in linearization were not always true; change
      them to run time errors
    * Handle a few cases of uninitialized objects
    * Handle pages with no contents when doing form operations
    * Handle invalid page tree nodes when traversing pages
    Jay Berkenbilt authored
    2019-06-21 17:56:24 -0400  
    Browse File »
  • Fix sign and conversion warnings (major) ...
    d71f05ca
    This makes all integer type conversions that have potential data loss
    explicit with calls that do range checks and raise an exception. After
    this commit, qpdf builds with no warnings when -Wsign-conversion
    -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used
    with MSVC. This significantly reduces the likelihood of potential
    crashes from bogus integer values.
    
    There are some parts of the code that take int when they should take
    size_t or an offset. Such places would make qpdf not support files
    with more than 2^31 of something that usually wouldn't be so large. In
    the event that such a file shows up and is valid, at least qpdf would
    raise an error in the right spot so the issue could be legitimately
    addressed rather than failing in some weird way because of a silent
    overflow condition.
    Jay Berkenbilt authored
    2019-06-21 13:17:21 -0400  
    Browse File »
  • Change QPDFObjectHandle::pipeStreamData's encode_flags type ...
    da30764b
    Change from unsigned long to int since we pass enumerated type values
    to this field.
    Jay Berkenbilt authored
    2019-06-21 13:17:21 -0400  
    Browse File »
  • Add new integer accessors to QPDFObjectHandle
    3608afd5
    Jay Berkenbilt authored
    2019-06-21 13:17:21 -0400  
    Browse File »

15 Jun, 2019
1 commit
  • Give up reading objects with too many consecutive errors
    cf469d78
    Jay Berkenbilt authored
    2019-06-15 08:52:19 -0400  
    Browse File »

20 Apr, 2019
1 commit
  • Tighten isPageObject (fixes #310)
    4ccb2991
    Jay Berkenbilt authored
    2019-04-20 21:00:43 -0400  
    Browse File »

31 Jan, 2019
2 commits
  • Make inline image token exactly contain the image data ...
    eb49e07c
    Do not include the trailing EI, and handle cases where EI is not
    preceded by a delimiter. Such cases have been seen in the wild.
    Jay Berkenbilt authored
    2019-01-31 20:28:44 -0500  
    Browse File »
  • Refactor QPDFTokenizer's inline image handling ...
    ec9e310c
    Add a version of expectInlineImage that takes an input source and
    searches for EI. This is in preparation for improving the way EI is
    found. This commit just refactors the code without changing the
    functionality and adds tests to make sure the old and new code behave
    identically.
    Jay Berkenbilt authored
    2019-01-31 09:26:37 -0500  
    Browse File »