• It seems better not to compress signature dictionaries. Various PDF
    digital signing tools, including Adobe Acrobat Reader DC, do not
    compress signature dictionaries.
    
    Table 8.93 "Entries in a signature dictionary" in PDF 1.5 reference
    describes that /ByteRange in the signature dictionary shall be used to
    describe a digest that does not include the signature value
    (/Contents) itself.
    
    The byte ranges cannot be determined if the dictionary is compressed.
    Masamichi Hosoda authored
     
    Browse Dir »
  • Table 8.93 "Entries in a signature dictionary" in PDF 1.5 reference
    describes that the value of Contents entry is a hexadecimal string
    representation when ByteRange is specified.
    
    This commit makes QPDF always uses hexadecimal strings representation
    instead of literal strings for it.
    Masamichi Hosoda authored
     
    Browse Dir »






  • Ordinarily the trailer doesn't contain any strings, so this is usually
    a non-issue, but if the trailer contains strings, linearizing and
    encrypting with object streams would include encrypted strings in the
    trailer, which would blow out the padding because encrypted strings
    are longer than their cleartext counterparts.
    Jay Berkenbilt authored
     
    Browse Dir »
  • It's detected in QPDFWriter instead of at parse time because I can't
    figure out how to construct a test case in a reasonable time. This
    commit moves the fuzz file into the regular test suite for a QTC
    coverage case.
    Jay Berkenbilt authored
     
    Browse Dir »