What's Changed
- Fixed contextName stack exception for context-less PDFs when using PdfTextLocator by @ConvoluteHumanBot in #1538
- Fix #1576: DO_NOT_ENCRYPT_METADATA no longer silently disables content encryption by @andreasrosdalw in #1589
- Fix #1584: mark brotli4j as an optional dependency by @andreasrosdalw in #1590
- Bump org.apache.maven.plugins:maven-jar-plugin from 3.5.0 to 3.5.1 by @dependabot[bot] in #1661
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.15.0 to 3.16.0 by @dependabot[bot] in #1660
- Bump org.htmlunit:neko-htmlunit from 5.6.0 to 5.7.0 by @dependabot[bot] in #1659
- Apply Brotli predictors and fix TIFF and PNG reconstruction by @gregjotau in #1674
- fix: reject barcode values that would be silently encoded as a different value by @asolntsev in #1675
- Refactor org.openpdf.text classes to reduce duplication and improve readability by @KrishAdi6969 in #1672
- Fix open code scanning alerts by @andreasrosdalw in #1678
- Fix #1582: fixes to reading PDF files larger than 2 GB by @andreasrosdalw in #1591
- Fix #1601: guard against corrupt object-stream references in xref streams by @andreasrosdalw in #1602
- Bump actions/checkout to v7 and actions/setup-java to v6 by @andreasrosdalw in #1680
- refactor: removed unused-parameter by @Rafabng in #1671
- Add AGENTS.md by @andreasrosdalw in #1681
- Fix #1534: TIFF/1-bit indexed images rendered inverted by @andreasrosdalw in #1597
- Fix #1268: cache parsed fonts during content stream processing by @andreasrosdalw in #1595
- Fix SonarCloud bugs and security hotspots reported on master by @andreasrosdalw in #1679
- Add changelog for 3.0.7 by @andreasrosdalw in #1683
- Fix #1585: handle /P permissions written as unsigned int32 in encrypted PDFs by @andreasrosdalw in #1592
- Fix test compilation on master by @andreasrosdalw in #1684
- Fix #1588: treat unresolvable /Encrypt trailer reference as unencrypted by @andreasrosdalw in #1593
- Update dependencies and Maven plugins by @andreasrosdalw in #1682
- Validate the byte range of a signature (3.0) by @andreasrosdalw in #1693
- Validate certificate chains with the PKIX algorithm (3.0) by @andreasrosdalw in #1695
- Check OCSP responses and limit the OCSP and TSA clients (3.0) by @andreasrosdalw in #1697
- Reject truncated JPEG 2000 files instead of looping (3.0) by @andreasrosdalw in #1700
- Follow HTTP redirects in NaiveUserAgent only to http and https URLs (3.0) by @andreasrosdalw in #1714
- Validate sizes, ranges and indexes read from font files (3.0) by @andreasrosdalw in #1702
- Check counts, indexes and sizes read from WMF images (3.0) by @andreasrosdalw in #1705
- Refuse DOCTYPE declarations and external entities in the RUPS XFA parser (3.0) by @andreasrosdalw in #1737
- Limit recursion and loops in text extraction, CMap parsing and CID widths (3.0) by @andreasrosdalw in #1730
- Escape links in HtmlWriter and in the HtmlBookmarks tool (3.0) by @andreasrosdalw in #1747
- Guard the renderer against objects that refer back to themselves (3.0) by @andreasrosdalw in #1745
- Validate the predictor parameters in the renderer (3.0) by @andreasrosdalw in #1743
- Do not parse arrays and dictionaries twice when the renderer tests for a reference (3.0) by @andreasrosdalw in #1741
- Detect cycles in the renderer's cross-reference chain (3.0) by @andreasrosdalw in #1739
- Check the status and the signature of an embedded OCSP response (3.0) by @andreasrosdalw in #1735
- Validate PNG predictor parameters before reserving row buffers (3.0) by @andreasrosdalw in #1734
- Limit colspan, rowspan and tab-size when rendering HTML (3.0) by @andreasrosdalw in #1728
- Stop following CSS imports that never end (3.0) by @andreasrosdalw in #1732
- Sign with SHA-256 in the VeriSign filter and document what verify() checks (3.0) by @andreasrosdalw in #1706
- Do not resolve external entities in Java2DRenderer.htmlAsImage and XMLUtil (3.0) by @andreasrosdalw in #1710
- Validate presentational HTML attributes before writing them into CSS (3.0) by @andreasrosdalw in #1724
- Resolve document font names against registered fonts only (3.0) by @andreasrosdalw in #1708
- Detect cycles in cross-reference /Prev chains (3.0) by @andreasrosdalw in #1712
- Bound cross-reference and object stream allocations by the file length (3.0) by @andreasrosdalw in #1716
- Limit the nesting depth of arrays and dictionaries when parsing (3.0) by @andreasrosdalw in #1718
- Do not turn the onclick attribute of links into PDF JavaScript by default (3.0) by @andreasrosdalw in #1719
- Stop walks through fields, outlines and name trees at repeated nodes (3.0) by @andreasrosdalw in #1726
- Guard page tree traversal against cycles and wrong page counts (3.0) by @andreasrosdalw in #1722
- Update the changelog for 3.0.7 with the security fixes by @andreasrosdalw in #1749
- Encrypt the recipient envelope of certificate encryption with AES-256 (3.0) by @andreasrosdalw in #1751
- Write an object once in the stream key of PdfSmartCopy by @andreasrosdalw in #1754
- Do not draw a form XObject inside itself in OpenPdfCorePageRenderer by @andreasrosdalw in #1756
- Limit the work that OpenPdfCorePageRenderer spends on one page by @andreasrosdalw in #1758
- Check the size of images without overflow in OpenPdfCorePageRenderer by @andreasrosdalw in #1760
- Check the size of JPEG images before OpenPdfCorePageRenderer decodes them by @andreasrosdalw in #1762
- Collapse white space around line feeds in linear time by @andreasrosdalw in #1764
- Fix the code smells that SonarCloud reports for the security fixes by @andreasrosdalw in #1766
- Do not load external DTDs in XmlParser and TagMap (3.0) by @andreasrosdalw in #1779
New Contributors
- @gregjotau made their first contribution in #1674
- @KrishAdi6969 made their first contribution in #1672
Full Changelog: 3.0.6...3.0.7