Repository navigation
OpenPDF 4.0.0
See OpenPDF 4.0.0 release notes
OpenPDF 4.0 requires Java 25. We still maintain OpenPDF 3.0.x which requires Java 21.
What's Changed
- Build with Java 27 and 28-ea in the CI by @andreasrosdalw in #1687
- openpdf-renderer: support Tr text rendering mode (fixes invisible OCR text layers rendering as visible) by @andreasrosdalw in #1603
- Unmap memory-mapped files on close using the FFM API by @andreasrosdalw in #1686
- Release the mapping of getNioByteBuffer() on close by @andreasrosdalw in #1688
- Fix the remaining SonarCloud bug on master by @andreasrosdalw in #1689
- Release zlib inflaters and deflaters with try-with-resources by @andreasrosdalw in #1690
- Do not load the whole file when a mapped file is opened by @andreasrosdalw in #1691
- fix: prevent duplicate font family entries in FontFactoryImp by @garcia-d in #1626
- Validate the byte range of a signature by @andreasrosdalw in #1692
- Validate certificate chains with the PKIX algorithm by @andreasrosdalw in #1694
- Check OCSP responses and limit the OCSP and TSA clients by @andreasrosdalw in #1696
- Reject truncated JPEG 2000 files instead of looping by @andreasrosdalw in #1699
- Resolve document font names against registered fonts only by @andreasrosdalw in #1698
- Detect cycles in cross-reference /Prev chains by @andreasrosdalw in #1709
- Bound cross-reference and object stream allocations by the file length by @andreasrosdalw in #1713
- Limit the nesting depth of arrays and dictionaries when parsing by @andreasrosdalw in #1717
- Do not turn the onclick attribute of links into PDF JavaScript by default by @andreasrosdalw in #1715
- Validate sizes, ranges and indexes read from font files by @andreasrosdalw in #1701
- Sign with SHA-256 in the VeriSign filter and document what verify() checks by @andreasrosdalw in #1704
- Refuse DOCTYPE declarations and external entities in the RUPS XFA parser by @andreasrosdalw in #1736
- Check counts, indexes and sizes read from WMF images by @andreasrosdalw in #1703
- Stop following CSS imports that never end by @andreasrosdalw in #1729
- Escape links in HtmlWriter and in the HtmlBookmarks tool by @andreasrosdalw in #1746
- Guard the renderer against objects that refer back to themselves by @andreasrosdalw in #1744
- Validate the predictor parameters in the renderer by @andreasrosdalw in #1742
- Do not parse arrays and dictionaries twice when the renderer tests for a reference by @andreasrosdalw in #1740
- Detect cycles in the renderer's cross-reference chain by @andreasrosdalw in #1738
- Check the status and the signature of an embedded OCSP response by @andreasrosdalw in #1733
- Limit recursion and loops in text extraction, CMap parsing and CID widths by @andreasrosdalw in #1727
- Validate PNG predictor parameters before reserving row buffers by @andreasrosdalw in #1731
- Follow HTTP redirects in NaiveUserAgent only to http and https URLs by @andreasrosdalw in #1711
- Validate presentational HTML attributes before writing them into CSS by @andreasrosdalw in #1721
- Do not resolve external entities in Java2DRenderer.htmlAsImage and XMLUtil by @andreasrosdalw in #1707
- Guard page tree traversal against cycles and wrong page counts by @andreasrosdalw in #1720
- Limit colspan, rowspan and tab-size when rendering HTML by @andreasrosdalw in #1725
- Stop walks through fields, outlines and name trees at repeated nodes by @andreasrosdalw in #1723
- Add the changelog for 4.0.0 and update the changelog for 3.0.7 by @andreasrosdalw in #1748
- Encrypt the recipient envelope of certificate encryption with AES-256 by @andreasrosdalw in #1750
- Ask AI coding agents to update the changelog by @andreasrosdalw in #1752
- Stop PdfContentReaderTool at circular dictionary references by @njarrar in #1669
- Fix #1296: ExceptionConverter.getStackTrace() no longer returns an empty array by @andreasrosdalw in #1594
- Fix #1163: throw DocumentException instead of writing 'ERROR: Infinite table loop' into the PDF by @andreasrosdalw in #1596
- openpdf-renderer: honor /SMask soft masks on Image XObjects by @andreasrosdalw in #1604
- openpdf-renderer: resolve named /ColorSpace resources (ICCBased, CalGray, CalRGB, Lab) for cs/CS/scn/SCN by @andreasrosdalw in #1605
- Fix KeepTogether handling for standalone ListItem by @yashdotdev13 in #1657
- openpdf-renderer: render annotation appearance streams (/AP /N) by @andreasrosdalw in #1606
- openpdf-renderer: consolidate README updates for #1603, #1604, #1605, #1606 by @andreasrosdalw in #1607
- Close a document whose footer or header holds a link by @njarrar in #1667
- fix: prevent /P permissions overflow from corrupting decryption key by @garcia-d in #1631
- fix: keep layer 2 font size for description in name-and-description signatures by @kwart in #1676
- Write an object once in the stream key of PdfSmartCopy by @andreasrosdalw in #1753
- Do not draw a form XObject inside itself in OpenPdfCorePageRenderer by @andreasrosdalw in #1755
- Bug fixes and variable naming by @vitorcunha-se in #1665
- Limit the work that OpenPdfCorePageRenderer spends on one page by @andreasrosdalw in #1757
- Check the size of images without overflow in OpenPdfCorePageRenderer by @andreasrosdalw in #1759
- Check the size of JPEG images before OpenPdfCorePageRenderer decodes them by @andreasrosdalw in #1761
- Collapse white space around line feeds in linear time by @andreasrosdalw in #1763
- Fix the bug that fails the SonarCloud quality gate on master by @andreasrosdalw in #1765
- Remove the deprecated renderer from openpdf-renderer by @andreasrosdalw in #1767
- Keep line breaks between marked-content sequences in PdfTextExtractor by @jayhemnani9910 in #1658
- Fix 1228: Allow anchors in paragraphs that are kept together by @parag2507 in #1638
- Bump org.apache.maven:apache-maven from 3.9.16 to 3.10.2 by @dependabot[bot] in #1771
- Update Checkstyle from 14.4.0 to 14.5.0 by @jetbrains-air[bot] in #1770
- Draw patterns, shadings, Type 3 fonts and embedded Type 1 fonts in OpenPdfCoreRenderer by @andreasrosdalw in #1772
- Keep the streams of a page's content apart when extracting text by @njarrar in #1668
- Remove LayoutProcessor and deprecated methods from openpdf-core, and undeprecate HtmlWriter and HtmlParser by @andreasrosdalw in #1773
- Decode the PNG Average predictor as the specification describes by @njarrar in #1666
- Cache the Maven wrapper and the local repository in the workflows by @andreasrosdalw in #1775
- Improve HtmlWriter and HtmlParser by @andreasrosdalw in #1774
- Do not load external DTDs in TagMap by @andreasrosdalw in #1778
- Fix #1586: Fix PdfReader partial getPageSize by inheriting MediaBox and defaulting missing page boxes to Letter by @ganzah in #1611
- Fix #1649: Preserve supplementary Unicode in FOP glyph processing by @cjhewett in #1650
- Stop at a /Prev cycle between cross-reference sections by @Immortalis202 in #1641
- Fix 1529: Don't split header cells with a rowspan reaching into the body by @parag2507 in #1640
- refactor: extract method in PdfDocument inicialization by @Rafabng in #1663
- Guard PageRefs against a malformed page tree by @sharanggupta in #1656
- Test PdfSmartCopy with the nested Form XObjects of issue 1636 by @andreasrosdalw in #1780
- Fix 1199: Read PDF files encrypted with AES-256 revision 5 by @andreasrosdalw in #1781
- Remove the icu4j dependency by @andreasrosdalw in #1783
- Remove the reflective module calls from PdfGraphics2D by @andreasrosdalw in #1785
- Use pattern matching for instanceof and arrow labels in switch statements by @andreasrosdalw in #1787
- fix: use Unicode code points as CIDs for Identity-H TrueType fonts by @andreasrosdalw in #1788
- Use switch expressions, negated instanceof patterns and unnamed catch parameters by @andreasrosdalw in #1789
- Use pattern matching for switch, records and unnamed lambda parameters by @andreasrosdalw in #1790
- Remove dependencies that are not needed by @andreasrosdalw in #1791
- Remove build plugins that nothing uses by @andreasrosdalw in #1792
- Replace dom4j with the DOM of the JDK in pdf-swing by @andreasrosdalw in #1794
- Update the README for the dependencies of OpenPDF 4.0 by @andreasrosdalw in #1795
- Fix 1796: Stop newPage() from recursing on a page with no room inside… by @valentin-nasta in #1798
- Sign with the ML-DSA keys of the JDK and follow RFC 9882 by @andreasrosdalw in #1799
New Contributors
- @njarrar made their first contribution in #1669
- @yashdotdev13 made their first contribution in #1657
- @vitorcunha-se made their first contribution in #1665
- @jayhemnani9910 made their first contribution in #1658
- @parag2507 made their first contribution in #1638
- @jetbrains-air[bot] made their first contribution in #1770
- @ganzah made their first contribution in #1611
- @cjhewett made their first contribution in #1650
- @sharanggupta made their first contribution in #1656
Full Changelog: 3.0.7...4.0.0