Skip to content
Snippets Groups Projects
  1. Dec 12, 2020
  2. Dec 11, 2020
    • Albert Astals Cid's avatar
      Don't decrypt the Contents field of Sig dictionaries · acf4c8e1
      Albert Astals Cid authored
      I could not find whre in the PDF spec says that this field in particular
      is not encrypted, but i think it makes sense because how you write it,
      you have to reserve space first write the whole file, and then calculate
      the real signature and write it in the space you left blank before.
      
      If we encrypt the text, we can't know how long it'll be so we can't
      calculate how much space to leave available.
      
      Also i have a pdf where the Contents field is not encrypted (but the
      rest of the document is) and Adobe opens it fine, so that seems to imply
      this is the right thing to do.
      acf4c8e1
  3. Dec 10, 2020
  4. Dec 08, 2020
  5. Dec 05, 2020
  6. Dec 02, 2020
  7. Dec 01, 2020
    • Albert Astals Cid's avatar
      ac5c7c1c
    • Albert Astals Cid's avatar
    • Albert Astals Cid's avatar
      Fix memory leak in 722f37f7 · 11d97ec8
      Albert Astals Cid authored
      11d97ec8
    • Albert Astals Cid's avatar
      Move HAVE_SPLASH to poppler-config.h · 57f9f7f1
      Albert Astals Cid authored
      Now that HAVE_SPLASH is used in the the "public unsupported" internal headers
      57f9f7f1
    • Tobias Deiminger's avatar
      Splash: Fix blitImage in uncolored tiling patterns · 722f37f7
      Tobias Deiminger authored
      Roughly spoken, SplashOutputDev::tilingPatternFill first renders a
      pattern prototype into a temporary buffer, then draws multiple copies
      of that buffer over the current background, enough copies to fill a region.
      
      To draw the copies, we use either blitImage or drawImage. blitImage
      is faster, but only works if the current transformation is simple
      enough (no rotation, no skew, no reflection). Else we have to fallback
      to drawImage.
      
      drawImage would generate the final pattern so that it colorizes a
      greyscale prototype while fetching the prototype via tilingBitmapSrc
      buffer accessor. blitImage on the other hand  has no such accessor and
      therefore no color to colorize. But we can get the same result if
      we colorize the pattern prototype up front.
      
      This commit rearranges the code so that we can decide blitImage vs. drawImage
      early enough to make color mode of the prototype and copying pattern color
      from former Splash dependent on that decision.
      
      To test blitImage for uncolored tiling patterns, render
      PDFJS-8741-p1-patternscaling.pdf from #983.
      
      To test drawImage for uncolored tiling patterns, render 745th page,
      Figure L.9 – Uncoloured tiling pattern from PDF32000_2008.pdf.
      
      Fixes #983.
      722f37f7
    • Albert Astals Cid's avatar
      Be more strict in XRef::createDocInfoIfNeeded · 8ef16f82
      Albert Astals Cid authored
      Info needs to be a Dict and an indirect object in the trailer dict
      
      oss-fuzz/28057
      8ef16f82
  8. Nov 28, 2020
  9. Nov 27, 2020
Loading