PDF Library for Delphi Release Notes
Release history
Version history for PDF Library for Delphi user-visible features, fixes, PDF enhancements, compatibility changes, and documentation changes
Note: Only the change records of the latest 2000 versions are kept
Last release
- Latest version: v4.68.45; Release date: 2026-11-18
Version 4.68.45
Fixed
- Hardened C# DLL buffer transfer checks and shutdown disposal, sample path resolution in C# demos, ReportBuilder rotated text and hyperlink placement, and QuickReport metafile image cleanup.
Version 4.68.44
Fixed
- Preserved non-ASCII UTF-16 text across AcroForm built-in script arguments and field names, SVG CSS class and ID selectors, and dataset-to-PDF table export while restoring caller text size after table titles.
Version 4.68.43
Fixed
- Hardened GDI+ path cleanup and non-negative 32-bit handle checks, preserved existing stream prefixes and caller bitmaps in TIFF/G4 fallback encoding, prevented UTF-16 surrogate pair splitting in WideWordWrap and empty wrapped-height underflow, bounded Uniscribe shape retries and OpenType/TTF vector glyph buffer bounds, and preserved UTF-16 font family names across EMF, TrueType subsetting, shaping, and font fallback.
Version 4.68.42
Fixed
- Fixed read-only compliance inspection on encrypted PDF/UA and PDF/A streams without stripping encryption metadata, hoisted CIDToGIDMap stream decoding out of per-glyph compliance loops, hardened XMP entity decoding and font-audit cleanup, added Lab and Indexed palette pixel redaction, and preserved quoted/Unicode descriptions in PLBuildInvoiceXMLSimple.
Version 4.68.41
Fixed
- Complete SM2 with SM3 digest support for external signature callbacks and PKCS#11 modules with mechanism lock protection on algorithm queries, and preserve Unicode signature field names, subject DN matching, and custom appearance variables across permission, time-stamp, and LTV workflows
Version 4.68.40
Fixed
- Align error return sentinels across Core gating, DLL, ActiveX, and macOS Dylib wrappers for OCSP status, revision kind, signature revision index, virtual file size, and object path stream length queries, guard nullable C out-pointer parameters, enable ActiveX multithreading and signed missing-glyph callbacks, and match pointer-sized HDC definitions on non-Windows targets
Version 4.68.39
Fixed
- Fix HTTP 206 Content-Range header validation against uninitialized range bounds, preserve hash chains and structure size reporting when resizing the PDF name pool past 170 unique names, and align object lookups and compressed object streams for incremental revision analysis on PDFs with bytes before the %PDF- header
Version 4.68.38
Fixed
- Reference-count PDFium library initialization and serialize PDFium native calls across concurrent instances and viewer prefetch threads while encoding bitmaps outside the lock and masking C floating-point exceptions
Version 4.68.37
Fixed
- Search the active library or module directory before the host executable path when loading optional OpenType shaping and modern image runtime modules, cache missing OpenType engine probes per environment configuration, and load FontSub.dll from the Windows system directory with safe fallback handling
Version 4.68.36
Fixed
- Completed the English API reference coverage: every public library API topic now documents its parameters and return values, and return-value sections across reference pages use one consistent heading, so parameter meanings and success or failure results are no longer missing from any entry page
Version 4.68.35
Fixed
- When a later signature or document time stamp covers the target signature value, ApplyPAdESSignatureTimeStamp now fails with a GetTimeStampError message that names the overlap instead of a generic attachment failure; the GetEncryptionLevel reference now documents the read-side code ladder accurately, including SM4 (7) and its offset from the write-side Encrypt Strength
Version 4.68.34
Fixed
- Data Matrix symbols drawn with DrawDataMatrixSymbol rotated 180 degrees or 90 degrees clockwise now sit centered in their quiet zone, so the white border is equally wide on all four sides in every orientation: an Options value with no hundreds digit or with 100 added gives the default 1 module quiet zone, adding 200 gives 2 modules, 300 gives 3 modules, 400 gives 4 modules, and so on up to 900 for 9 modules.
- Rotated rectangular Data Matrix symbols (such as 8x18 or 16x48) now get a white background and quiet zone that follow the rotated outline of the symbol.
Version 4.68.33
Fixed
- Fixed remaining compiler warnings, hints, and portability notes across core units, ActiveX and DLL wrappers, and sample applications under Delphi, C++Builder, and Free Pascal.
- Fixed macOS library compilation in certificate chain verification and removed redundant slot initialization warnings in the dynamic library runtime.
- Fixed Unicode conditional checks in the demo lab helpers so Unicode-enabled Delphi builds use native UTF-8 string conversion without deprecated fallbacks.
- Updated English reference documentation and sample descriptions to clearly identify Small Business and Enterprise exclusive capabilities and lab scenarios.
Version 4.68.32
Fixed
- Fixed demo pagination and multi-page text rendering across Delphi, C++Builder, and Lazarus labs so new and selected pages restore explicit font size, alignment, font/canvas error checks, and output-directory arguments reliably.
- Fixed UTF-8 BOM handling, console parameter naming, and UTF-8 XML byte encoding in Lazarus lab demos and Factur-X invoice examples so localized text and benchmark runs work consistently across system locales.
- Fixed Showcase PDF link button annotation bounds to align with drawn button boxes and avoided counting skipped summary-page links.
- Fixed multi-page formatted title stamping to cache loaded images once across pages and tolerate missing XML attributes, and expanded extracted image extension mapping across all supported image formats.
- Fixed demo file-handling reliability across text extraction, font extraction, page delete/merge conflict guards, PFX certificate lookup, and exception-safe cleanup in workflow tools.
Version 4.68.31
Fixed
- Updated the VC++ ActiveX wrapper to invoke 64-bit device-context methods on Win64 builds, initialized missing function pointers in the VC++ DLL headers, and removed broken lookups for retired DLL exports.
- Removed 32-bit integer device-context overloads in the C# DLL wrapper so 64-bit handles and literal zero values resolve to pointer-sized overloads, and guarded finalizer DLL cleanup against CLR shutdown.
- Converted centimeter-based image resolution units to DPI in C# image conversion demos and released ActiveX COM wrapper instances deterministically when forms close or conversions finish.
Version 4.68.30
Fixed
- Sign-extended 32-bit device context handles to 64-bit in ActiveX rendering calls, excluded SAFEARRAY values from scalar ordinal checks, and handled signed 8-bit integer arrays without overflow in EncodeStringFromVariant.
- Removed the unlocked slot fast-path in DLL and Dylib instance dispatch so per-instance locks are acquired under synchronization with rollback cleanup if lock acquisition raises.
- Rendered fill-only fallback shapes, skipped empty images, preserved PNG transparency, converted fallback screen-pixel coordinates accurately, and released PDF resources on cancellation in the ReportBuilder device.
- Wrapped QuickReport report preparation in try-finally cleanup guards so failed prepares do not leak temporary preview printer instances.
Version 4.68.29
Fixed
- Fixed canonical workflow JSON number normalization dropping high-order digits when adding a longer same-sign exponent delta, and reported unknown instead of invalid internal dependency state when an in-memory workflow preflight snapshot exceeds the inspection budget.
- Updated UBL 2.1 invoice generation to emit base EN 16931 customization metadata matching the supplied data model so built-in validation no longer fails on unpopulated Peppol fields.
- Fixed XSD validation crashing on non-element children inside <xs:all> groups, ignoring maxOccurs="0" particles, or accepting invalid times above 24:00:00, and prevented XRechnung decimal alignment and rounding from overflowing Int64 across large integer and high-precision decimal mixes.
- Fixed XMP saving looping infinitely on single-byte results, guarded out-of-range UTF-32 code points, and decoded UTF-16 and UTF-32 XMP packets on cross-platform native XMP loaders and during PDF/UA identification checks.
Version 4.68.28
Fixed
- Guarded recursive form appearance invalidation against cyclic field trees and prevented sub-name updates on choice fields from indexing past sparse display-name or option arrays.
- Preserved unsaved XFA field and template edits across validation checks, decoupled template-only XDP packets from datasets presence, and ensured split XFA forms without a datasets stream reject field-value writes instead of reporting false success.
- Fixed non-ASCII UTF-16 form script field lookups and argument slicing under Free Pascal, and rejected composite watermarks from claiming ownership of items already owned by another composite while correcting custom bottom-origin offsets for shape watermarks.
- Fixed DOCX export corrupting paragraph property XML when a document contains ten or more separately numbered list blocks, and preserved non-black text colors placed first in caller-supplied RTF color tables.
- Fixed Markdown reference links adjacent to stray closing brackets before parentheses, handled unidirectional datasets and exception-safe UI control restoration during dataset table export, and stopped SVG export from reporting CMYK approximation warnings when DeviceCMYK colors are inactive or unused.
Version 4.68.27
Fixed
- Fixed TIFF export corrupting the strip offsets and byte counts of every page with more than one strip, and TIFF import discarding all declared strip byte counts when the file lists fewer counts than offsets.
- Fixed malformed JBIG2 symbol dictionaries hanging decoding with an oversized collective bitmap size, MMR generic regions with a known length not skipping to the end of their data, zero-width bitmaps and negative row reads failing, and MMR horizontal runs accepting an end-of-line code as a run length.
- Fixed reading decoded image data after the default decode mode released its bitmap, stencil mask images reporting an unknown format, inline indexed images whose binary palette contains slash bytes, and indexed images declaring more than 8 bits per sample.
- Fixed importing EMF or WMF metafiles smaller than one point dividing by zero, ConvertToGray failing on unbound images or rewriting non-8-bit samples, and tiled PackBits TIFF images in a single tile column showing their padding instead of being cropped.
- Fixed CCITT decoding failures on empty buffers raising a second error, end-of-line search on compressed data above 256 MiB, and QR code generation returning stale data after a failed encode.
Version 4.68.26
Fixed
- Fixed the viewer reusing the closed file's disk page cache for a document attached afterwards, and closing a document now clears the page layout and scroll ranges so scrolling an empty viewer no longer reports page changes.
- The viewer's vmDrawInk, vmDrawSquare and vmDrawCircle modes now create ink, square and circle annotations from the drag, using the new DrawColor and DrawLineWidth properties, instead of falling back to text selection.
- Fixed the multiline password field editor in the viewer showing plain text after its window was recreated, for example after a DPI change.
- Fixed EMF import dividing by zero on headers with empty frames or zero device sizes and on current-position text under a quarter-turn world transform, and text after selecting a stock font now uses that font.
Version 4.68.25
Fixed
- Fixed text extraction and rendering of non-embedded Adobe-ordered CID fonts reading past the built-in glyph table or emitting characters shifted by two code points, and fixed alternate image selection discarding the base image when an alternate entry is not an image.
- Fixed annotation rendering crashes on malformed /Matrix, /C, /Border and dash arrays, and fixed ignored color operators inside Type 3 d1 glyphs and the i, MP and DP operators leaving stale operands that shifted later path coordinates.
- Fixed GDI+ and Cairo rendering of axial and radial shading patterns with a non-identity /Matrix, singular Cairo pattern matrices, transparent images under separable blend modes, and a crash when drawing transformed images outside the GDI+ backend.
- Fixed malformed embedded CMaps crashing font loading, CFF CID fonts with out-of-range FDSelect entries or truncated DICT real numbers, and LoadOpenTypeFromStream always reporting failure.
- Fixed ToUnicode CMaps with white space inside hexadecimal strings and surrogate-pair bfrange destinations, composite fonts reporting no ToUnicode map or an empty CIDSystemInfo after loading, duplicate characters in subset font maps, and TrueType rasterizer widths looked up by code point instead of glyph index.
- Fixed print job titles losing non-ASCII characters, PDFium printing ignoring the anticlockwise auto-rotate option, and the PDF printer canvas truncating 64-bit device context handles.
Version 4.68.24
Fixed
- Fixed wide-character text drawing when kerning or word spacing is enabled on subsetted and composite fonts so glyphs are no longer truncated to single-byte codes or split across multi-byte glyph boundaries, and guarded zero-point text sizes against division by zero.
- Fixed 2D barcode background fills (QR, Micro QR, DataMatrix, PDF417, and Aztec) in CMYK color mode to emit DeviceCMYK white instead of DeviceRGB, restored text color state after barcode fills, and corrected stroking color-space operators for spot-colored and pattern-shaded underlines.
- Fixed zero-sweep circular and elliptical arcs leaving dangling subpaths or drawing full 360-degree ellipses, and prevented sheared image drawing from firing duplicate change notifications during batched updates.
- Fixed HTML layout stripping wide characters whose UTF-16 low byte is 0x20 at line ends, corrected single-word and multi-span full justification spacing, and preserved UTF-16 surrogate pairs when breaking overlong words or laying out SVG text along paths and transformed patterns.
Version 4.68.23
Fixed
- Redact annotation appearance repair and ApplyRedactions now paint only the QuadPoints sub-regions instead of covering unredacted content across the full bounding Rect.
- RedactRegion with black-out painting now creates a content stream on empty pages and balances open graphics or text states before drawing the redaction box in initial user space.
- Annotation appearance generation now decodes UTF-16BE and UTF-8 BOM text entries, normalizes self-intersecting QuadPoints vertex orders, and suppresses bare painting operators on empty or degenerate paths.
Version 4.68.22
Fixed
- Evaluated embedded DSS OCSP responses during pure-Pascal modern-algorithm certificate path verification so revoked EdDSA, ML-DSA, and SM2 signers are rejected and valid OCSP responses satisfy revocation checks.
- Allowed certificate chain building to accept cryptographically verified legacy issuer certificates without a SubjectKeyIdentifier extension while still rejecting mismatched keys with the same subject name.
- Implemented pure-Pascal X.509 DER certificate context parsing and intended key-usage extraction on non-Windows platforms so modern and external-digest signing paths work without platform certificate stores.
- Preserved full UTF-16BE Unicode signature Reason, Location, and ContactInfo strings, kept the encapsulated SHA-1 content digest for adbe.pkcs7.sha1 signatures when stronger SignerInfo digests are selected, and enabled Ed25519/Ed448 external digest signers.
- Hardened PKCS#11 Ed448 parameter passing, RSA-PSS-only token discovery, active sign-operation cleanup, CSC empty OTP responses, LDAP referral and DN string decoding, thread-safe WinHTTP/Winsock initialization, and unknown-total or zero-length HTTP range probes.
Version 4.68.21
Fixed
- Fixed Windows CNG AES-GCM encryption and authentication tag verification on zero-byte plaintexts and ciphertexts so empty encrypted strings and streams produce deterministic GMAC tags and reject forged tags.
- Fixed re-encrypting legacy AES-256 Revision 5 documents and switching security strengths in Direct Access mode so key derivation uses the target encryption revision without hanging or writing mismatched encryption parameters.
- Fixed reading encrypted XMP metadata streams, outline titles, signature seed-value strings, and FieldMDP lock field lists on password-protected PDFs when objects are stored outside compressed object streams, and guarded temporary object decryption against corrupting cached ciphertext on failure.
- Fixed pure public-key security envelope decryption to accept valid fixed-width EC, Brainpool, and SM2 private key scalars whose most significant bit is set.
Version 4.68.20
Fixed
- SelectPage now preserves the active text size instead of resetting it to 12 pt when switching between pages
- MovePage and HidePage now preserve live indirect page references without dangling pointers, roll back failed moves atomically, and rebind the active page context after hiding pages
- AddMovieAnnotationFromFile now writes an ISO 32000-1 compliant Movie dictionary and targets the created annotation in its activation action even when no annotation title is supplied
- Page resource lookups clone inherited parent /Resources dictionaries before local edits, ReplaceImage guards against cyclic Form XObject resource references, and MediaBox, annotation, and tile-cache helpers enforce strict bounds and thread-safety checks
Version 4.68.19
Fixed
- ExtractFilePagesEx now re-keys encrypted objects and object-stream entries when extracting pages from password-protected PDFs and preserves outline bookmarks according to the selected options
- EncryptFile, DecryptFile, and MergeStreams now reject identical source and destination file paths with LastErrorCode 402 before overwriting input files, preserve PDF 1.6 through 2.0 version headers, and neutralize removed /Encrypt objects cleanly
- Direct Access recycles freed handle slots with generation checks to reject stale handles while keeping handles belonging to other open documents active
- Hardened Flate stream-end bounds checking, cross-reference /Prev loop and trailer /ID recovery, multi-level /IDTree structure lookups, strict PDF date parsing, and shared palette stream isolation when recoloring indexed images
Version 4.68.18
Fixed
- Enterprise C++Builder examples now build with the complete unit set for their edition, and the demo portfolio check recognizes the Lazarus workflow tools project
Version 4.68.17
Fixed
- Incremental Direct Access saves and cross-reference stream rewrites now strip stale predictor parameters and hybrid cross-reference keys inherited from the base trailer
- Stream rewrites clear stale decode parameters and leave empty streams unfiltered, and page layer edits decode filtered content streams and isolate shared indirect /Contents arrays
Version 4.68.16
Added
- The barcode gallery examples now produce a fourth page with Data Matrix and PDF417 symbols that carry UTF-8 payloads and an ECI marker. The demo shows how to enable the mode and return to the default afterwards
Version 4.68.15
Fixed
- Open and resave public-key PDFs when multiple recipients match one crypt filter and grant different permissions, using only the permissions shared by those recipients
Version 4.68.14
Fixed
- Direct Access reports a missing recipient when a public-key PDF filter has no matching private key, including when its certificate is present in the Windows store
Version 4.68.13
Fixed
- Open and resave public-key PDFs whose body and attachments use separate crypt filters and recipient keys without losing attachment data
- Read these PDFs through Direct Access with a PFX credential or Windows certificate store, and report the permissions shared by all encrypted filters
Version 4.68.12
Fixed
- Public-key PDFs now honor named clear crypt filters when opening, reading, or saving selectively encrypted content
Version 4.68.11
Fixed
- Password-encrypted R5 through R7 PDFs now honor named clear stream filters, and R7 PDFs preserve mixed AES-CBC and AES-GCM filters when reading and saving
Version 4.68.10
Fixed
- Public-key PDFs that encrypt only embedded files now open with a matching recipient credential and can be saved with their encryption intact
Version 4.68.9
Fixed
- Direct Access can open supported public-key-encrypted PDFs with an explicitly unverified file-encryption key
Version 4.68.8
Fixed
- Password-encrypted revision 4 PDFs with mixed RC4, AESV2, or Identity crypt filters now use the selected filter for strings, page streams, embedded files, and explicit Crypt streams when reading and saving
Version 4.68.7
Changed
- On Windows, embedded OCSP responses without nextUpdate are accepted for up to 24 hours after thisUpdate during signature-chain verification
Version 4.68.6
Fixed
- PDF/UA validation now reads escaped literal strings and BOM-encoded text correctly in inline marked-content language tags
Version 4.68.5
Fixed
- PDF/UA language checks resolve inherited page resources, recognize the owning structure element language for alternative text, and count invalid marked-content language tags once
Version 4.68.4
Fixed
- PDF/UA-1 and PDF/UA-2 validation now detect malformed BCP 47 language tags consistently while accepting grandfathered and private-use tags
Version 4.68.3
Fixed
- The barcode payload encoding option now documents every accepted value, including UTF-8 with an ECI marker. Callers can see that the third mode is valid for Data Matrix and PDF417 symbols instead of treating it as out of range
Version 4.68.2
Added
- Localized changelogs can now remove published entries that the English history has already retired, keeping every language aligned with the same release history. The cleanup is explicit, so routine updates never delete existing translations
Version 4.68.1
Fixed
- PDF417 symbols drawn with explicit dimensions now use the requested row and column counts
Version 4.68.0
Added
- Data Matrix and PDF417 can mark UTF-8 payloads with ECI so compatible scanners recover non-ASCII text while existing encoding modes remain available
Version 4.67.537
Fixed
- History trimming during a release now has regression coverage, so only the oldest entries needed to meet the size limit are removed and the page footer is preserved
Version 4.67.536
Fixed
- Publishing a release now keeps the English version history within its size limit automatically. The oldest entries are removed only when the limit is exceeded, so no manual cleanup is needed after a release
Version 4.67.535
Fixed
- Win32 builds of the C++Builder examples now link the required Windows system libraries and produce executable programs. Builds for that platform no longer fail with unresolved system symbols
Version 4.67.534
Fixed
- Made C++Builder sample generators report a failed save instead of returning a path to a file that was never written
- Reported failed output saves in the C++Builder action-navigation and form-field examples instead of reporting success
Version 4.67.533
Fixed
- Made four example generators report a failed sample-document save instead of returning a path to a file that was never written
Version 4.67.532
Fixed
- Restored the Delphi and Lazarus test-suite builds by resolving a nested include path correctly on both compilers
- Restored the documented verify exit-code contract for envelopes without explicit trust anchors
Version 4.67.531
Fixed
- Fixed a build regression in ETSI trusted-list signature verification
- Stopped leaving files locked when access probes or signature appearance loading fails
- Made the workflow CLI report unverified signer trust as a failure instead of success
- Made ReportBuilder exports report page-size and image failures instead of silently producing incomplete PDFs
- Added missing page-lookup and save checks to the PDF-to-image C++Builder example
- Reported temporary-directory cleanup failures in the large-file benchmark instead of hiding them
- Prevented a cleanup crash when a background render job cannot be created
Version 4.67.530
Fixed
- Kept render settings consistent across Cairo raster and device-context output and preserved caller clipping
- Fixed PDFium stream lifetime and short-read handling, added contiguous batch raster output, and corrected memory output opacity and diagnostics
- Corrected vector shapes and picture placement in FastReport PDF exports and checked canvas imports in the graphics example
Version 4.67.529
Fixed
- Preserved page content when mixed raster compression fails and corrected its color threshold and handling of cropped or rotated pages
- Preserved existing files when tile, layer, region, monochrome, JSON, or FastReport exports fail during writing
- Made page crop settings and PNG transparency consistent across rendering paths, and repaired tile stitching with virtual file output enabled
- Rejected occupied batch output paths before conversion and cleared operation state after progress callback exceptions
- Corrected PDF-to-image sample input, output, and diagnostics and aligned workflow sample argument validation
Version 4.67.528
Fixed
- Preserve existing render output when page generation, cancellation, or file publication fails
- Clip large page selections before expanding them and avoid repeated scans for duplicate pages
- Keep HTML page anchors unique and omit links to pages outside the export
- Report page conversion failures accurately in the PDF-to-image demos
Version 4.67.527
Fixed
- Split documents by nested bookmarks in page order and combine duplicate split points
- Include bookmarks in HTML tables of contents for the exported pages and avoid repeated outline entries in damaged files
- Preserve existing files when page extraction or SVG export fails and support large page counts without range overflow
- Reject page replacements during open drawing scopes and report page-copy failures in the demos
Version 4.67.526
Fixed
- Preserve existing PDFs when a save or linearization fails, and support password-encrypted output in the combined save workflow
- Reject stale incremental updates even after same-size external edits, and preserve open drawing state when a save is rejected
- Apply save compression options to existing embedded resources and handle oversized page ranges without integer overflow
- Speed up structural comparisons and improve error handling in the stream and text extraction demos
Version 4.67.525
Changed
- Tightened PDF compliance audits: PDF/UA language checks now use the strict BCP 47 validator, PDF/E-1 output intents are checked for the required output condition identifier, and PDF/UA-2 structure role checks accept any positive heading level instead of stopping at H9.
Version 4.67.524
Changed
- Broadened PDF 2.0 conformance: automatic tagging now supports arbitrary heading levels instead of capping at H6, version detection and save-time checks recognise PDF 2.0 objects such as associated files and document security stores, CMS parsing rejects invalid SignedData versions, and language tag validation is stricter.
Version 4.67.523
Fixed
- Hardened signature and timestamp verification so digest comparisons no longer reveal how many bytes matched, made AES-CBC reject invalid initialization vectors consistently on all platforms, ensured a failed encryption leaves no partial ciphertext behind, and fixed several operations that reported success after failing.
Version 4.67.522
Fixed
- Made text extraction output linear in the page length: fixed-grid, reading-order and tabular modes appended each row or fragment to a WideString, and two helpers appended one character at a time. They now write into pre-sized or geometrically grown buffers through a cursor. Extracted text is unchanged.
Version 4.67.521
Fixed
- Cleaned up unused locals across the library, fixed an uninitialised filter dictionary pointer when decoding LZW and Flate parameters, made the Types unit available on all platforms, and corrected a Cardinal comparison in font cmap parsing.
Version 4.67.520
Fixed
- Made seven text-building and buffer-growth paths linear in their input length: canonical audit JSON, CMap dictionary tokens, preflight JSON and HTML escaping, CxF XML text decoding, remote-signing JSON/URL/Base64 encoding, Arlington source manifests and Encoding CMap codespace splitting all appended to a string or grew an array one item at a time. They now use pre-sized buffers, cursors or geometric capacity growth. Outputs are byte-for-byte unchanged, including the Arlington manifest that feeds a SHA-256 hash.
Version 4.67.519
Changed
- Changed XMP reading to also accept the rdf:Description attribute form of Dublin Core metadata as a fallback, inline image filter validation to recognise the legal /CCF and /DCT abbreviations and full names instead of rejecting them as invalid, and file specification URLs to prefer and write the Unicode /UF entry rather than purging it and keeping only a PDFDocEncoding /F value.
Version 4.67.518
Fixed
- Fixed the timestamp client's DER parser accepting non-minimal long-form lengths, its RFC 3161 requests adding a NULL parameter to SHA-3 and SM3 hashAlgorithm identifiers where RFC 9688 requires the parameters to be absent, and PDF/A literal strings treating a backslash followed by a line ending as a literal byte instead of a line continuation.
Version 4.67.517
Fixed
- Made PostScript string escaping linear in the input length: it appended one byte at a time and copied the accumulated prefix on every step. Each byte expands to at most four bytes, so the result is now allocated once and filled through a cursor. Escaped output is unchanged.
Version 4.67.516
Fixed
- Fixed the default AES-256 encryption strength still writing the deprecated /R 5: the earlier revision 6 change covered only the SmartAccess dictionary builder, while the normal Encrypt call built its dictionary in the document layer and kept /R 5. The default strength now routes through the existing revision 6 implementation. Verified end to end: a generated file reports R = 6 and decrypts with the user password.
Version 4.67.515
Fixed
- Made JSON string parsing linear in the input length: the parser appended one byte at a time and copied the accumulated prefix on every character. Escaped output cannot exceed the remaining input, so the result is now allocated once and filled through a cursor. Decoded strings are unchanged.
Version 4.67.514
Changed
- Changed PDF/A XMP validation to report a UTF-8 byte-order mark (EF BB BF) as rule 00089. ISO 19005-2 6.6.2.1 requires XMP to be UTF-8 without a BOM, so packets that start with a BOM are no longer accepted.
Version 4.67.513
Changed
- Changed AES-256 encryption to write the ISO 32000-2 /R 6 revision with the Algorithm 2.B password hash instead of the deprecated /R 5. Reading existing /R 5 files remains supported, but newly written AES-256 files require a reader that supports /R 6.
Version 4.67.512
Changed
- Changed CCITTFaxDecode images that omit /Columns to decode at the standard 1728-pixel line width required by ISO 32000-1 Table 11 instead of the image /Width; the resulting bitmap is still sized to /Width. Files that omit /Columns but were encoded at /Width are not conforming and will now decode differently.
Version 4.67.511
Fixed
- Made the remaining invoice-validation text builders linear: node paths, quoted process arguments and semicolon-separated class paths assembled their result one character or one entry at a time. They now use the library string builder and produce the same output.
Version 4.67.510
Fixed
- Made Code128 automatic encoding linear in the input length: the encoder consumed the text by deleting from the front of the string and rescanned the remaining digits on every codeword. A cursor now advances through the original string and produces the same codeword sequence.
Version 4.67.509
Fixed
- Fixed XMP UTF-8 encoding validation being limited to PDF/A-4: ISO 19005 parts 1 through 4 all require a UTF-8 XMP packet, so UTF-16 packets now report rule 00089 at earlier conformance levels too.
Version 4.67.508
Fixed
- Made the non-Windows GIF stubs report the missing capability instead of returning success without writing any bytes, made capability-report JSON escaping linear in the input length, and compared XML signature digests in constant time.
Version 4.67.507
Fixed
- Fixed PDF date offsets using the current DST state instead of the offset of the date being written, the C++Builder UTC conversion helper returning local time unchanged, and certificate validity comparing UTC bounds against the local clock. PDF dates now carry the offset of their own instant and validity is compared in UT.
Version 4.67.506
Fixed
- Fixed image filter classification treating a standard /CCITTFaxDecode (or /CCF) image as Unknown because it only recognised the non-standard /CCITTDecode name, and fixed the XMP packet scanner reporting rule 00089 from property text when a malformed packet has no xpacket header terminator.
Version 4.67.505
Fixed
- Made invoice validation JSON, XML text escaping and LDAP distinguished-name escaping linear in the input length: these built their result by appending to a string one character or one item at a time, copying the accumulated prefix at every step. The output is byte-for-byte unchanged.
Version 4.67.504
Fixed
- Tightened JPEG 2000 file detection to the full 12-byte JP2 signature box required by ISO/IEC 15444-1, and corrected the encryption dictionary builder purging a non-existent UI key instead of U so the previous user entry cannot survive a reused dictionary.
Version 4.67.503
Fixed
- Fixed CIELab TIFF files written by the library being rejected on read: the writer emits photometric interpretation 8 while the reader only accepted 9, so our own output was reported as unsupported. Both codes now map to the same internal interpretation.
Version 4.67.502
Fixed
- Fixed the page-tree balancing call reporting success when it did nothing: a page tree whose /Count promises more pages than the tree holds makes the balancer abort without rebuilding, but the public call still returned 1. It now checks that every page reference resolves first and reports 0 when the tree cannot be balanced.
Version 4.67.501
Fixed
- Fixed output directory creation and case-insensitive page pattern handling in Lazarus PdfToImage, and normalized sandbox report paths, multi-run averaging, and per-file speedup ratios in PerformanceLab samples.
Version 4.67.500
Fixed
- Linked the Win64 external JBIG2 encoder backend and reported native lossless MMR fallback accurately in the Delphi ImageCompressionMatrix sample.
Version 4.67.499
Fixed
- The ExtractEmbeddedFonts samples use consistent TrueType candidate filtering and identify unknown font types in the preview. A failed font save now reports the SaveFontToFile error
Version 4.67.498
Fixed
- Preserved working directories, cancelled file list selections, source output folders, and file status labels across Delphi VCL sample forms.
Version 4.67.497
Fixed
- Validated TrueType and subsetted font load results with fallback font families across Delphi and Lazarus ContentLab font samples.
Version 4.67.496
Fixed
- The Delphi and Lazarus lab samples release temporary in-memory bitmap streams when bitmap creation or writing raises an exception. A failed operation no longer leaves the stream allocated
Version 4.67.495
Fixed
- Released per-image PDF documents after each save in the Lazarus ImageToPdf batch conversion loop to prevent unbounded memory growth.
Version 4.67.494
Fixed
- Enforced weak signature algorithm (SG405) and end-entity self-signed certificate (SG406) policy checks during PFX certificate inspection in Delphi and Lazarus SigningWorkbench samples.
Version 4.67.493
Fixed
- Validated --digest values, recorded policy failures when signing certificates are missing, and prevented failed signing runs from inspecting pre-existing signatures on the source PDF in the Lazarus SigningWorkbench sample.
Version 4.67.492
Fixed
- Returned non-zero exit codes when signature open, presence, digest, or ByteRange checks fail in Delphi, Lazarus, and C++Builder SignatureValidator samples.
Version 4.67.491
Fixed
- Preserved full UTF-16 Unicode passwords loaded via --password-file and --pfx-password-file in Lazarus inspection, compliance, and signing workbench samples.
Version 4.67.490
Fixed
- Decoded extracted Factur-X/ZUGFeRD/XRechnung XML payloads and external validation JSON reports explicitly as UTF-8 in the Delphi E-Invoice sample.
Version 4.67.489
Fixed
- Restored top-left page origin and font selection in the Lazarus CanvasText sample fallback text-API path so text and web links align consistently.
Version 4.67.488
Fixed
- Fitted placed image dimensions within the 210 mm A4 page width in Lazarus and C++Builder CreateWithImageToStream samples.
Version 4.67.487
Fixed
- Restored millimeter measurement units, font selection, and A4 page-fit image bounds after LoadFromStream reloads in Delphi and Lazarus DoInTheStream samples.
Version 4.67.486
Fixed
- Fixed Showcase --help CLI usage output in the Windows GUI executable so help text prints cleanly both in interactive terminals and when redirected to pipes or files.
Version 4.67.485
Fixed
- Hardened Visual Basic .NET ActiveX and DLL samples with STA apartment initialization, deterministic COM and GDI+ resource release, safe exception handling when ActiveX is unregistered, and finalizer-safe native library cleanup.
Version 4.67.484
Fixed
- Added STAThread and deterministic COM/document/bitmap cleanup in C# ActiveX CreateTable and MultiDemo samples, and disabled action buttons on DLL load failure while guarding viewer launches in C# DLL MultiFunction.
Version 4.67.483
Fixed
- Guarded optional DLL export bindings, implemented thread- and finalizer-safe IDisposable cleanup with GC.SuppressFinalize across the C# PDFlibDLL wrappers, and fixed disposal and syntax issues in the C# HelloWorld and Table2PDF samples.
Version 4.67.482
Fixed
- Resolved PDFlibDLL32.dll and PDFlibDLL64.dll relative to the executable directory via GetModuleFileNameW in the VC++ CanvasDC and CanvasDCLink samples instead of relying on the current working directory.
Version 4.67.481
Fixed
- Guarded null and empty SAFEARRAY results, decoded UTF-8/ACP byte arrays properly, preserved embedded nulls in BSTR dispatch arguments, disabled shallow copying, initialized OLE, and fixed the Common-Controls manifest name in the VC++ ActiveX sample.
Version 4.67.480
Fixed
- Zero-initialized all function pointer members, disabled shallow copying, resolved optional DLL exports dynamically, and guarded every method, buffer helper, and destructor against unloaded handles in the VC++ PDFlibDLL wrappers.
Version 4.67.479
Fixed
- Restored millimeter units, cleared reused memory streams, kept drawn image bounds inside A4 width, and released intermediate loaded documents in C++Builder DoInTheStream and ExtractImage scenarios.
Version 4.67.478
Fixed
- Preserved self-clearing LastErrorCode values across file and console diagnostics in the C++Builder ExtractEmbeddedFonts sample so load and font export failures report the actual error code instead of zero.
Version 4.67.477
Fixed
- The C++Builder AddFormattedTitle sample initializes COM before loading XML, so XML loading works when the sample starts on a thread without COM initialized. Repeated stamps reuse the same image across pages
Version 4.67.476
Fixed
- The C++Builder GraphicsLab canvas examples use the correct Windows handle type and detach the canvas handle before passing the device context to the PDF library. The Win64 examples can load or create a page from that canvas
Version 4.67.475
Fixed
- Fixed unescaped string backslashes, broken multiline string literals, and TRect constructor calls across C++Builder ImageLab, DocumentLab, and PerformanceLab scenarios
Version 4.67.474
Fixed
- Aligned text baselines via GetTextAscent and supported horizontal alignment, vertical alignment, rotated text, and hyperlinks in TPDFlibRBPDFDevice.DrawTextCommand
Version 4.67.473
Fixed
- ReportBuilder PDF export follows the source line orientation and pen style. Reports with double lines show both parallel strokes, and dashed lines retain their selected pattern
Version 4.67.472
Fixed
- Converted ReportBuilder shape bounds and XCornerRound/YCornerRound corner radii from millimetre thousandths to millimetres and clamped rounded-box radii in TPDFlibRBPDFDevice
Version 4.67.471
Fixed
- Invoked OnAddReports in PDFlibQRExportComposite, avoided duplicate Prepare calls on already-prepared QuickReport instances, and freed temporary TQRPrinter objects prepared on demand
Version 4.67.470
Fixed
- Cached embedded TrueType font IDs across pages and defaulted clNone text colors to black in TPDFlibFRExport and TPDFlibRBPDFDevice
Version 4.67.469
Fixed
- FastReport PDF export respects the diagonal setting on horizontal and vertical line objects. Dashed and double-line frames retain their selected style in the exported PDF
Version 4.67.468
Fixed
- Removed shadowed FileName and Stream fields in TPDFlibFRExport so FastReport exports assigned through TfrxCustomExportFilter write to the target file or stream
Version 4.67.467
Fixed
- Accepted BSTR hex strings, ASCII hex byte arrays, and raw hash byte arrays in ActiveX FetchTimeStampToken while keeping its VARIANT signature unchanged
Version 4.67.466
Fixed
- Unwrapped VT_BYREF | VT_VARIANT Automation arguments and 1D VARIANT byte arrays across all ActiveX binary input methods and guarded SysVariant.FindVarData against nil pointers so VBScript, Classic ASP, and VBA callers can pass byte-array variables
Version 4.67.465
Fixed
- Fixed sign-extension of high-range 32-bit GDI HDC handles in 64-bit ActiveX rendering and canvas methods, added 64-bit Int64 HDC methods on IPDFlibrary19 to avoid IDispatch overflow, and restored the missing Winapi.Windows unit import in PDFlibAX.dpr
Version 4.67.464
Fixed
- Honored the active AnsiMode setting in the macOS Dylib DLGetLastUnicodeReplacementDiagnosticsA export instead of unconditionally returning UTF-8 bytes
Version 4.67.463
Fixed
- Skipped DLL instance teardown inside the Windows loader lock during process shutdown when built with Free Pascal, matching Delphi behavior and preventing worker-thread finalization deadlocks while still freeing all instances on dynamic FreeLibrary unload
Version 4.67.462
Fixed
- Protected DLL and macOS Dylib instance operations with per-instance reentrant locks, active-call deferred release, deadlock-safe dual-instance locking, handle wraparound reuse, and a 16-slot string return ring buffer so concurrent calls on shared or released handles cannot race and multiple returned string pointers remain valid within a single caller expression
Version 4.67.461
Fixed
- Fixed VCL viewer cross-DPI disk cache isolation, non-point measurement unit preservation across layout and hit-testing APIs, child-control WM_DPICHANGED bounds handling, continuous-scroll margin alignment, 32-bit side-panel scroll tracking, background prefetcher COM initialization and renderer configuration synchronization, and bitmap cache/rotation lifetime safety.
Version 4.67.460
Fixed
- Fixed secure image redaction pixel extraction for JBIG2 images under Free Pascal / NOVCL and preserved 8-bit and 24-bit CCITT or paletted scanlines without row truncation.
Version 4.67.459
Fixed
- Fixed JPEG 2000 encoder division-by-zero on empty bitmaps, 32-bit sample count overflow on large images, and 64-bit stream length truncation on load.
Version 4.67.458
Fixed
- Fixed CCITT 1-bit Indexed and ICCBased palette preservation and guarded stencil-mask PNG stream conversion against nil dereferences.
Version 4.67.457
Fixed
- Fixed TIFF palette-color (1/2/4/8-bit) and Deflate/ZIP strip decoding, planar 32-bit RGBA/CMYK plane interleaving, and empty-buffer bounds guards in TIFF and BMP image loaders.
Version 4.67.456
Fixed
- Prevented an infinite token-rescan loop when rendering Type 3 font glyphs whose inline images failed decoding, and fixed local subroutine list leaks when loading multi-dictionary CID-keyed CFF font sets.
Version 4.67.455
Fixed
- Fixed GDI+ DirectFonts fallback glyph rendering to release GpFont handles without leaks, preserve 64-bit font pointers, map multi-character Adobe glyph names such as digits and punctuation, and apply per-glyph text-matrix positioning.
Version 4.67.454
Fixed
- Fixed bold and italic font resolution in complex-script text shaping, automatic font fallback, and vertical text drawing across comma, hyphen, bracketed, and space-separated style suffixes, as well as CamelCase PostScript family names and TrueType collections.
- Preserved bold and italic style variants when mapping Standard 14 fonts to installed system families for shaped text rendering.
Version 4.67.453
Fixed
- Fixed TrueType Collection (.ttc) embedding, fallback lookup, and color-font rasterization on Windows by extracting complete standalone sfnt programs from the 'ttcf' container so shared tables preceding the selected face directory are preserved.
Version 4.67.452
Fixed
- Fixed local-DC printing to release the printer HDC and reset the Printing state when EndDoc completes, and preserved non-ASCII printer names on older Unicode Delphi compilers.
Version 4.67.451
Fixed
- Fixed EMF metafile import division-by-zero crashes on default-height fonts (lfHeight = 0) and restored 1-bit monochrome DIB palette colors instead of collapsing both entries to black.
Version 4.67.450
Fixed
- Fixed floating-point division-by-zero crashes when rendering zero-width or zero-height Form XObjects and pattern tiles, and ensured WMF/EMF metafile canvases are always freed when rendering exits early or raises an exception.
Version 4.67.449
Fixed
- Fixed GDI+ stream-backed metafile recording so the graphics context flushes pending records and EMR_EOF before the metafile handle and stream adapter are released, and cleaned up GDI+ startup tokens, notification hooks, and metafile resources when initialization fails.
Version 4.67.448
Fixed
- Deselected GDI brush, pen, and font handles from NOVCL canvas and metafile device contexts before deleting or replacing them so Free Pascal and C++Builder rendering no longer leaks Win32 GDI objects on style updates.
Version 4.67.447
Fixed
- Isolated per-worker font collections, pre-resolved page dictionaries, and background bitmap canvas locks during parallel tile rendering and multi-threaded image optimization so concurrent worker threads no longer race on shared font state or VCL memory device contexts.
Version 4.67.446
Fixed
- Fixed JPEG scanline decoding to pass a full row-pointer array to jpeg_read_scanlines instead of a single stack pointer on top-down bitmaps, and guarded SaveToStream on empty JPEG instances.
Version 4.67.445
Fixed
- Fixed DAOpenFromURL zero-cache range warming bounds and exception-safe transport stream cleanup.
- Guarded LoadFromCanvasDC and NewPageFromCanvasDC against non-positive or NaN DPI values and ensured exception-safe metafile and stream cleanup.
- Ensured exception-safe object-index cleanup during PDF linearization preparation and non-mutating, handle-safe file access probing before digital signing.
Version 4.67.444
Fixed
- Fixed shifted-header cross-reference offset bounds and malformed self-referencing cross-reference stream recovery.
- Fixed short PDF and PostScript-wrapped header parsing so version scanning stays within read buffer bounds.
- Preserved encryption state and session keys when opening or signing encrypted PDFs that omit the trailer /ID array, and fixed cross-reference stream /Index generation when object 0 is queued alongside in-use objects.
Version 4.67.443
Fixed
- Fixed PDF linearization parameter dictionary placeholder sizing to account for indirect object wrapper overhead and dynamically expand reserved space when needed instead of overwriting the dictionary tail with the first-page cross-reference section.
Version 4.67.442
Fixed
- Fixed null-dereference and per-object decryption bugs in optional-content print state evaluation, page cloning and extraction on damaged page trees, and direct-access document information lookups for inline or indirect /Info entries.
Version 4.67.441
Fixed
- Fixed FreeText annotation font selection recovery after page switches, moves, or saves so AddFreeTextAnnotation and AddFreeTextAnnotationEx restore the active font and register its resource entry in the annotation appearance stream instead of dereferencing a cleared font pointer or omitting non-Helvetica font resources.
Version 4.67.440
Fixed
- Cleared stale text-block, font, captured-page, and direct-access object handles when closing documents or DA file handles, validated DACaptureID ownership against the target DA file, and tightened integer handle prefix bitmask checks against forged or negative handle values.
Version 4.67.439
Fixed
- Fixed TPDFDocument.Create and Clear to allocate font tracking lists before page-tree setup and release or reset cached AcroForm, XMP, table, object-stream, captured-page, font, graphics-state, color-space, and structure-tree references across document reloads.
Version 4.67.438
Fixed
- Synchronized PKCS#11 client property getters and digest signing dispatch under the client lock, preserved full 64-bit Cryptoki slot IDs without 32-bit truncation, and enabled SM2 certificate identity discovery on PKCS#11 hardware tokens.
Version 4.67.437
Security
- Closed a post-signature incremental-update tamper-detection bypass via free-then-redefine cross-reference sequences, avoided false positives on unused free slots and ISO 32000-1 Section 7.5.8.4 hybrid cross-reference hidden slots, and resolved duplicate intra-revision definitions to the final effective entry.
Version 4.67.436
Security
- Prevented 32-bit signed integer overflow when decoding malformed multi-byte ASN.1 DER and CMS ContentInfo lengths in signature verification.
Version 4.67.435
Fixed
- Fixed certificate store handle leaks when reusing signing certificate contexts, prevented double-free when duplicating an external PCCERT_CONTEXT fails, made enumerated certificate handle retention thread-safe across concurrent or repeated store enumerations, and accepted high-bit pointer handles in 32-bit LARGEADDRESSAWARE processes.
Version 4.67.434
Security
- Preserved active session encryption keys during DASecurityInfo password probes and prevented unauthenticated TSmartPDFCrypt instances from deriving fallback 5-byte object keys.
Version 4.67.433
Fixed
- Fixed TPDFlibSignDoc.Open, OpenStream, and OpenString to enforce password verification on encrypted PDFs, attach object-stream decryption before catalog parsing, and avoid double-freeing fields when reopening fails.
Version 4.67.432
Fixed
- Exempted digital signature /Contents values and pre-signing /ByteRange placeholders from TSmartPDFCrypt encryption and decryption in compliance with ISO 32000-1 Section 7.6.1.
Version 4.67.431
Security
- Preserved unique per-object deterministic AES-256-GCM nonce counters across streamed encryption of large PDF streams (>= 1 MiB) and dictionary strings in compliance with ISO/TS 32003.
Version 4.67.430
Fixed
- Fixed non-blocking socket connection error handling so synchronous failures do not stall for the full timeout and interrupted POSIX polls retry cleanly; stripped URL fragments before HTTP requests, buffered HTTP response bodies in bounded chunks without quadratic string reallocation, normalized HTTP method casing, and added support for HKCU/HKCR/HKU/HKCC registry hives and REG_EXPAND_SZ values.
Version 4.67.429
Fixed
- Fixed byte-vs-character indexing in encrypted PKCS#8 key inputs, AcroForm default-appearance font renaming, and attachment name sanitization, preserved Unicode strings and wide file paths across SVG, XLSX, OCR, invoice validation, and Arlington model loading on Free Pascal, and avoided double UTF-8 encoding in the FPC IOUtils shim.
Version 4.67.428
Fixed
- Fixed writable file stream probing so existing target files are never truncated during preflight checks, enforced virtual file quota checks with atomic commit on stream close, and fixed locale-independent float formatting, forward-slash path extraction, case-insensitive string replacement, and default-appearance font parsing.
Version 4.67.427
Fixed
- Fixed SetRenderOptions progress-window configuration (options 6, 7, and 8) so 32-bit HWND values with the high bit set are zero-extended on Win64 without sign-extension corruption, non-zero window handles are recognized on WoW64, and success (1) is returned.
Version 4.67.426
Fixed
- Fixed PDFlibWindows on Windows so HBITMAP, HPALETTE, and INVALID_HANDLE_VALUE preserve full 64-bit handle width and Win32 API wrappers forward to the operating system instead of returning stub values.
Version 4.67.425
Fixed
- Fixed PLIsNan(Extended) reading past 8-byte Extended values on 64-bit targets and seeded PLRandomID / non-Windows GUID generation from the OS CSPRNG instead of uninitialized stack memory.
Version 4.67.424
Fixed
- Fixed concurrent dynamic-array use-after-free crashes and unbounded OS critical-section leaks in the Free Pascal TMonitor synchronization shim by capturing per-object locks inside the pool mutex and reclaiming idle lock slots via reference counting.
Version 4.67.423
Fixed
- Fixed the Free Pascal OpenJPEG C runtime shim so snprintf and vsnprintf obey C99 NUL-termination and required-length probing semantics instead of raw msvcrt truncation, and masked floating-point exceptions across C math wrappers.
Version 4.67.422
Fixed
- Fixed C runtime file and environment shims so Win32 _fopen honors read/write/append/update mode flags and returns NULL on failure, getenv uses thread-local storage to prevent concurrent buffer races, Win64 _fclose preserves 64-bit FILE pointers, and duplicate Win64 stub symbols across C runtime units are eliminated.
Version 4.67.421
Fixed
- Fixed Win64 variadic C formatting crashes and bounded format-string parsing in the internal C runtime bridge so embedded codec diagnostics handle multi-argument hex, pointer, size_t, floating-point, and precision-limited string specifiers safely without reading past unterminated buffers or trailing percent signs.
Version 4.67.420
Fixed
- ZUGFeRD 2.0 invoices now carry Version 1.0 in their XMP extension schema, as the ZUGFeRD 2.0 reference files do, and invoice validation recognises ZUGFeRD 2.0 by its 2p0 schema namespace, so reference ZUGFeRD 2.0 files are no longer reported with a file name or guideline mismatch.
Version 4.67.419
Fixed
- In Free Pascal builds, preflight reports in text, JSON, HTML and CSV form and the preflight report comparison now keep file names and issue details that contain characters outside the system code page, instead of turning them into question marks.
Version 4.67.418
Fixed
- PFX and PKCS#12 passwords now reach the certificate import unchanged, so a password with characters outside the system code page (for example Thai or Arabic letters on a Western or Chinese Windows) opens the file instead of being reported as wrong; the signing identity classes now take the password as a Unicode string.
Version 4.67.417
Fixed
- The Lazarus huge-file and merge benchmark demos now time each step with the high-resolution performance counter, so small files no longer report 0 seconds and 0 MB/s.
Version 4.67.416
Fixed
- PDF/A conversion now also removes file attachment annotations the target part forbids: every one for PDF/A-1, PDF/A-4 and PDF/A-4e, and for PDF/A-2 those whose attached file is not itself a PDF/A-1 or PDF/A-2 document, together with their pop-up notes, so the converted file no longer fails validation over an attachment that only an annotation carried.
Version 4.67.415
Fixed
- Fixed ZUGFeRD 2.0 hybrid invoices declaring their XMP extension schema with the 1p0 namespace; ZUGFeRD 2.0 now uses urn:zugferd:pdfa:CrossIndustryDocument:invoice:2p0#, while ZUGFeRD 2.1 and Factur-X keep the Factur-X 1p0 namespace.
Version 4.67.414
Fixed
- Fixed the C++Builder ComplianceLab e-invoice demo falling back to the built-in sRGB output intent when started outside the repository tree, because it looked for the ICC profile only upward from the current directory; it now also searches from the executable directory, like the Delphi demo.
Version 4.67.413
Fixed
- Fixed the VB.NET ActiveX multi-function demo printing silently to nowhere when no default printer exists and ignoring the print result, and failing to find the optional content and bookmark sample files when started from its output directory.
Version 4.67.412
Fixed
- Fixed rotated text and image watermarks placed with the nine position presets turning about their start point instead of their centre, so a 45-degree centred watermark was not centred on the page; they now rotate about the centre of the preset box, as shape watermarks do.
Version 4.67.411
Fixed
- Fixed the GraphicsLab watermark demo reporting composite watermark placements as a page count, and corrected the TPDFlibCompositeWatermark reference, which described the return value as pages: Apply returns the sum of its children's placements.
Version 4.67.410
Fixed
- Fixed the PerformanceLab huge-file and merge benchmark demos finishing successfully when benchmark operations failed or files were left unmerged, so the lab tour hid API regressions; such runs now fail.
Version 4.67.409
Fixed
- Fixed the Lazarus ComplianceLab PDF/A guard matrix demo reporting success when its summary PDF could not be saved.
Version 4.67.408
Fixed
- Fixed the Lazarus EnterpriseLab preflight report demo finishing with exit code 0 when --compare found differences from the baseline report; it now exits with 2, as the Delphi and C++Builder demos do.
Version 4.67.407
Fixed
- Fixed the EnterpriseLab signature validator demo exiting successfully for a tampered or otherwise invalid signature; it now fails when the digest check or the byte range is not valid.
Version 4.67.406
Fixed
- Fixed the ComplianceLab tagged PDF demo falling back to the non-embedded Helvetica font in PDF/UA mode and reporting success even when PDF/UA diagnostics listed problems; it now fails when Arial cannot be embedded or the diagnostics are not clean.
Version 4.67.405
Fixed
- Fixed the Lazarus and C++Builder ComplianceLab e-invoice demos reporting success when the generated hybrid invoice could not be detected or failed container validation, and the C++Builder demo silently falling back to the first profile for a misspelled profile name.
Version 4.67.404
Fixed
- Fixed the SmallBusinessLab Bates and merge demo giving its PDF/VCR placeholders boxes near the bottom of the page while the placeholder text sits near the top, because the bounds were passed in the top-left drawing origin instead of default user space.
Version 4.67.403
Fixed
- Fixed the ComplianceLab output intent demo never swapping in an external ICC profile because it passed the colour space as RGB instead of DeviceRGB, and switching to PDF/A mode only after drawing content.
Version 4.67.402
Fixed
- Fixed the EnterpriseLab signing workbench certificate audit leaving a copy of the PFX private key in the user's key store every time it ran; the audit now imports the PFX without persisting the key.
Version 4.67.401
Fixed
- Fixed the C++Builder EnterpriseLab signing workbench reporting the first signature's verification result, metadata and certificate for every signed field of a multi-signature PDF; each field is now verified by name.
Version 4.67.400
Fixed
- Fixed the EnterpriseLab PAdES DSS demo storing empty certificate, CRL and OCSP entries and reporting success even when writing the output failed; it now signs its source with a self-signed test certificate, stores that signer certificate in the DSS and fails when any step fails.
Version 4.67.399
Fixed
- Fixed AddPAdESDSSCertificate, AddPAdESDSSCRL and AddPAdESDSSOCSP accepting empty or malformed data and writing zero-length or broken streams into the Document Security Store; each call now requires one complete DER-encoded SEQUENCE and returns 0 otherwise.
Version 4.67.398
Fixed
- Fixed the EnterpriseLab compliance workbench demo reading encryption algorithm codes one step off, which let RC4 documents pass the no-RC4 policy, let AES-128 pass a 256-bit minimum and printed the wrong algorithm names.
Version 4.67.397
Fixed
- Fixed ExportFormDataToFDF and ExportFormDataToFDFString writing check box and radio button values as strings instead of names, multiple selections as one string, and an empty value for each parent field that cleared its children when the file was imported again.
Version 4.67.396
Fixed
- Fixed ImportFormDataFromFDF and ImportFormDataFromFDFString ignoring check box and radio button values written as names (/V /Yes), hexadecimal and multiple-selection values, fields stored as indirect objects and the nested /Kids hierarchy that Acrobat writes, so such FDF files imported nothing; FDF objects are now parsed and nested field names are joined with periods.
Version 4.67.395
Fixed
- Fixed CxF spectral data parsing taking quadratic time and memory on files with very many comments, CDATA sections or processing instructions.
Version 4.67.394
Fixed
- Fixed optional content flattening rejecting long documents with many repeated form, pattern, soft-mask or Type 3 text paints because each paint added a new private resource name, and slowing down as resource dictionaries grew; a repeated paint now reuses its resource name.
Version 4.67.393
Fixed
- Fixed PDF/VCR data merge emptying or overwriting content streams shared with other pages when a placeholder spanned two streams of a page's contents; such templates are now rejected instead of changing the other pages.
Version 4.67.392
Fixed
- Fixed PDF/VCR data merge inserting the replacement text into the middle of an inline image when a placeholder's marked content contained an inline image before its text and the image data held a parenthesis or bracket byte.
Version 4.67.391
Fixed
- Fixed ExecuteVCRDataMergeCurrent returning 0 with LastErrorCode 0 when the selected template could not be saved; it now reports the documented template failure code 608 unless the save reported a more specific error.
Version 4.67.390
Fixed
- Fixed PDF417 symbols for purely numeric content of 8 to 12 digits using text compaction instead of the denser numeric compaction, which made such symbols larger than necessary and could make the two compilers produce different symbols.
Version 4.67.389
Fixed
- Fixed tiled rendering truncating and then deleting an existing file of the same name when rendering a tile failed; tiles are now rendered into memory and written only after a successful render.
Version 4.67.388
Fixed
- Fixed a background render job staying in the running state forever when starting COM or creating its private library instance failed; the job now ends as failed with the error message.
Version 4.67.387
Fixed
- Fixed cancelling a background render job deleting a file that already existed at the output path when the render had not written anything yet.
Version 4.67.386
Security
- Fixed EMF import opening ICC profile paths named by an untrusted metafile in NT device form (for example \??\UNC\host\share), relative to the current directory or on mapped network drives, which could contact a remote host; only bare profile names and local drive paths are accepted now.
Version 4.67.385
Security
- Fixed the optional barcode encoder runtime for rMQR, GS1 DataBar and MaxiCode being searched for upward from the current working directory, which could load a DLL planted in a downloads folder or network share; the development tree is now searched from the executable directory.
Version 4.67.384
Security
- Fixed audit evidence envelope verification on Windows possibly validating the signature with one certificate and the trust path with another when the CMS carries two certificates with the same signer identifier; integrity is now only valid when both are the same certificate.
Version 4.67.383
Security
- Fixed audit evidence envelope verification accepting CMS signatures made with SHA-1, MD5 or other digests weaker than the SHA-256, SHA-384 and SHA-512 the signing side allows; such envelopes now report integrity as invalid.
Version 4.67.382
Fixed
- Fixed the signature source audit reporting an incomplete result for files whose cross-reference table writes the trailer keyword and dictionary on one line (trailer<< ... >>).
Version 4.67.381
Fixed
- Fixed the form schema audit reporting multiple-selection list boxes whose value is an array with a single selected item as invalid.
Version 4.67.380
Fixed
- Fixed the form schema audit reporting radio buttons and check boxes with an /Opt array as structurally invalid when their on states use names such as /Yes instead of widget positions; the specification permits but does not require positional names.
Version 4.67.379
Fixed
- Fixed SavePreflightReportEx and SaveValidationReport starting JSON reports with a UTF-8 byte order mark that strict JSON readers reject, and Free Pascal builds replacing characters outside the system code page in saved reports with question marks; reports are now written as UTF-8 without a byte order mark.
Version 4.67.378
Fixed
- Fixed ConvertToPDFA raising an exception with error 409 and an empty report after the converted document had already replaced the original, when reselecting the page or preparing font fallbacks failed; it now returns success and adds the problem to the report as a warning.
Version 4.67.377
Fixed
- Fixed conversion to PDF/A-2 removing every embedded file; attachments that are themselves PDF/A-1 or PDF/A-2 documents are now kept, as PDF/A-2 allows, and the conversion report states how many files were removed or kept.
Version 4.67.376
Fixed
- Fixed PDF/A conversion leaving Named actions other than page navigation, GoTo3DView actions, forbidden actions inside /Next arrays and actions on bookmarks in place, so the converted file still failed validation; it also no longer removes Trans, Rendition and SetOCGState actions from PDF/A-1 targets, which allow them.
Version 4.67.375
Fixed
- Fixed PDF/A conversion spending a long time on documents with tens of thousands of objects while looking for transparency, because every visited object was looked up in a plain list.
Version 4.67.374
Fixed
- Fixed conversion to PDF/A-1 failing with "An image soft mask remains outside the composited page scope" when the only soft-masked images were left over from earlier edits and no longer used by any page.
Version 4.67.373
Fixed
- Fixed conversion to PDF/A-2, PDF/A-3 and PDF/A-4 rasterizing whole pages that carry translucent annotations such as highlights and forcing their opacity to 1; annotation opacity is now only normalized for PDF/A-1, which is the only part that forbids it.
Version 4.67.372
Fixed
- Fixed PDF/A conversion rasterizing pages whose links point to pages with transparency, and failing outright on long documents with page-to-page links, because the transparency check followed link destinations and actions into other pages.
Version 4.67.371
Fixed
- Fixed PDF/UA validation accepting non-symbolic TrueType fonts whose cmap has only subtables such as (1,1) or (3,2); such fonts now need the Microsoft Unicode (3,1) or Macintosh Roman (1,0) subtable, so files that passed before may now report this font issue.
Version 4.67.370
Fixed
- Fixed the PDF/UA-1 heading and table checks stopping role-map resolution at PDF 2.0 structure types such as Title, and the PDF/UA-2 checks not recognizing Em and Strong as standard types.
Version 4.67.369
Fixed
- Fixed the PDF/UA annotation checks treating annotations with reversed Rect corners near the page edge, or on pages that inherit their CropBox or MediaBox, as not shown, which skipped the widget and hidden-annotation checks for them.
Version 4.67.368
Fixed
- Fixed PDF/UA validation passing a file when the additional table, embedded-file, outline and heading checks stopped on a malformed structure tree; the result now carries issue 10086 saying those checks could not be completed.
Version 4.67.367
Fixed
- Fixed the PDF/UA table check exhausting memory or crashing on table cells with huge RowSpan or ColSpan values; such spans are now reported as an irregular table.
Version 4.67.366
Fixed
- Fixed Unicode text replacement becoming unresponsive on pages with very large content streams and many matches, because every new match rescanned the page from its first instruction and every instruction was checked against every planned edit.
Version 4.67.365
Fixed
- Fixed the semantic auto-tagging report in Free Pascal builds turning candidate text and reading-order sources outside the system code page into question marks.
Version 4.67.364
Fixed
- Fixed semantic AutoTagPages raising an exception for more than 1000 pages or a malformed existing structure tree; it now returns 0 and describes the reason in the diagnostics report.
Version 4.67.363
Fixed
- Fixed semantic auto-tagging leaving earlier pages with marked content and StructParents but no reachable structure tree when a later page was rejected while committing; such a page is now skipped and listed in the report before any page is changed.
Version 4.67.362
Fixed
- Fixed Markdown conversion taking minutes on paragraphs with many unmatched brackets, angle brackets, emphasis markers or backticks; closer searches now share a budget proportional to the text length.
Version 4.67.361
Fixed
- Fixed Markdown footnote references inside inline link destinations producing broken HTML, private-use characters U+E000 to U+E002 in the input being rendered as line breaks or footnote markup, and bare URL autolinking swallowing a hard line break and the next word.
Version 4.67.360
Fixed
- Fixed Markdown link references and footnote markers inside indented code blocks and display-math blocks being rewritten into links, which altered code samples.
Version 4.67.359
Fixed
- Fixed Markdown text lines such as "[1]: see appendix for details" being taken for link reference definitions and removed from the output; a definition now needs nothing but an optional quoted or parenthesised title after its target.
Version 4.67.358
Fixed
- Fixed an unclosed $$ display-math line in Markdown swallowing every following heading, list and table into one math paragraph; without a closing $$ the line is now ordinary text.
Version 4.67.357
Fixed
- Fixed a Markdown paragraph line indented by four spaces or a tab breaking the paragraph and starting a code block; such lines now continue the paragraph, as CommonMark requires.
Version 4.67.356
Fixed
- Fixed Markdown setext underlines (--- or ===) turning ATX headings, list items and thematic breaks into level-2 headings, and keeping only the last line of a multi-line paragraph in the heading.
Version 4.67.355
Fixed
- Fixed non-ASCII CSS values in HTML page rules, such as page margin box content text and font family names, being corrupted in Delphi builds running on multi-byte system code pages.
Version 4.67.354
Fixed
- Fixed Markdown conversion in Free Pascal builds turning characters outside the system code page into question marks and, on single-byte code pages, printing footnote markers instead of footnote links.
Version 4.67.353
Fixed
- Fixed HTML page margins, page sizes and margin box widths with decimal CSS lengths such as 1.5cm being ignored on systems whose decimal separator is a comma.
Version 4.67.352
Fixed
- Fixed AddPageGeoViewport describing Web Mercator with both an EPSG code and an ellipsoidal Mercator WKT that disagree by up to about 0.2 degrees of latitude, and labelling projected EPSG codes such as UTM zones as geographic systems.
Version 4.67.351
Fixed
- Fixed text-to-outline conversion splitting marked-content sequences that started inside a text object across two text objects, which broke the tagging of converted Tagged PDF pages; converted pages no longer keep empty text objects.
Version 4.67.350
Fixed
- Fixed text-to-outline conversion keeping every font selection in the converted page since the previous internal version, because the check for form XObjects also counted the inserted glyph forms.
Version 4.67.349
Fixed
- Fixed text-to-outline conversion without form recursion removing the font selections of a page that draws form XObjects, which left text inside those unconverted forms without a font.
Version 4.67.348
Fixed
- Fixed text-to-outline conversion dropping Type 3 glyphs whose font has no /Resources entry; the converted glyph now uses the resources of the page or form that shows it, as the PDF specification requires.
Version 4.67.347
Fixed
- Fixed text-to-outline conversion giving the same glyph resource name to pages whose resource dictionaries differ but share one XObject dictionary, so one page's converted text showed another page's glyphs.
Version 4.67.346
Fixed
- Fixed text-to-outline conversion on 64-bit builds keying forms and glyph assets by a truncated pointer, which could skip a form as already converted, report incompatible resource scopes, or raise a range error in checked builds.
Version 4.67.345
Fixed
- Fixed setting a link annotation URI that contains non-ASCII characters writing a UTF-16 or PDFDocEncoding text string that readers and the library itself could not read back; the URI is now written as percent-encoded UTF-8, the same way AddLinkToWeb writes it.
Version 4.67.344
Fixed
- Fixed GetAnnotQuadPoints returning a point of the first quad, or raising an overflow error in checked builds, when asked for a very large quad number; quad numbers past the last quad now return 0.
Version 4.67.343
Fixed
- Fixed rotated shape watermarks turning clockwise while text and image watermarks with the same Angle turn counter-clockwise; positive angles now rotate every watermark kind counter-clockwise, so rotated shapes in existing composites change direction.
Version 4.67.342
Fixed
- Fixed shape watermarks placed with wpCustom drawing rectangles below the anchor but circles, ellipses, rotated rectangles and point shapes above it; every shape now extends right and down from the custom top-left corner, as with the position presets.
Version 4.67.341
Fixed
- Fixed TPDFlibCompositeWatermark.Add accepting the composite itself, the same item twice or a composite that contains it, which caused endless recursion when applying the watermark and a double free on destruction; such items are now ignored.
Version 4.67.340
Fixed
- Fixed WAV files exported from stereo sound annotations declaring twice the real byte rate, which made some players report the wrong duration or seek to the wrong position.
Version 4.67.339
Fixed
- Fixed text watermarks rejecting the Courier standard font (id 0) and treating id 14 as a standard font; standard font ids now follow AddStandardFont (0 to 13).
Version 4.67.338
Fixed
- Fixed rotated StampText and StampImage output, and the rotated text and image watermarks built on them, being placed far from the requested position (often off the page) because the anchor offset was applied twice.
Version 4.67.337
Security
- Fixed the review of changes made after a signature reading form field names wrongly: in a document without encryption the names came out scrambled, and in an encrypted document they were left encrypted. A field lock that lists the fields it covers by name could therefore miss a change to one of them, and a lock that lists exceptions could flag a field it exempts.
Version 4.67.336
Fixed
- Fixed CompactDocumentMemory leaving fonts, images, graphics states, colour spaces, captured pages, outlines, layers, destinations and structure elements created before the call unusable afterwards: using one of them again could crash or write a damaged file. They now work with the same IDs, the selected font and text size are kept, and a page captured as a form keeps its resources. The objects that make up fonts stay in memory across the call, and an ID that names a part of another object, such as an action or destination read from an annotation or an outline, should be read again after compacting
Version 4.67.335
Fixed
- Fixed paged HTML import drawing the headers and footers of every page onto the last page when the earlier pages could not be selected again, for example because a graphics state was left open before the call. The import now stops drawing margin content in that situation, reports error 541 with a margin-render-error finding, and leaves the body pages as placed
Version 4.67.334
Fixed
- Fixed SVG import taking minutes on a drawing whose text or style element holds a long run of character data split into many pieces by child elements, comments or CDATA sections; such a drawing now parses in a fraction of a second with the same result
Version 4.67.333
Fixed
- Plain text extraction is much faster on pages that paint their text through many form XObjects: a font used by several forms is now analysed once per page instead of once per form, with identical output
Version 4.67.332
Fixed
- Fixed the memory used while rendering a page growing with the number of different soft masks the page selects. Soft masks that are no longer in use are now released once they exceed a fixed budget, which cut the peak for a test page with 43 masks at 600 dpi from about 670 MB to 290 MB with identical output
Version 4.67.331
Fixed
- Extracting the text of a page as positioned blocks, raw text or text lines no longer spends most of its time enlarging the result when the page holds a very large amount of text; the extracted text is unchanged
Version 4.67.330
Fixed
- Fixed changing a form field or another name value in a loaded document altering unrelated parts of it when that value happened to be called Font, Type1 or another name the library uses in the dictionaries it builds. Unchecking a check box whose on state is named Font could rename the Font entry of a page's resources and break the fonts added to that page
Version 4.67.329
Fixed
- Fixed EMF import leaving out bitmaps that the metafile draws with SetDIBitsToDevice. These pictures are now converted, including records that carry only part of the bitmap or part of its scan lines, and they are no longer listed as unsupported in the conversion diagnostics
Version 4.67.328
Fixed
- Text extraction through the layout-aware modes no longer slows down with the square of the number of text runs on a page: a page with ten thousand runs, including runs painted on top of each other, now extracts in a fraction of a second instead of several seconds, with identical output
Version 4.67.327
Fixed
- Fixed range-source availability queries reporting a dependency depth error on documents with long chains of references, such as pages that each link to the next. The object query now follows such a chain to its end; the limit on the number of objects a query may inspect is unchanged
Version 4.67.326
Fixed
- Fixed Free Pascal builds on Windows importing the bitmaps of an EMF file as solid black, failing to import an EMF that uses a bitmap pattern brush, and rendering the unpainted part of a tiling pattern cell black instead of white. Delphi builds were not affected
Version 4.67.325
Fixed
- Fixed display lists of a removed or replaced document staying in the display-list cache until ClearDisplayListCache was called or the library instance was freed. They are now released together with the document, and the cache counters are left untouched
Version 4.67.324
Fixed
- Fixed the tile surface cache returning an outdated tile after a page of the open document was edited. Drawing on the page, rotating or cropping it, and adding, moving or filling in annotations and form fields now give a fresh tile without a call to ClearRenderSurfaceCache
Version 4.67.323
Fixed
- Fixed page lookups on documents whose page tree holds fewer pages than its page count announces: pointing an annotation at such a missing page number now fails instead of silently targeting another page, and BalancePageTree leaves such a tree untouched instead of writing one page into it twice
Version 4.67.322
Fixed
- Fixed the revision history and the post-signing modification verdict slowing down sharply on files whose incremental updates rewrite a very large number of objects. The results are unchanged
Version 4.67.321
Changed
- Text drawn with an updatable subsetted TrueType font is considerably faster when the font is large, such as a CJK collection font: the font program is now read from the system once per save cycle instead of at every subset update. The output is unchanged
Version 4.67.320
Changed
- Adding a system font with embedding now fails (returns 0) when the selected face is a raster or vector font that has no TrueType program, instead of producing a font with an empty embedded font file that viewers reject. Such a face can still be added without embedding
Version 4.67.319
Fixed
- Fixed saving failing with error 602 after shaped text was drawn with a CFF-based OpenType font in a document below PDF 1.6. The document version is now raised to 1.6 automatically, as for other features; a version pinned lower with LockSaveVersion still makes the save report the conflict
Version 4.67.318
Fixed
- Fixed wrong or missing glyphs in text drawn with a CID-keyed CFF OpenType font, such as the OTF editions of Noto Sans CJK and Source Han Sans, whose internal character IDs differ from the glyph order. Both ordinary text and shaped text now show the intended glyphs in every viewer
Version 4.67.317
Fixed
- Fixed the revision history and the post-signing modification verdict missing an incremental update whose end-of-file marker was separated from its cross-reference offset by a long run of white space. Such an update is now listed as a revision of its own however much padding it carries
Version 4.67.316
Fixed
- Fixed direct access reading several values as missing when the file stores them as indirect objects: the lock dictionary of a signature field and its action and field list, outline titles, the catalog version, the extension level and the XObject resources used for page hashing. Encrypting with AES-GCM through direct access no longer discards the other entries of an indirectly stored Extensions dictionary
Version 4.67.315
Fixed
- Fixed handles that outlive their object: after a document was removed, or an image, image list, captured page, text block list, string list or text flow was released, using the old handle could read released memory and crash. Such a handle is now rejected, and removing a document invalidates the handles of everything that belonged to it
Version 4.67.314
Fixed
- Fixed GetOutlineOpenFile returning a file name with characters outside the system code page replaced: the Unicode name of the file specification is now read when it is present
Version 4.67.313
Fixed
- Fixed SaveToFile leaving LastErrorCode at 0 when the file could not be written, for example when the target is the file the document was loaded from: it now reports 403, could not open output file
Version 4.67.312
Fixed
- Fixed GetDocumentFileID returning a damaged identifier on systems with a double-byte code page: bytes above 127 were converted as text and came back as question marks or merged characters. Every byte of the identifier is now returned as one character
Version 4.67.311
Fixed
- Fixed two shutdown problems: a library instance freed on a different thread than the one that created it no longer releases the COM initialisation of the wrong thread, and the DLL no longer frees its instances while the host process is ending, where waiting for an already stopped rendering thread could hang the exit. Unloading the DLL with FreeLibrary still frees them
Version 4.67.310
Fixed
- Fixed display list caching applying only to the document that was selected when it was switched on or off: documents created, loaded or selected afterwards now follow the setting, so they are cached when caching is on and no longer keep recording after it is turned off
Version 4.67.309
Fixed
- The signing samples (PdfSigning for Delphi and Lazarus, SigningWorkbench for Lazarus) now use [email protected] as the default signature contact instead of an address at a real third-party domain
Version 4.67.308
Fixed
- The DataSetExport scenario of ContentLab (Delphi) no longer shows a path from a development machine in its usage hint; the example now uses a placeholder for the RAD Studio folder
Version 4.67.307
Changed
- The SigningWorkbench, ComplianceWorkbench and DocumentInspectionWorkbench scenarios accept --password-file (and SigningWorkbench --pfx-password-file) to read a password from the first line of a text file, so it no longer has to be passed on the command line; the existing --password options still work
Version 4.67.306
Fixed
- Fixed word wrapping of text in a CJK font breaking in the middle of a character pair, or dropping characters, when a character whose code ends in 00 is directly followed by one from the U+20xx punctuation block
Version 4.67.305
Fixed
- The MergePDF scenario of DocumentLab (Delphi) no longer lets files dropped during a running merge change the input list, which could turn a successful merge into a reported failure, and keeps accepting dropped files after its window handle is recreated
Version 4.67.304
Fixed
- The Delphi Showcase demo now prints its usage for --help instead of exiting silently, and the descriptions of the Reader demo and of the C++Builder output helper match what the programs do
Version 4.67.303
Fixed
- The C++Builder lab runners no longer show a garbled first line when the tail of a long failure log starts in the middle of a multi-byte character
Version 4.67.302
Fixed
- Fixed several page operations acting on the currently selected page when the page they were asked for could not be selected, for example while a graphics state, path or marked content scope is still open. Capturing a page, stitching pages, reversing the page order, flattening form fields, importing annotations, compressing a scanned page and running a page script now fail and leave the document unchanged in that situation, and document sanitizing refuses to start instead of silently skipping the other pages
Version 4.67.301
Fixed
- Fixed DrawBarcode encoding the wrong number for UPC-E text given in the full eight-digit form: the leading number system digit was taken as data and the last data digit dropped. The eight-digit form is now accepted with its check digit verified, six or fewer digits behave as before, and other digit counts are rejected with return value 0 instead of being cut down to their first six digits
Version 4.67.300
Fixed
- An SVG picture embedded as a data URI and referenced several times in one drawing, for example through use elements, is now stored in the PDF once per DrawSVG call instead of once per reference, which makes such files considerably smaller
Version 4.67.299
Fixed
- Fixed slow rendering and high memory use on pages that select the same soft-masked graphics state many times: the mask is now rendered once and reused
Version 4.67.298
Fixed
- Fixed slow rendering and growing memory use on pages that select Separation, Lab, DeviceN or Indexed colour spaces very many times
Version 4.67.297
Fixed
- The PdfDecrypt scenario of SecurityLab (Delphi and C++Builder) now reports when its encrypted sample cannot be created in the current folder instead of failing later with a misleading load error
Version 4.67.296
Fixed
- The AddTrueTypeSubsettedFont scenario of ContentLab (Delphi and C++Builder) now reports a missing Calibri font instead of silently writing a PDF with the wrong font
Version 4.67.295
Fixed
- The EmbedMissingFonts scenario of ContentLab (Delphi) now explains that the opened PDF cannot be chosen as the Save As target instead of reporting a bare save failure
Version 4.67.294
Fixed
- Fixed tile rendering showing the content of a previously closed document, or the old content of an edited page: recorded display lists are now matched against the content they were recorded from
Version 4.67.293
Fixed
- The C++Builder ImageToPdf scenario of ImageLab now loads images with the same options as the Delphi version, releases each converted document, and derives the output name by changing only the file extension
Version 4.67.292
Fixed
- The ClipboardExport scenario of DeliveryLab (Delphi) now releases the previous document when another file is opened instead of keeping every opened file loaded
Version 4.67.291
Fixed
- Fixed links, outline items and actions that open another file losing the target when its name contains characters outside ASCII: the file specification now also carries the Unicode name, so the link resolves on systems with a different code page. Web link targets with non-ASCII characters are now written as percent-encoded UTF-8 instead of system code page bytes; ASCII file names and URLs are written exactly as before
Version 4.67.290
Changed
- DrawQRCode now returns 0 and draws nothing when the Numeric, Alphanumeric or ISO-8859-1 mode is forced and the text contains characters that mode cannot represent; previously those characters were silently removed and a symbol encoding different text was drawn. Use EncodeOptions 0 to let the mode follow the text
Version 4.67.289
Fixed
- Fixed the render surface cache returning tiles rendered for another document, or with other colour settings: tiles are now kept apart per document and per black point compensation, gamma correction and direct font setting
Version 4.67.288
Fixed
- Fixed ContentStreamSafe always returning 0: it now returns 1 for a content stream part that the library created, as documented
Version 4.67.287
Fixed
- Fixed ExportObjectJSON always failing in the Free Pascal and Lazarus builds: the finished file could not be moved into place
Version 4.67.286
Changed
- The VC++ HelloWorld sample now encrypts its copy with 256-bit AES at strength 4 and sample passphrases instead of strength 3 and the password 1234, and the HugeFileBenchmark scenario (Delphi, C++Builder and Lazarus) measures strength 4 instead of the superseded strength 3
Version 4.67.285
Fixed
- SVG text interrupted by comments, processing instructions or CDATA sections is now handled as a single run: white space on both sides of the interruption collapses to one space, and such markup can no longer make the importer build an unbounded number of internal text nodes
Version 4.67.284
Fixed
- Fixed SVG numeric character references above U+FFFF, such as emoji and rare CJK ideographs, being dropped from text and attribute values; references to surrogate code points, which are not characters, are now ignored instead of being inserted as broken text
Version 4.67.283
Fixed
- Fixed SVG lengths given in em or ex units being read as plain user units, which stacked the lines of multi-line text positioned with values such as dy="1.2em" on top of each other; em now resolves against the font size of the element and ex against half of it
Version 4.67.282
Fixed
- Fixed printing with job status tracking, a paused start or output to a file reporting success when the print job could not be started; the print call now reports failure instead of drawing pages that are lost
Version 4.67.281
Fixed
- The PrintPDF scenario of DeliveryLab (Delphi, C++Builder and Lazarus) now selects A4 paper for its A4 sample pages instead of Letter, so the unscaled print jobs are no longer cropped
Version 4.67.280
Fixed
- The Reader demo (Delphi) now asks for the password when a document is encrypted and refreshes its status line when a file cannot be opened
Version 4.67.279
Fixed
- The Reader demo (Delphi) now steps the zoom from the factor that is actually on screen and shows it in the status line; after Fit Width the buttons and the status line used a stale percentage
Version 4.67.278
Fixed
- The SanitizeDemo and SearchReplace scenarios of SecurityLab (Delphi, C++Builder and Lazarus) now really verify their result and fail when sanitizing or replacing left something behind; SanitizeDemo also plants the open action its description mentions
Version 4.67.277
Changed
- The PdfPermission and PdfEncrypt scenarios of SecurityLab (Delphi, C++Builder and Lazarus) now protect their output with 256-bit AES (strength 4) instead of 128-bit RC4 and 128-bit AES
Version 4.67.276
Fixed
- Fixed opening of password-encrypted documents whose catalog is stored in an object stream. Such files, including those written by EncryptFile at strengths 3 and 4 from a source that uses object streams, were refused with a generic load error
Version 4.67.275
Fixed
- The built-in Data Matrix reader now also reads 144 x 144 symbols whose error-correction codewords use the alternative placement written by a number of other encoders; symbols produced by the library itself are unchanged
Version 4.67.274
Fixed
- Fixed HTML text losing or garbling characters when a CJK character whose code ends in 00 (such as U+4E00, U+5F00 or the ideographic space) was directly followed by a U+20xx punctuation mark or by certain other characters; such pairs were mistaken for a space, a tag opening or a comment end
Version 4.67.273
Fixed
- Fixed print job status queries and the pause, resume and delete job controls silently doing nothing for printers whose name contains characters outside Latin-1, such as Chinese printer names
Version 4.67.272
Security
- Fixed EPS export writing spot colour names from the document without escaping, which let a crafted name insert arbitrary PostScript operators or forged DSC comments into the exported file
Version 4.67.271
Fixed
- Fixed wrong colours when rendering gray values or gradient colour stops slightly outside the range 0 to 1: a gray of 1.004 was drawn nearly black, and out-of-range gradient stops produced unrelated colours
Version 4.67.270
Fixed
- Fixed rendering a page whose crop box lies entirely outside its media box: the render reported success but produced an empty file. Such a page now renders as a minimal blank image, like a page with an empty box
Version 4.67.269
Fixed
- Fixed a page without any resource dictionary failing to render when its content selects a named colour space, contains an inline image or uses optional-content or span marked content
Version 4.67.268
Fixed
- Fixed a page failing to render when it uses a tiling pattern whose bounding box has zero width or height; such a pattern is now skipped and the rest of the page is drawn
Version 4.67.267
Fixed
- Fixed very slow rendering and unbounded memory use on content streams containing a huge number of unmatched save-graphics-state operators
Version 4.67.266
Fixed
- Fixed a memory leak when adding an image fails with an exception, for example a TIFF file with an invalid WhitePoint: the partly built image object was never released
Version 4.67.265
Changed
- TIFF import now checks that SamplesPerPixel agrees with PhotometricInterpretation before storing strips unchanged. An uncompressed RGB or CMYK TIFF with additional samples but no ExtraSamples field (an RGBA file, typically) is now imported with correct colours instead of an image whose data did not match its colour space; any other mismatch, such as two-sample grayscale, is rejected with an error instead of producing a broken image
Version 4.67.264
Fixed
- BMP import no longer takes the resolution and row order from misread data: OS/2 style BMP files with a 12-byte header are read with their own field layout instead of receiving a random resolution or being flipped vertically, a file too short to hold a header is handled predictably, and a negative pixel density is treated as unknown
Version 4.67.263
Security
- Fixed ImportObjectJSON accepting any text as the PDF version of an object graph. The version was written into the header of the next saved file as it stood, so a crafted graph could place arbitrary lines, including object definitions, at the start of the file. A version must now be a digit, a period and a digit, and the export writes only such a version
Version 4.67.262
Fixed
- Fixed linearization copying the source file's object streams and cross-reference streams into the output as unused objects when the output is written with classic cross-reference tables or the document is encrypted. The linearized file no longer carries this dead data
Version 4.67.261
Changed
- The DLL and the macOS dynamic library no longer let an exception escape from an exported function. Where the library raises by design, for example on drawing or saving while a page is suspended, the function now returns its failure value (0 or a null pointer) instead of unwinding into the calling program, which usually ended the host process
Version 4.67.260
Fixed
- Fixed direct access functions that take a page reference treating the handle of some other object, such as a font or an image list, as a page reference, which could crash
Version 4.67.259
Fixed
- Fixed the handle of a file opened with DAOpenFile becoming invalid when a document was reloaded or an edit journal state was restored: the file could no longer be closed and stayed open until the library instance was destroyed
Version 4.67.258
Fixed
- Fixed MultiplyScale raising an exception or corrupting all later coordinates for a factor of zero, a negative factor or a value that is not a number; it now returns 0 and leaves the scale unchanged. StitchPageOverlay now rejects an opacity that is not a number before it captures the source page, instead of failing after the page was already removed
Version 4.67.257
Fixed
- Fixed the temporary index of a form field child addressing a child of a different field when a field has more than 255 children or the form has more than 65535 fields. No index is returned for such a child instead of a wrong one
Version 4.67.256
Security
- SVG image elements no longer read files named by the SVG unless the caller opts in: by default only inline data URIs are drawn, and with the DrawSVGEx option PDF_SVG_IMPORT_ALLOW_FILTER_IMAGE_FILES a plain path or file URL on a local drive is accepted while UNC, device and network references are always left out. DrawSVG, DrawSVGFromFile and option-less DrawSVGEx calls that relied on local image files must switch to DrawSVGEx with that option
Version 4.67.255
Security
- Fixed rendering and text extraction never finishing on a small file whose form XObjects each paint the next one many times; the number of nested form and Type 3 glyph paints per page is now limited, and paints beyond the limit are skipped
Version 4.67.254
Changed
- Adding a JPEG file now fails (the function returns 0) when the file cannot be shown by PDF readers as it is: lossless JPEG (SOF3), 12-bit samples, or a component count other than one, three or four. Such files used to be embedded and reported as success, but the resulting image could not be displayed. The AddImageFromFile, AddImageFromString and AddImageFromStream reference pages describe the rule
Version 4.67.253
Fixed
- Fixed the page and form data-availability queries following link destinations into other pages. A page that links to other pages no longer needs the bytes of every page reachable through links, and documents with a chain of a few dozen linked pages no longer fail with a dependency depth error
Version 4.67.252
Changed
- After MovePage the moved page now stays selected under its new number: SelectedPage returns the new position. Before, SelectedPage kept the old number while drawing still went to the moved page, and a later call that re-selects the current page, such as CombineContentStreams, silently switched drawing to a different page
Version 4.67.251
Fixed
- Fixed SetAnnotIntProperty with property 131 accepting a page number that does not exist: it returned 1 and pointed the link at whichever page had been looked up last. An invalid page number is now rejected with 0 and the link keeps its destination
Version 4.67.250
Fixed
- Fixed DeletePages trying to reserve memory for as many pages as a damaged or hostile file claims to have. The page count used there is now bounded in the same way as everywhere else
Version 4.67.249
Fixed
- Fixed opening a document with a very large flat page tree decoding every page object before the first page could be used. Page objects are again decoded only as the pages are reached
Version 4.67.248
Fixed
- Fixed a crash when working with a page whose Contents entry is neither a stream reference nor an array, for example a number written there by a damaged or hostile file. Such a page is now treated as an empty page that can be read and drawn on
Version 4.67.247
Fixed
- Fixed documents whose page objects lack the Type entry being handled inconsistently: such a page could be skipped when it sat below an intermediate node of the page tree, which shifted every later page number, and DeletePages or MovePage could then act on a different page than the one selected. All page tree lookups now treat an entry without children as a page
Version 4.67.246
Fixed
- Importing a TIFF file with a malformed resolution no longer raises a floating-point exception or yields a negative DPI. A resolution that is negative, not a number, infinite or beyond the integer range is now treated as unknown, so the image is placed with the default resolution
Version 4.67.245
Fixed
- Importing a TIFF file whose strip byte counts are far larger than the file no longer reserves up to 2 GB per strip, which could fail with an out-of-memory error on 32-bit builds. The strips are read with the length the file really has
Version 4.67.244
Security
- Fixed a denial of service when importing a TIFF file: a file of about a megabyte could declare tens of thousands of directory fields that all point at the same data and keep the importer busy for minutes. The total number of field values read from one file is now limited in proportion to its size, and a file beyond the limit is rejected
Version 4.67.243
Fixed
- A palette TIFF that declares 32-bit samples together with a three-value colour map is now rejected as invalid. It used to pass validation because the expected palette size was computed with a shift that wrapped around
Version 4.67.242
Fixed
- Fixed missing or wrong glyphs in shaped text drawn with a CFF-based OpenType font when the same glyph stands for different characters in different places, such as an ideograph and its radical form or a hyphen and a soft hyphen. Such a glyph is now always drawn; text extraction reports the character of its first use
Version 4.67.241
Fixed
- Fixed MergeTableCells reporting success but drawing nothing for the new merged cell when its first cell was hidden by an earlier merge that starts outside the new range. The earlier merge is now dissolved, as merges inside the range already were
Version 4.67.240
Fixed
- Fixed the native OCR input check miscalculating the row size of a very wide page raster, which let a truncated raster pass the size check
Version 4.67.239
Fixed
- Fixed content analysis and redaction slowing down sharply on a content stream that sets thousands of clipping paths in one graphics state level or nests marked content hundreds of levels deep
Version 4.67.238
Fixed
- Fixed signature verification of EU trusted lists that are indented or use Windows line ends: the white space between elements and the normalised line ends are now part of the canonical form that is checked, so correctly signed lists are no longer rejected. A list whose white space was altered after signing is rejected, as the XML signature rules require
Version 4.67.237
Fixed
- Fixed redaction and content analysis slowing down sharply on a content stream with a long run of path construction operators that is never painted
Version 4.67.236
Fixed
- Fixed content stream analysis raising a floating-point exception on a line cap, line join or text rendering mode operand far outside the integer range
Version 4.67.235
Fixed
- Fixed pages being selected, drawn on or reported under the wrong page number in documents whose page tree keeps an empty intermediate node, for example after pages were deleted from a nested tree
Version 4.67.234
Security
- Fixed rendering and text extraction never finishing on a page whose form XObject paints itself more than once, directly or through other forms; a form or Type 3 glyph that is already being painted is no longer painted again inside itself
Version 4.67.233
Fixed
- Fixed the ToUnicode maps written for embedded TrueType and OpenType fonts: a character range no longer runs across a 256-character boundary of its Unicode destinations, which made some PDF readers copy or search the wrong characters for part of such a range. The maps are slightly larger; the characters they describe are the same
Version 4.67.232
Fixed
- Fixed signing of very large documents with detached CMS and PAdES signatures: when the signed range does not fit in memory (2 GB or more) or cannot be read back completely, signing now fails instead of writing a signature computed over a truncated range
Version 4.67.231
Fixed
- Fixed signature trust evaluation on Windows when the configured trust anchors or a trust source contain an empty or unreadable certificate: that entry is now skipped and the remaining anchors are used, instead of all signatures being reported as untrusted
Version 4.67.230
Fixed
- TIFF images that store more than five samples per pixel in one plane, for example RGB with three extra channels or CMYK with two, can now be imported. They were announced as supported but failed with an invalid sample block error; the extra channels are dropped as before and the first one may still supply the alpha mask
Version 4.67.229
Fixed
- Importing a TIFF file with floating-point samples no longer raises a floating-point overflow exception when its declared sample range is wider than a double can represent; the file is reported as an unsupported TIFF instead. Any other unexpected error while reading TIFF directories is now also reported as an import failure rather than an exception
Version 4.67.228
Fixed
- Rendering no longer tries to allocate gigabytes for a small image whose mask has extreme and opposite proportions, such as a 20000 x 1 image with a 1 x 20000 soft mask. Such an image is skipped; ordinary images with a finer or coarser mask are unaffected
Version 4.67.227
Changed
- ClonePages no longer makes the cloned page share the link, note and other annotation objects of its source. Each clone gets its own copies, so editing or deleting one on a clone leaves the source page alone. Form field widgets are still shared, so a cloned form page keeps showing its fields; pop-up windows are not copied, and the clone no longer claims the source page place in the structure tree or its article beads
Version 4.67.226
Fixed
- Fixed ClonePages producing pages with the wrong size, rotation or missing fonts and images when the source page took its page boxes, rotation or resources from a parent node of the page tree. The clone now carries its own copy of those inherited values
Version 4.67.225
Fixed
- Fixed ClonePages removing every content layer but the first from the source page when the page kept its content streams in a shared array. The clone now gets its own list holding the first layer and the source page is left as it was
Version 4.67.224
Changed
- The structural comparison now notices a reference that was redirected to a different object already present in the file, such as a page pointed at another content stream, font or image; before, such a change produced no finding at all. An object is now also reported as changed, with the detail referenced object changed, when something it refers to changed. Object fingerprints are derived from SHA-256 instead of a fast non-cryptographic hash
Version 4.67.223
Security
- Tightened the modification analysis so a changed object can no longer be passed off as an LTA update, form filling or an annotation by adding a store, signature or field key to it. A dictionary counts as a document security store or a signature dictionary only when all of its keys belong there, and a changed object keeps its class only when the object it replaced was of the same kind; pages, fonts and resource dictionaries dressed up this way are now reported as unclassified
Version 4.67.222
Fixed
- Fixed the revision functions and the signature modification review taking minutes or hours on a file stuffed with thousands of end-of-file markers. Building the revision list is now proportional to the size of the file
Version 4.67.221
Fixed
- Fixed missing content when rendering on non-Windows platforms: transparency groups and translucent annotation appearances were not drawn at all. They are now painted directly, with transparency applied per object instead of to the group as a whole
Version 4.67.220
Fixed
- Fixed the Cairo renderer ignoring dash patterns, line caps, line joins and the miter limit: every stroke was drawn solid with butt caps and mitered joins
Version 4.67.219
Fixed
- Fixed dashed lines in rendered pages: dash and gap lengths were only correct for a line width of 1, the dash phase was misplaced, and patterns with an odd number of entries or zero-length dashes (dotted lines) were drawn solid
Version 4.67.218
Security
- Fixed EMF import of gradient fills with very large coordinates, which could take practically unlimited time and memory; large gradients are now drawn with a bounded number of colour bands
Version 4.67.217
Fixed
- Fixed updatable subsetted TrueType fonts slowing down and using more memory with every subset update; documents that add many CJK characters step by step are now noticeably faster to build. The saved output is unchanged
Version 4.67.216
Fixed
- Fixed AddTrueTypeSubsettedFont behaving unpredictably on Linux and macOS, where it depends on a Windows-only font subsetting service: it now consistently returns 0 there instead of sometimes reporting success with an unusable font
Version 4.67.215
Fixed
- Fixed unpredictable font metrics, character ranges and embedding decisions when adding a Windows bitmap or vector system font that has no outline metrics; such fonts now get consistent values taken from their text metrics
Version 4.67.214
Fixed
- Fixed character widths reported for composite fonts already present in a loaded document: fonts with a CFF-based descendant returned zero for every character, and characters not listed in the width table of any composite font now use the font's default width instead of zero. Text measured or laid out with such fonts changes accordingly
Version 4.67.213
Security
- Fixed an out-of-bounds read, seen as an access violation, when rendering or extracting an Indexed JPEG 2000 image whose /Width or /Height is larger than the size stored in its code stream. The palette is now applied over the size the code stream actually has, as for other JPEG 2000 images; an image whose dictionary states a smaller size is no longer cropped
Version 4.67.212
Security
- Fixed an information leak when rendering or extracting an image whose data is shorter than its declared size or whose BitsPerComponent is not 1, 2, 4, 8 or 16: the missing pixels were filled with leftover memory contents, such as parts of a previously decoded image. Missing samples are now zero and an invalid bit depth makes the image fail to load
Version 4.67.211
Security
- Fixed an out-of-bounds read when decoding an uncompressed or Flate, LZW or RunLength image whose width, height, component count and bit depth multiply to more than 2 GB: the size calculation wrapped, the pixel buffer came out too short and the image was still reported as loaded. Such an image now fails to load
Version 4.67.210
Security
- Fixed a heap buffer overflow when decoding a JPEG image that declares two or five to ten colour components: such an image was decoded into rows sized for three bytes per pixel. It is now rejected as an unsupported JPEG
Version 4.67.209
Fixed
- Fixed a thread-safety problem in JPEG 2000 decoding and encoding: when several threads processed JPEG 2000 images at the same time and the codec reported a warning or error, the threads shared one message buffer, which could corrupt memory or report another image's message
Version 4.67.208
Security
- Fixed a crash or memory corruption when a CCITT fax image declares an absurd width: PDF/R validation and AddPDFRRasterPageFromString, AddPDFRRasterPageFromStream now treat it as an invalid image instead of raising an exception or decoding with undersized tables. CCITT images wider than 1,048,576 pixels are rejected
Version 4.67.207
Security
- Fixed excessive memory use when decoding a stream that uses the TIFF predictor: a few bytes of data with a very large /Colors value made the decoder reserve up to 2 GB of working memory. The working memory now follows the amount of data actually present
Version 4.67.206
Fixed
- Free Pascal builds: decompressing a large Flate stream no longer slows down quadratically (300 MB of output took over two minutes and now takes under a second), and a stream that expands beyond 2 GiB is rejected instead of overflowing the output length
Version 4.67.205
Security
- Tightened the built-in certificate path check used for EdDSA, ML-DSA and SM2 chains: a trusted end-entity certificate can no longer act as the issuer of other certificates, and a chain is rejected when one of its certificates carries a critical extension the check cannot process, such as name constraints or policy constraints. Chains that rely on such extensions being ignored are now reported as invalid
Version 4.67.204
Changed
- Adding a signature time stamp to an existing signature is now refused, with process result code 17, when a later signature or document time stamp in the file covers that signature. Previously the signature value was rewritten in place and success was reported although the later signature had been invalidated
Version 4.67.203
Changed
- Signature verification now reports the result as unknown instead of invalid when the signed data is larger than the verifier can process (2 GB for modern CMS signatures on Windows, 256 MB on other platforms and for SHA-3 or SM3 document timestamps). The signature is still never reported as valid in that case; an invalid result is reserved for signed bytes that do not match
Version 4.67.202
Fixed
- Fixed PKCS #11 signing with real hardware and software token modules on Windows: the Cryptoki structures are now laid out with the 1-byte packing that Windows modules use, so the function table, attribute templates and mechanism parameters line up with the module. A function table supplied through UseFunctionList must use the same layout; tables declared with the library record type only need a rebuild
Version 4.67.201
Fixed
- Fixed PDF MAC validation so that a valid integrity token is accepted regardless of the position of its message-digest attribute among the authenticated attributes
Version 4.67.200
Fixed
- Fixed EncryptWithFingerprint so that a damaged, truncated or altered fingerprint is rejected before anything is applied: a failed call now leaves the document, its file identifier and its encryption state untouched. The reference page of GetEncryptionFingerprint now states that the fingerprint contains the document key and must be protected like a password
Version 4.67.199
Fixed
- Fixed per-character details of extracted text (Unicode flags and geometry) occasionally carrying values from a previous text run for spaces that the extraction inserts between widely spaced characters
Version 4.67.198
Fixed
- Fixed tagging of flattened form fields in a large tagged document: the search of the structure parent tree stopped after 65536 entries, so a field could be left untagged or a new entry could be given a key that already exists
Version 4.67.197
Security
- Fixed layout-preserving text extraction exhausting memory or never finishing on a page whose text is positioned far outside the page, for example by a text matrix with a coordinate of two thousand million. Coordinates are clamped, a vertical gap produces at most 2000 blank lines and a line holds at most 65536 characters
Version 4.67.196
Fixed
- Fixed plain text extraction slowing down sharply on pages with a lot of text: the final clean-up of blank lines took time proportional to the square of the text length
Version 4.67.195
Security
- Fixed plain text extraction never finishing on a page whose form XObjects invoke each other in a fan-out pattern: a file of a few kilobytes could ask for an astronomical number of form extractions. The number of forms read for one page is now limited
Version 4.67.194
Fixed
- Fixed EMF import of pens with a custom dash style: only the first dash length was read correctly and the rest came out as arbitrary values
Version 4.67.193
Fixed
- Fixed EMF import of bitmap records that draw only part of their stored bitmap: the selected part is now drawn instead of the whole bitmap, a shifted bitmap or a blank area
Version 4.67.192
Security
- Fixed an out-of-bounds read when importing an EMF file whose embedded bitmap declares more pixel data than the record contains; such bitmaps are now skipped
Version 4.67.191
Security
- Hardened the signature modification review and the revision kinds against updates that disguise a content change. An object rewritten after signing is no longer accepted as validation material, a time stamp, a signature, a form field, an annotation or bookkeeping merely because the update labels it so: it must already have had that role before, an object stream that is rewritten in place and an update that switches the document root are reported as content changes, and objects padded so that their end lies far from their start are read in full before being judged. Documents that previously reported such updates as allowed now report them as disallowed
Version 4.67.190
Security
- Fixed the signature modification review misreading an object stored in an object stream when its text contained the letters obj, which could make a rewritten page after signing report as validation material. Objects whose header is missing or names a different object are now reported as unreadable instead of being guessed at
Version 4.67.189
Fixed
- Fixed text width measurement returning zero for one of the characters when a subsetted Unicode font had exactly two characters registered and they were added in descending code order
Version 4.67.188
Fixed
- Fixed opening RC4 and AES-128 protected documents with a non-ASCII password created by other software: the password is now also tried in PDFDocEncoding, as the PDF specification defines, and in UTF-8, in addition to the system code page used so far. Documents encrypted by earlier releases open as before; the bytes used when encrypting are unchanged
Version 4.67.187
Security
- Fixed excessive memory use when decoding JPEG 2000 images: a file of a few kilobytes could declare dimensions that made the decoder reserve tens of gigabytes before failing. Images too large to be returned as a bitmap are now rejected right after the header is read, and a memory leak on a failed bitmap allocation was closed
Version 4.67.186
Security
- Fixed excessive memory use in JBIG2 decoding: an image of a few dozen bytes could declare a zero-width bitmap with billions of rows, or many full-size bitmaps, and exhaust memory. The decoder now limits the total memory of all bitmaps in one image to 1 GiB
Version 4.67.185
Security
- Fixed a denial of service in JBIG2 decoding: a halftone region of about a hundred bytes could declare a grid whose patterns took hours to paint. Regions whose grid is far larger than any real page needs are now rejected
Version 4.67.184
Security
- Fixed a hang when opening or rendering a document whose JBIG2 image has truncated or deliberately malformed arithmetic-coded data; such an image is now rejected immediately instead of keeping the decoder busy indefinitely
Version 4.67.183
Fixed
- Fixed a memory leak when rendering text in a font whose descriptor embeds both a Type 1 and a CFF font program
Version 4.67.182
Security
- Fixed a crash and runaway memory use when drawing vertical text with a crafted font whose vertical glyph substitution tables repeat the same entries many times
Version 4.67.181
Security
- Fixed excessive memory use and long load times for a crafted TrueType or OpenType font whose character map lists the same subtable tens of thousands of times; fonts that reference one subtable from several encoding records now also load it only once
Version 4.67.180
Security
- Fixed excessive memory use when loading a crafted WOFF font: a table whose compressed data expands beyond its declared size is now rejected without being fully decompressed, and the rebuilt font is limited to 512 MB in total
Version 4.67.179
Fixed
- Fixed embedded CFF fonts with an out-of-range subroutine or string reference occasionally picking up unrelated leftover data instead of being treated as empty
Version 4.67.178
Security
- Fixed a hang when rendering text set in an embedded Type 1 or CFF font whose glyph programs call subroutines in a deeply fanned-out pattern; such a glyph is now cut short after a fixed amount of work instead of running practically forever
Version 4.67.177
Security
- Fixed a hang that exhausted memory when opening or rendering a document with an embedded Type 1 font that declares a negative or oversized length for a glyph or subroutine program
Version 4.67.176
Security
- Fixed a crash when rendering or inspecting text set in an embedded CFF font whose accented glyph names itself as one of its own components
Version 4.67.175
Fixed
- Fixed reading AES-encrypted strings and streams whose data was cut short: the complete blocks are now decrypted and kept instead of the whole value being discarded. On non-Windows targets a damaged or missing padding block no longer empties the value either, matching the Windows behaviour
Version 4.67.174
Fixed
- Fixed a possible stack overflow when hashing large in-memory buffers, for example the rendered page bitmaps used by the visual page comparison: the SHA-2 and SHA-3 helpers no longer copy their whole input onto the stack
Version 4.67.173
Fixed
- Fixed a slowdown when validating the PDF MAC revision chain of a large file that contains many integrity dictionaries: the validation time no longer grows with the square of the file size
Version 4.67.172
Fixed
- Fixed the handling of signature values in encrypted documents: the signature value of a signature dictionary is now left unencrypted when an encrypted document is loaded or saved, as the PDF specification requires. Previously a signed, encrypted document was read with a corrupted signature value, and with AES-GCM the whole signature dictionary could fail to decrypt
Version 4.67.171
Fixed
- Fixed opening password-protected documents whose file identifier is empty, malformed or stored as an indirect object: an empty identifier no longer causes an access violation, and an indirectly stored identifier is now used for the password check and kept instead of being replaced by a new random value
Version 4.67.170
Fixed
- Fixed direct access slowing down sharply once many objects of a file had been changed, for example after a file was opened with its encryption key: every object lookup searched the whole list of changed objects
Version 4.67.169
Fixed
- Fixed direct access writing an object with a generation number above zero back as generation 0 in an incremental update, and cutting generation numbers above 255 short in the cross-reference table it writes. In an encrypted file such an object could not be decrypted afterwards
Version 4.67.168
Fixed
- Fixed two cases in which a stream that could not be decoded under the configured limits was reported as an empty stream: hexadecimal data larger than the limit, and writing decoded data to a stream when the decoder failed. Both are reported as failures now
Version 4.67.167
Fixed
- Fixed direct access drawing a captured page onto a page that inherits its resources from the page tree: the page was given an empty resource dictionary of its own, which hid the inherited fonts and images and broke its existing content
Version 4.67.166
Fixed
- Fixed CompactDocumentMemory leaving the document unusable: any later call that touched the pages or the form, even PageCount, read released memory and could crash. The page tree and the form are now set up again after compacting, with the selected page kept
Version 4.67.165
Fixed
- Fixed loading taking minutes for a large damaged file whose cross-reference table is not followed by a trailer, or whose cross-reference stream has no usable dictionary
Version 4.67.164
Fixed
- Fixed objects of a file of 10 GB or more being located in the wrong order, which gave them wrong lengths when the file was loaded
Version 4.67.163
Security
- The stream decoding limits set with SetStreamDecodeLimits now also apply to cross-reference streams. A small file whose cross-reference stream expands to hundreds of megabytes used to be decompressed in full regardless of the configured limit
Version 4.67.162
Fixed
- Fixed a stream whose /Length entry is missing or cannot be resolved being loaded without its data, so that the data was silently dropped when the document was saved. The data is now taken up to the endstream keyword
Version 4.67.161
Fixed
- Fixed the generated appearance of a filled polygon annotation setting its fill colour in the middle of the path, which strict viewers and validators reject
Version 4.67.160
Fixed
- Fixed the value of a check box or radio button reading back differently from what was set when it contains a character such as the euro sign, a dash or typographic quotes
Version 4.67.159
Fixed
- Fixed large XFA form templates and large XML trust lists failing to parse as a whole because of a limit of 50000 XML nodes. The limit is two million now, with at most 256 attributes on one element
Version 4.67.158
Fixed
- Fixed the blanks between words being lost from rich text values of an XFA form when the form data was rewritten, where a blank stood alone between two formatted runs
Version 4.67.157
Fixed
- Fixed a form calculation or format script whose arithmetic overflows, such as 1e200*1e200, raising a floating-point exception out of the library. The four operators now give Infinity, -Infinity or NaN as JavaScript does, and any other floating-point error ends the script as invalid
Version 4.67.156
Fixed
- Fixed reading and changing the font of a form field going wrong when the name of the font resource in its default appearance contains the letters Tf, for example /Tf0
Version 4.67.155
Security
- The generated appearance of a password field now shows one asterisk per character. The field value used to be drawn, and stored in the appearance stream, as plain text
Version 4.67.154
Changed
- A choice field without its own /Q entry is now drawn left aligned, as the PDF specification defines, instead of right aligned. Fields without /Q also follow the document-wide /Q of the interactive form, both when their appearance is generated and when their alignment is read
Version 4.67.153
Fixed
- Fixed page extraction through direct access overflowing the stack on a document with a very long chain of objects, such as an outline with tens of thousands of entries on one level
Version 4.67.152
Fixed
- Fixed direct access returning the raw, still encoded bytes of a stream whose /Filter or /DecodeParms is an indirect reference; object streams, metadata, page content and extracted streams are now decoded in that case too
Version 4.67.151
Fixed
- Fixed reading a dictionary with a very large number of keys taking time that grows with the square of the key count
Version 4.67.150
Fixed
- Fixed a file with an absurd startxref or /Prev offset failing to load with an out-of-memory error instead of being repaired
Version 4.67.149
Fixed
- Fixed names and other byte strings containing characters above 127 being altered by case conversion in the Delphi build on systems with a double-byte code page, which made the same file behave differently there
Version 4.67.148
Fixed
- Balancing the page tree of a document with no pages now returns normally. An empty document no longer leaves the caller waiting indefinitely
Version 4.67.147
Fixed
- Fixed direct access handing on uninitialised bytes after the data of the last object of a file
Version 4.67.146
Fixed
- Fixed direct access allocating gigabytes, or reading outside its tables, for a small file that declares an object with a very large or negative number
Version 4.67.145
Fixed
- Fixed direct access reading past its cross-reference table when a file has a table with a single entry
Version 4.67.144
Security
- Fixed direct access accepting any password for a malformed encryption dictionary that names an AES-256 filter with a revision other than 5 to 7 and has no /U or /O value
Version 4.67.143
Fixed
- Fixed direct access crashing on save after a page that refers to a missing object, for example in its /Contents array, was captured or edited
Version 4.67.142
Fixed
- Fixed direct access joining the content streams of a page without white space, which merged the last operator of one stream with the first of the next and damaged captured pages
Version 4.67.141
Security
- DAEmbedFileStreams no longer follows a file name from the document that leads outside the given root folder. Names with a drive or stream separator, rooted and UNC paths and names containing .. are ignored
Version 4.67.140
Fixed
- Fixed reading a long hexadecimal string written with white space between its digits taking time that grows with the square of its length; a 2 MB string that took minutes now takes a fraction of a second
Version 4.67.139
Fixed
- Fixed reading a long literal string that consists mostly of escape sequences taking time that grows with the square of its length
Version 4.67.138
Fixed
- Fixed direct access returning stream data with the endstream keyword and following bytes attached when the /Length of the stream is larger than the data; encrypted and uncompressed streams with such a length were damaged
Version 4.67.137
Fixed
- Fixed direct access reading outside the object data, and possibly crashing, on a stream with a negative /Length
Version 4.67.136
Fixed
- Fixed a stream whose /Length is an absurdly large number raising a floating point error while the document is read or used; such a length is now treated like any other wrong length
Version 4.67.135
Fixed
- Fixed a small file being able to make loading, saving or structure analysis allocate gigabytes by declaring an object with a very large number. Object numbers beyond what a file of that size can hold are now ignored
Version 4.67.134
Fixed
- Fixed loading overflowing the stack on a file in which thousands of streams each give the next one as their length, or in which object streams claim to be stored inside one another
Version 4.67.133
Fixed
- Fixed a damaged file that had been updated incrementally being repaired to its oldest content. When the cross-reference data cannot be used and objects are found by scanning, the last definition of an object in the file is now the one that counts
Version 4.67.132
Fixed
- Fixed loading taking minutes or longer on a file whose cross-reference table lists objects in the reverse order of their positions; the object index is now built in a time that grows only slightly faster than the object count
Version 4.67.131
Fixed
- The PDF/A-4e check no longer reports GoTo3DView and SetOCGState actions, which that conformance level permits; they stay forbidden for PDF/A-2, PDF/A-3, PDF/A-4 and PDF/A-4f
Version 4.67.130
Fixed
- The PDF/A check now reports device-dependent colour without an output intent when the catalog has an /OutputIntents entry that is not an array; the mere presence of the key used to silence the finding
Version 4.67.129
Fixed
- The PDF/A check now reports finding 00141 when its document rule, implementation limit, graphics or font program audit has to stop early because an object cannot be read. These audits used to stop silently, so the rules they had not reached yet were skipped without a trace and the file could still pass
Version 4.67.128
Fixed
- The built-in invoice validation now reads a charge indicator written as 1 as a charge. It only recognised the spelling true before, so such a charge was added up as an allowance and the totals rules reported errors
Version 4.67.127
Fixed
- The PDF/A-2 check now opens an embedded PDF and reads its metadata to decide whether it is PDF/A. Searching the raw bytes for the identification missed files with compressed metadata and accepted any file that merely contained the words
Version 4.67.126
Fixed
- Fixed the PDF/A-1 metadata check wrongly reporting that the document information and XMP differ when an XMP value with non-ASCII characters is written as an attribute and the program runs on a system with a double-byte code page
Version 4.67.125
Fixed
- The PDF/UA check now counts an annotation whose /StructParent leads to no structure element as untagged; it was passed over before
Version 4.67.124
Fixed
- The PDF/UA-2 check no longer gives up on a long document with a large structure tree; the node limit was reached by documents with a few tens of thousands of structure elements. Structure tree checks are also much faster on large trees
Version 4.67.123
Changed
- GenerateInvoiceXML no longer substitutes defaults for missing or invalid invoice data. An empty invoice identifier, an issue date that is not a calendar date, a currency code that is not three letters and an empty line item list now make the call fail with LastErrorCode 125 instead of producing an invoice dated 2026-01-01, numbered INV-001, in EUR or with a sample line
Version 4.67.122
Fixed
- Fixed the PDF/X check never finishing, and its issue list growing without bound, on a Form XObject or an action that refers to itself several times
Version 4.67.121
Fixed
- Fixed the PDF/UA check never finishing on a structure tree or number tree whose nodes list the same child more than once
Version 4.67.120
Fixed
- The PDF/A check no longer reports a compressed metadata stream for PDF/A-2, PDF/A-3 and PDF/A-4; only PDF/A-1 requires the metadata stream to be unfiltered
Version 4.67.119
Fixed
- The PDF/A-1 check no longer applies the halftone rules of PDF/A-2 to a graphics state; PDF/A-1 has no such rules
Version 4.67.118
Fixed
- The PDF/A-1 check now reports an array with more than 8191 elements and a dictionary with more than 4095 entries, the two implementation limits of PDF 1.4 it did not test
Version 4.67.117
Fixed
- The PDF/A check no longer reports an annotation with an opacity other than 1 for PDF/A-2, PDF/A-3 and PDF/A-4, which allow transparency; the rule applies to PDF/A-1 only
Version 4.67.116
Fixed
- The PDF/A check now examines graphics state dictionaries that are written directly into a resource dictionary or stored without /Type, so transparency and transfer functions in them are no longer missed
Version 4.67.115
Fixed
- The PDF/A check now reports a font that has no font descriptor, such as a standard 14 font named only by /BaseFont, as not embedded when it is used for visible text
Version 4.67.114
Fixed
- The PDF/A check now finds forbidden actions that are written directly into an annotation, an outline item, the catalog or an additional-actions dictionary. Only actions stored as separate objects were examined before, so a file with an inline JavaScript or Launch action could pass
Version 4.67.113
Security
- Redaction of text set in a font that cannot be measured now also allows for the displacements of a TJ array, character and word spacing and a negative font size when it estimates where the text is, so such text is no longer kept when part of it lies in the redacted area
Version 4.67.112
Fixed
- Fixed path segments that follow a closed subpath or a rectangle within the same path being ignored when content is analysed, redacted or rewritten
Version 4.67.111
Fixed
- Fixed redaction deleting a clipping path that merely meets the redacted area, which uncovered content beside the area that the page had clipped away. The clip is now kept and only the painting of such a path is removed
Version 4.67.110
Security
- Fixed redaction keeping the content of a Form XObject it could not clean, for example one nested more than eight levels deep, while still painting the black box over it. Such a Form is now removed from the page when its bounding box meets the region
Version 4.67.109
Security
- After a redaction the document is now always saved in full. Objects the redaction left unreferenced, such as the appearance of a removed annotation or the original mask of a redacted image, are dropped from the saved file, and an incremental save is refused because it would keep the earlier revision with the removed data
Version 4.67.108
Security
- Fixed redaction of an image leaving its soft mask or stencil mask untouched, so that the redacted shape could still be read from the transparency data. The mask is now made opaque over the redacted area, and an image whose mask cannot be edited is removed as a whole
Version 4.67.107
Security
- Fixed ApplyRedactions painting the black box of a redaction annotation whose /QuadPoints describe no area without removing the content under it; such an annotation is now applied over its /Rect
Version 4.67.106
Security
- Fixed redaction of an image with an extremely large declared width being able to write outside the image data; such an image is now removed as a whole
Version 4.67.105
Security
- Fixed redaction missing text on pages whose content is split over several streams. The graphics and text state carry over from one stream to the next, so text in a later stream was looked for in the wrong place and kept under the black box. The streams of a page are now combined before it is redacted
Version 4.67.104
Fixed
- Fixed direct access hanging while it looks up a page in a page tree whose node has no usable /Kids or whose nodes refer back to each other
Version 4.67.103
Security
- The remote signing (CSC) client now refuses a service URL or token endpoint that does not use https; plain http is accepted for a loopback address only
Version 4.67.102
Security
- Fixed structured XHTML export writing a font name into the style attribute without escaping it for CSS, which let a crafted font name add style declarations
Version 4.67.101
Fixed
- Fixed the renderer keeping a shading as the fill colour after the sh operator, so that later fills and text were painted with the gradient
Version 4.67.100
Fixed
- Fixed text wrapping with a CJK font hanging and exhausting memory when the box is narrower than a single character
Version 4.67.99
Fixed
- Fixed documents with more than 32 cross-reference sections, such as forms that were saved or signed many times, failing to load or being treated as damaged
Version 4.67.98
Fixed
- Fixed a JBIG2 image with MMR coded data being able to read past its row buffer when a row ends in pass mode
Version 4.67.97
Fixed
- Fixed a malformed inline image header being able to corrupt memory while a content stream is analysed
Version 4.67.96
Fixed
- Fixed some two-colour lossless WebP images being imported as a single flat colour when no system WebP decoder is available; such an image is now reported as unsupported instead
Version 4.67.95
Fixed
- Fixed reading the target of a file link hanging on an indirect object that refers to itself
Version 4.67.94
Fixed
- Fixed the page tree audit never finishing on a page tree node that lists itself more than once
Version 4.67.93
Fixed
- Fixed linearized output recording a wrong shared object reference in its hint tables when the first page dictionary has a higher object number than its resources
Version 4.67.92
Fixed
- Fixed free-form triangle mesh shadings that continue a triangle fan: the triangles after the first fan step were drawn in the wrong place
Version 4.67.91
Fixed
- The PDF/A-1 check no longer reports JBIG2 compressed images as a violation. JBIG2 is part of PDF 1.4 and PDF/A-1 only excludes LZW
Version 4.67.90
Fixed
- Fixed the built-in barcode reader never finding EAN-13, UPC-A and EAN-8 symbols when called with the default format selection
Version 4.67.89
Fixed
- Fixed SVG number lists written without separators, such as matrix(.5 0 0 .5-1.5.5), losing the decimal point of the following number
Version 4.67.88
Fixed
- Fixed the font size of a form field that has no default appearance yet being written in a form readers cannot parse
Version 4.67.87
Fixed
- Fixed FontSize crashing or returning a wrong size for a TrueType font: the embedded font program is now looked up correctly
Version 4.67.86
Fixed
- Fixed Math.round in form calculation scripts rounding halves to the even number: Math.round(2.5) now gives 3 as in JavaScript
Version 4.67.85
Fixed
- Fixed GetStringListItem returning the text of an earlier call instead of an empty string for an unknown list or an index outside the list
Version 4.67.84
Security
- Fixed HTML rendering trusting a font address found in the HTML text itself. A continuation prefix that names no existing font, whether carried over from another document or written into the markup, now falls back to the normal font
Version 4.67.83
Security
- Fixed the renderer treating a colour space name supplied by the document as an internal object reference, which a crafted file could use to corrupt memory. An invalid ICC profile now only falls back to a device colour space
Version 4.67.82
Security
- A document encrypted with AES-256 and only a user password could be opened by anyone with an empty password, because its owner key was derived from the empty string. The user password now stands in for a missing owner password, as it already did for RC4 and AES-128. Files written by earlier versions with a user password and no owner password should be encrypted again
Version 4.67.81
Fixed
- Fixed RemoveDocument leaving a freed document selected when it was called while a graphics state or a path was still open on that document
Version 4.67.80
Fixed
- Fixed direct access overflowing the stack when it opens a file in which a stream gives its own object, or a chain of such objects, as its length
Version 4.67.79
Fixed
- Fixed a pattern colour space that names itself as its base space overflowing the stack while a page is rendered
Version 4.67.78
Fixed
- Fixed a failed save being able to crash or corrupt memory when it stopped early, for example on a document containing an object that could not be read
Version 4.67.77
Fixed
- Fixed ReleaseImage leaving the released image selected, so that a following call on the selected image could crash or use freed data
Version 4.67.76
Security
- The optional OpenType shaping engine and barcode reader modules are no longer looked up from the working directory, and the barcode reader is no longer loaded by bare file name. The development tree is searched upwards from the executable instead; PDFLIB_OPENTYPE_ENGINE and PDFLIB_BARCODE_READER still name an explicit location
Version 4.67.75
Fixed
- Fixed a truncated CCITT Group 3 image making the decoder loop forever; a row that ends early now stops where its data ends
Version 4.67.74
Fixed
- Fixed text drawn or measured with a font that already exists in a loaded document coming out empty, wrongly encoded or with zero width: the encoding of such a simple font is read again when the font is loaded
Version 4.67.73
Fixed
- Fixed HTML losing the space between two inline elements, so that bold text followed by a space and italic text no longer runs together. White space now collapses across inline elements as it does in a browser
Version 4.67.72
Fixed
- Fixed AES-encrypted strings and streams being emptied when their final block has no padding or damaged padding. The decrypted data is now kept, as other PDF readers keep it
Version 4.67.71
Security
- The built-in certificate path validation now follows RFC 5280 for key usage and path length. It rejects a chain whose issuing certificate may not sign certificates, whose number of intermediates exceeds a path length constraint, or whose signer certificate may not sign
Version 4.67.70
Fixed
- Fixed HTML that omits optional end tags. A new paragraph, list item, definition term, table row or table cell now closes the one before it as a browser does, so styles no longer leak into the following element and tables written without closing cell tags are laid out instead of rejected
Version 4.67.69
Fixed
- Fixed HTML text that follows a styled inline element, such as bold text followed by italic text, being printed over that element
Version 4.67.68
Changed
- Saving a document no longer resets the drawing state. The selected font, text size, colours, line settings and content layer stay as they were, so text drawn after a save keeps its font instead of falling back to Helvetica
Version 4.67.67
Fixed
- Fixed 1-bit JBIG2 images being drawn dark and tinted blue when a page is rendered in Free Pascal builds
Version 4.67.66
Fixed
- Fixed colour bitmaps added as JBIG2 or CCITT images coming out blank in some Delphi applications. They are now reduced to black and white by brightness in every build
Version 4.67.65
Fixed
- The built-in JBIG2 encoder preserves the black and white polarity of bilevel images. The decoded image displays with the original foreground and background
Version 4.67.64
Fixed
- Fixed SVG graphics that use filter effects being rejected with an access violation instead of being drawn
Version 4.67.63
Fixed
- Fixed moving or removing a bookmark leaving its neighbours with broken links, which made later bookmarks vanish from the outline
Version 4.67.62
Fixed
- Fixed words in an OCR text layer being placed at the wrong height when their baseline runs vertically after orientation correction
Version 4.67.61
Fixed
- Fixed EPS files that start with a binary preview header failing to import in Free Pascal builds
Version 4.67.60
Fixed
- Fixed the E-Invoice demo silently generating the first profile when the requested profile name was not recognised
Version 4.67.59
Fixed
- Fixed the lab report showing a garbled first line when the failure log excerpt started inside a multi-byte character
Version 4.67.58
Fixed
- Fixed the DoInTheStream demo saving over a reused memory stream without emptying it, and the ExtractImage demo keeping every processed document in memory during a batch
Version 4.67.57
Fixed
- Fixed the Showcase demo writing its error log under the name of the first command-line switch instead of next to the output
Version 4.67.56
Fixed
- Fixed documents whose cross-reference stream stores its length as an indirect reference failing to open. The stream is now bounded by its end marker, and a cross-reference stream that yields no entries is rebuilt from the file body instead of being accepted as an empty table
Version 4.67.55
Fixed
- Fixed the form script number conversion rejecting an empty field: JavaScript and Acrobat read an empty string as zero, so a calculation that began from a blank field stopped there instead of continuing with zero. Other non-numeric text is still rejected as before.
Version 4.67.54
Fixed
- Fixed the repeated-text appearance of a form field turning an oversized rectangle into an unbounded content stream: the repeat count came straight from the field width and the row loop from its height, both without a limit, so a damaged rectangle could make the appearance builder emit millions of characters. Both are now capped.
Version 4.67.53
Fixed
- Fixed the AES-256 permission block claiming that metadata was encrypted regardless of the setting: byte 9 of the /Perms entry was always written as T, so a file saved with metadata encryption turned off declared the opposite and viewers showed a permission set that contradicted the permission bits. The byte now follows the setting, as the other save path already did.
Version 4.67.52
Fixed
- Fixed the legacy stream scanner consuming only one byte of whitespace between the stream data and the endstream marker: the loop compared its position against the value it started from, so the first step ended it, and a stream whose length stopped short of the marker by several separators kept the remaining whitespace attached to its data. The scanner now consumes the whole run and stops at the end of the buffer.
Version 4.67.51
Fixed
- Fixed the Data Matrix decoder emitting a separator character for the leading FNC1: that first FNC1 only marks the symbol as GS1 and carries no data, so the decoded text began with a group separator that the encoded data never contained. A later FNC1 still produces the separator.
Version 4.67.50
Fixed
- Fixed the HTML text export writing raw control characters into the document: a text run carrying C0 controls produced a file that browsers and validators reject, while the XML path already dropped them. Controls other than tab, line feed and carriage return are now discarded.
Version 4.67.49
Fixed
- Fixed the sample applications reporting a successful run when their output was never written: the save result was discarded, so a scenario printed OK and exited with zero with no PDF on disk, the font registration check in one sample could never fire, and the console sample kept exit code 0 after a failed save.
Version 4.67.48
Fixed
- Fixed SetScale accepting a zero, negative or non-finite factor: the scale is stored inverted and every later coordinate conversion divides by it, so the call raised a divide error or left an infinite scale behind while still reporting success. The invalid value is now rejected and the call reports failure.
Version 4.67.47
Fixed
- Fixed a sorted string list ignoring the dupError duplicate policy: only dupIgnore was handled, so the duplicate was inserted as well and Find and Objects[] could then resolve to either copy. The list now raises EListError, which is what the property promises.
Version 4.67.46
Fixed
- Fixed the DER length check in certificate parsing accepting a truncated value: the remaining-bytes test added ContentLength, which a multi-byte length can push to High(Integer), so the sum wrapped negative and the check passed while Offset ran past the buffer. The test now compares the length against the bytes actually left.
Version 4.67.45
Fixed
- Fixed feTurbulence rejecting a whole filter chain when the generator produced a zero-length gradient: both components came from the same draw, so this was a chance outcome rather than an invalid seed, and the filter was abandoned for roughly four draws in a million. The gradient is now redrawn, with a fixed fallback direction after four attempts.
Version 4.67.44
Fixed
- Fixed a cross-document object copy failing when the source graph nested deeper than 64 levels: the clone returned nil at the limit, the caller stored it and the new object called Own on it, which raised an access violation part-way through the merge. The depth limit now yields a null object, the same value a back reference produces, and NewObj stores null for a nil argument instead of dereferencing it.
Version 4.67.43
Fixed
- Fixed the form field font size reader mis-parsing a default appearance whose font resource name contains the Tf pair, such as /Tf0 12 Tf: the search stopped at the first match inside the name, so the size read back as zero. The reader now walks the operands and takes the number that precedes the Tf operator.
Version 4.67.42
Fixed
- Fixed GetPageCount pre-allocating four page arrays straight from the /Count entry of the page tree: a damaged or hostile file could put an arbitrary number there and make the loader reserve gigabytes of zeroed memory before the first page was read. The value used for the allocation is now capped at one million pages, far beyond any real document.
Version 4.67.41
Fixed
- Fixed GetWideTok truncating its token index to a byte: an XFA field holding 256 or more pipe-separated values wrapped the index, so the later nodes were written empty or repeated an earlier value instead of carrying their own entry. The parameter is now an Integer.
Version 4.67.40
Fixed
- Fixed the string list Capacity setter computing the allocation size as an Integer product: a capacity near 2^28 wrapped the byte count, so ReallocMem received a small block while FCapacity kept the large value and the next store wrote past it. A capacity that cannot be addressed now raises out-of-memory, and a capacity below the entry count is clamped instead of dropping live entries.
Version 4.67.39
Fixed
- Fixed DOCX export writing document links without any scheme check: a link target using javascript, vbscript, data or file became an external hyperlink relation that a word processor executes or follows into the local file system. The export now applies the same filter as the HTML and SVG exporters, extended to file links.
Version 4.67.38
Fixed
- Fixed an incremental save of a file that had only loaded through the raw-rebuild repair path writing /Prev -1: such a file has no xref offset to anchor the update on, and readers cannot follow the resulting section, so every object the update did not rewrite became invisible in the saved file. The update is now refused instead of producing a broken file.
Version 4.67.37
Fixed
- Fixed the default appearance string of an edited form field missing the separator before Tf: when the field already had a DA the size was appended without a space, producing an operand such as 12Tf that no viewer parses, so the field text lost its size and font.
Version 4.67.36
Fixed
- Fixed feMorphology dropping the whole filter when one axis floored to a zero pixel radius: the guard treated a zero radius on either axis as a no-op, but only a zero radius on both axes means the filter does nothing, so radius="0.4 5" eroded or dilated nothing at all.
Version 4.67.35
Fixed
- Fixed PDF417 encoding running past the end of the codeword array near capacity: the maximum error correction level was picked by comparing the remaining codewords against a power of two that no longer matched the 2 shl n cost of a level, so two free codewords selected level 1, which needs four. The error correction then wrote past codewords[927] and overwrote the length and level fields in the same record. The encoder now requires the real cost of a level and reports a text-too-big error when the rectangle cannot hold the data plus the minimum error correction.
Version 4.67.34
Fixed
- Fixed the /O value computed for the standard security handler: each of the fifty rounds hashed the full sixteen-byte digest instead of its first n bytes, where n is the file key length. The /U loop already truncated, so for 40-bit and other keys shorter than 128 bits the written /O value was not accepted by standard readers, and reading such a file could not recover the user password from the owner password. Keys of 128 bits are unaffected.
Version 4.67.33
Fixed
- Fixed a damaged Group 3 two-dimensional CCITT scan aborting the whole render: the Group 4 and one-dimensional branches fall back to the GDI+ decoder when their own decoder rejects the data, and the K greater than zero branch now does the same instead of letting EInvalidOperation escape from the image decoder.
Version 4.67.32
Fixed
- Fixed an indexed PNG that carries no PLTE chunk being imported as /Indexed /DeviceRGB with a hival of -1 and an empty lookup table: the colour type and bit depth check now also requires a palette, so such a file is rejected instead of producing a colour space that readers refuse to open.
Version 4.67.31
Fixed
- Fixed a nil dereference when an indirect object body could not be decoded: a truncated body, an over-deep container or a malformed token left the object nil and the entry dereferenced it, so a file that could be read as a null object failed to load entirely.
Version 4.67.30
Fixed
- Fixed CMYK text runs being exported as black by the HTML, SVG, DOCX and XLSX exporters: the extracted text colour carried eight bare CMYK hex digits that the exporters' CSS colour check rejects, so every CMYK fill fell back to #000000. The colour now carries the equivalent #RRGGBB value, while the four CMYK components stay available through the colour array.
Version 4.67.29
Fixed
- Fixed SetKernAmount and GetKernAmount for code points above U+00FF: the pair lookup truncated both characters to one byte while the setter stored the full 16-bit pair, so those kerns were never found and every call appended a duplicate entry to the table.
Version 4.67.28
Fixed
- Fixed the page width and height staying cached after a page box was changed: SetPageBoxProperties and RemovePageBox now invalidate the MediaBox-derived size, so a second ScalePage call measures against the already scaled page instead of the original size and no longer pushes the content one scale step ahead of the page box.
Version 4.67.27
Fixed
- Fixed HTML rendering keeping the font, colour, indent and block border of an element when a closing tag did not match the top of the style stack: the renderer now walks down to the matching element, unwinds the children the document left open and ignores an end tag that has no matching open element, instead of dropping the close and leaking that state into the rest of the document.
Version 4.67.26
Fixed
- Fixed CapturePage emptying the source page when a capture could not be completed: the page dictionary and page box are now validated before the content is extracted, the content is restored when no XObject stream can be built, and the source page is hidden only after a successful capture.
Version 4.67.25
Fixed
- Fixed document time-stamp verification for SHA3 and SM3 tokens: the pure-Pascal digest helper received one and the same variable as input data and output digest, so it hashed the empty string, which rejected every valid token while letting a token signed over empty data match any document.
- Fixed an out-of-bounds read in the Type 1 clear-text dictionary parser when a FontDirectory word is not followed by a dict token.
- Added range validation to AddStandardFont, whose font ID was used unchecked to index the Standard 14 name table.
Version 4.67.24
Fixed
- Fixed deterministic disposal of PDFlibrary instances, PictureBox GDI+ bitmaps, and file/folder dialogs in C# WinForms sample applications, and isolated per-click document state in the C# HelloWorld demo.
Version 4.67.23
Fixed
- Fixed infinite loop and adjacent-match skipping in SearchAndReplace when replacement strings contain the search pattern or are empty, and freed the temporary font list in GetInstalledFontsByCharset.
- Added nil-array and indirect-reference guards in annotation and form-field action helpers, NaN/Infinity float-to-integer guards in form JavaScript evaluation, and THandleStream flushing for edit journals.
- Cleared stack-resident ephemeral scalars, nonces, and expanded round keys after SM2, SM4, and Brainpool cryptographic operations.
Version 4.67.22
Fixed
- Fixed indirect reference resolution for on-demand loaded objects in PDF/X, PDF/E, PDF/R, and PDF/UA compliance validators.
- Fixed structure-tree ActualText propagation before .notdef glyph counting in PDF/UA validation and enforced work-budget ceiling in PDF/A colour usage ledger.
- Added nil TrailerDict guards in Arlington validation, closing-tag match checks in CxF spectral parsing, and single-TaxTotal fallback in UBL invoice validation.
Version 4.67.21
Fixed
- Fixed GDI+ stream adapter reference-counting lifetime and zero-DPI / zero-dimension division guards during image alignment and stream conversion.
- Added exception and output-length guards around PDF Type 4 PostScript calculator functions in shading patterns, mesh shadings, and Separation/DeviceN colour spaces.
- Fixed DOCX export page bookmark placement when a page contains no paragraph elements before the next page marker.
Version 4.67.20
Fixed
- Fixed native OCR character box vertical bounds calculation so vertical strokes across all glyph columns are included instead of only the rightmost column.
- Fixed JPEG 2000 high-bit-depth sample scaling integer overflow and added bounds validation for component buffers and dimensions.
- Fixed soft-mask matte pre-multiplication ordering before PNG export, zero-component DeviceN/Separation image decode guards, and TIFF/JPEG header bounds checks.
Version 4.67.19
Fixed
- OpenType CFF and shaping companion fonts now defer subset finalization until document save time instead of re-running on each AddToSubset call.
- ToUnicode CMap bfrange evaluation in TPDFFontCollection now increments only the final UTF-16 code unit of multi-unit destination strings per ISO 32000-1 9.10.3, preserving supplementary-plane surrogate pairs and ligatures.
- Added bounds checks for font Widths and CID /W arrays, shaping glyph IDs, packaged font stream lengths, and 32-bit CMap codespace tokens, and fixed DifferencesArray / ToUnicodeMap / CIDWidths cleanup on early exits.
Version 4.67.18
Fixed
- C# and VC++ DLL wrapper headers now support Unicode DLL paths via LoadLibraryW, implement IDisposable on the C# PDFlibrary wrapper, and clear the shutdown instance list upon library release.
- The C# ActiveX ImageToPDF merge workflow now converts image pixel dimensions to PDF points using the horizontal and vertical image DPI, matching single-image conversion.
- Removed unreferenced legacy PDFAX.cs wrapper files from the C# ActiveX sample projects.
Version 4.67.17
Fixed
- Removed SafeForScripting and SafeForInitializing category registrations from the ActiveX server and guarded ProgID registration on DllRegisterServer success.
- Sign-extended 32-bit GDI device context handles (LongToHandle) in 64-bit ActiveX rendering methods.
- Protected DLL and Dylib buffer table operations under the instance registry lock and deferred slot count advancement until instance construction succeeds.
Version 4.67.16
Fixed
- Fixed empty annotation array bounds, 64-bit generation-number shift overflow, and temporary child field leaks in GetFormFieldTabOrderEx and GetFormFieldTitle.
- Decoded UTF-8 and raw Latin-1 bytes without system ANSI codepage corruption in GetObjectByPath.
- Clamped cross-reference trailer read lengths in 64-bit arithmetic before integer conversion so files larger than 2 GiB do not overflow.
- Guaranteed file stream and AST node cleanup on exception paths in SaveImageListItemNativeDataToFile, SaveImageListItemDataToFile, AddStampAnnotationFromImage, and TFormulaParser.ParseRow.
Version 4.67.15
Fixed
- Removed high-bit clamping bias from Brainpool ECDSA nonce generation so full-width random scalars are rejection-sampled uniformly across the curve order.
- Required the final authenticated revision in PDF MAC revision-chain validation to reach the end of the file, rejecting unauthenticated trailing incremental updates.
- Preserved incomplete cross-reference chain flags during revision map construction, disabled DTD and external entity resolution on fallback MSXML XMP parsers, and blocked cleartext Basic authentication over non-TLS HTTP requests.
- Ensured AES stream encryption wipes key and IV buffers on stream write exceptions and bounded signature placeholder scans on malformed signature dictionaries.
Version 4.67.14
Fixed
- Fixed LZW-compressed RGB TIFF decoding reading past the strip buffer when SamplesPerPixel is 4 or greater
- Fixed uncompressed planar RGB TIFFs (PlanarConfiguration = 2) duplicating the red channel into all three color channels instead of assembling the R, G, and B planes
- Fixed 32-bit multiplication overflow and header under-read in EMF EMR_GRADIENTFILL and EMR_FILLRGN record bounds checks
Version 4.67.13
Fixed
- Fixed JBIG2 striped pages with unknown height (0xFFFFFFFF) clamping the page height to zero and failing to expand as stripes are decoded
- Fixed JBIG2 symbol dictionary, text region, and halftone region bit-width calculations entering an infinite loop when symbol counts overflow 32-bit shifts
- Enforced pixel budget and dimension bounds across JBIG2 bitmap allocation, stripe expansion, pattern dictionaries, and region segments
Version 4.67.12
Fixed
- Fixed page-info array range errors when a malformed page tree declares a root /Count smaller than the actual number of leaf pages
- Fixed unbounded recursion and infinite loops on cyclic /Parent, /Kids, /Next, and /ParentTree chains across page trees, outlines, actions, and form fields
- Fixed DeletePages and name-tree cleanup traversing shared DAG subtrees repeatedly, and fixed GetPage shifting subsequent page numbers when encountering dangling page references
Version 4.67.11
Fixed
- Fixed DecryptFile failing with error 404 on AES-256 documents encrypted with legacy non-SASLprep non-ASCII passwords instead of retrying the raw UTF-8 password
- Fixed direct AES-256 file encryption and decryption misinterpreting /Length1 through /Length3 font stream entries or prefix-matching dictionary keys when resolving stream lengths and cross-reference arrays
- Fixed hybrid-reference (/XRefStm) parsing in direct AES-256 file rewrite replaying older /Prev revisions over current traditional cross-reference entries, and guarded 32-bit cross-reference stream offset bounds
- Fixed unhandled file stream exceptions and leftover partial output files when direct or fallback file encryption and decryption encounter I/O errors
Version 4.67.10
Fixed
- Fixed object stream packing so skipped members can no longer desynchronize container headers, member counts and offsets
- Fixed cross-reference stream object number detection for streams with a nonzero generation number
- Hybrid-reference documents whose cross-reference side stream cannot be read are now handled per the PDF specification instead of keeping stale hybrid markers
- Fixed object header numbers being dropped when they end exactly at a buffer boundary
Version 4.67.9
Fixed
- Fixed Image Lab demo scenarios never locating their bundled image assets because of a missing path separator
- Fixed image demos drawing images beyond the page width when millimeter units are active
- Fixed the image-to-PDF demo file dialog hiding .tif files, using an out-of-range filter index and leaking a document when merging failed
- Fixed demo copy-paste leftovers: the VB.NET sample drew C# text, the C# Hello World sample saved under the wrong file name, and the ActiveX image demo ignored image DPI when sizing pages
- Unchecked library call results in the C# table, VB.NET multi-demo, C++ Hello World and other samples now report failures instead of continuing silently
Version 4.67.8
Fixed
- Fixed PNG images with a short palette transparency table reading out of bounds; palette indices beyond the table are now treated as fully opaque
- Fixed Code128 barcodes silently dropping non-ASCII bytes; unsupported input now fails instead of producing a symbol with missing characters
- Fixed UPC-E barcodes mishandling full 8-digit input and number system 1; such input is now validated or rejected instead of producing a wrong symbol
- Unified zlib stream decompression behavior across Delphi and Free Pascal builds for truncated or checksum-broken streams
- Fixed a potential infinite loop in the Free Pascal zlib compressor when deflate reports an error
- Fixed AES-CBC platform differences for empty plaintext and rolled back partial output when stream encryption fails
Version 4.67.7
Fixed
- Fixed a crash when removing an object from an empty internal structure
- Fixed a save silently emitting an incomplete document when a dictionary entry failed to serialize; the save now reports failure
- Fixed a failed save leaving the document trailer and declared table size describing a revision that was never written
- Fixed the current page being silently changed after a failed save
- SaveToString now reports an error instead of silently truncating documents larger than 2 GiB
Version 4.67.6
Fixed
- Correct optional-content configuration updates and viewing usage states, including groups with identical names
- Suppress empty nested SVG viewports and resolve percentage circle radii against the normalized viewport diagonal
- Preserve implicit default color spaces during unused-resource cleanup
- Reject overflowing text replacement ranges without changing document content
Version 4.67.5
Fixed
- Adding tags to existing tagged documents preserves their structure, parent mappings, and unique content identifiers across repeated saves
- Structure ID trees preserve case-distinct identifiers and order entries by their encoded PDF string bytes
- Bilinear resizing avoids coordinate overflow for long narrow images, and widening packed images keeps padding out of newly exposed pixels
- XMP keyword synchronization handles semicolons without looping, metadata date repair preserves valid PDF and XMP representations, and date getters retain partial dates and UTC indicators
- Unicode validation and conversion retain valid replacement characters while preserving malformed-input handling
- Reading XMP metadata accepts XML without the optional packet wrapper and detects its Unicode encoding
Version 4.67.4
Fixed
- FDF form-data interchange preserves Unicode names and values, distinguishes omitted values from explicit empty values, and exports empty values explicitly
- Deleting a parent form field removes its descendants and widgets across pages without leaving stale field references
- Native rendering preserves nonlinear exponential gradients and correctly rounds and clips Indexed color operands
- Relative file links resolve from the correct directory, and internal page links use the destination page height
- Edit journals reject source-document path collisions and safely reject recovery cursors that reference missing states
Version 4.67.3
Fixed
- Removing an attachment preserves payloads still shared by other attachment names or annotations
- Changing a bookmark to a named destination removes the previous action
- Portfolio numeric columns store validated numbers without depending on regional number settings
- Content processing distinguishes malformed or over-budget stream decoding from valid empty content
- Content parsing rejects hexadecimal strings without a closing delimiter
- SHA-3, SHAKE256, and SM3 hashing accepts streams that return valid partial reads
- AES-256 password authentication verifies the encrypted metadata flag and reserved permission bytes
- File transformation preserves encrypted content when renumbering objects or expanding packed objects, and declares a compatible PDF version for cross-reference streams
Version 4.67.2
Added
- Added DLL and dylib exports for the measurement-unit getters and the opt-in 2D barcode payload encoding mode
Version 4.67.1
Fixed
- XFA field values preserve adjacent text and CDATA fragments when reading, replacing, and clearing data
- Editing UTF-16 XFA packets keeps the XML encoding declaration consistent with serialized UTF-8 bytes
- Downsampling 16-bit PNG images preserves exact color-key transparency
- Opaque GIF frames retain the logical-screen background outside the image rectangle
- FastReport and ReportBuilder exports honor transparent shape fills and disabled outlines, and preserve line colors and visibility
Version 4.67.0
Fixed
- Deleting pages and combining layers preserve content and resources still shared by retained pages
- Placeholder replacements complete when replacement text contains the original placeholder
- Composite font rendering rejects circular components and bounds shared processing work
- Native JPEG decoding preserves image state after failure and handles CMYK conversion consistently
- Document loading safely inspects linearization metadata and avoids retaining duplicate parsed objects
- Electronic invoice generation preserves operand precision, separates distinct tax rates, and rejects invalid numeric input
- Block encryption rejects contexts whose key initialization failed
- Examples report complete and partial merges accurately, protect source documents from overwrite, and prepare assets without recursive copying
Version 4.66.0
Added
- Expanded document workflows with transactional JSON editing, precise diagnostics, budgeted virtual resources, page planning, and controlled stream copying
- Improved Markdown, Word, and spreadsheet exports with richer inline syntax, navigation, language metadata, cell styling, links, and optional table filtering and repeated print headers
- Extended mathematical typesetting with dimensioned spacing, raised and overlapping boxes, aligned arrays, advanced scripts, flexible fractions, and scalable notation
- Expanded static HTML styling with functional and state selectors, calculated lengths, relative units, logical box edges, font shorthands, semantic marks, hidden content, and inherited text transforms
Version 4.65.10
Fixed
- Free Pascal builds can check the canvas handle state during cleanup without creating a device context. Disposing a canvas that never acquired one remains lightweight
Version 4.65.9
Fixed
- Fixed PDF/A colour auditing (ScanPages) so page-level OutputIntents in PDF/A-1, PDF/A-2, and PDF/A-3 documents update the active DestOutputProfile before page-level Resources (DefaultRGB, DefaultCMYK, DefaultGray, DeviceN) and page transparency groups (/Group /CS) are validated
- Fixed PDF/UA TrueType cmap directory inspection (ParseTTFCmapEntries) to validate each subtable offset against the cmap header and table length, and removed dead initializations in AGL glyph-name lookup (IsAGLGlyphName)
- Fixed Small Business professional barcode rendering (DrawProfessionalBarcode) to handle Kind = 4 circular/ring vector primitives and log dimension/scale diagnostics instead of exiting silently, and fixed PDF/VCR data merge (PLExecuteVCRDataMerge) to insert a line-feed delimiter when concatenating multi-stream /Contents arrays and preserve shared indirect stream objects during write-back
- Fixed Enterprise validation pipeline task execution (PLRunValidationContextTask) to record a fallback diagnostic when PDF/A, PDF/X, PDF/VT, PDF/R, PDF/VCR, or PDF/E checks fail with an empty issue list, and guarded SaveValidationReport against unhandled file-stream I/O exceptions
Version 4.65.8
Fixed
- Fixed Factur-X CII and UBL 2.1 invoice XML generation to validate numeric issue date characters and normalize line-item VAT categories and rates consistently with header VAT group aggregation
- Fixed invoice XML DOM parsing to free partially constructed element nodes on early failure exits, rejected bare 'P' or '-P' XSD durations, and replaced WideChar byte-set checks in numeric entity decoding
Version 4.65.7
Fixed
- Fixed Windows CNG key property string sizing and persisted-key cleanup when ProviderHandle is 0
- Fixed native OpenSSL AES-GCM stream rollback exception safety, digest range stream cursor restoration, and CMS SignerCount clamping when SignerInfos is absent
- Fixed native HTTP status-line detection against HTTP/-prefixed header or trailer fields, libxml2 DOM attribute node map element-type and child-wrapper lifetime guards, and embedded NUL host validation in socket connections
Version 4.65.6
Security
- Fixed ML-DSA (FIPS 204) signing mask expansion counter bounds check to verify Kappa + L - 1 <= MAX_KAPPA before 16-bit SHAKE256 nonce encoding
- Fixed Ed25519 and Ed448 key derivation and signing to zeroize expanded secret scalars, secret prefixes, and per-signature nonce scalars in stack and heap buffers
- Fixed PKCS#12 / PFX public-key security import to never fall back to persisting temporary private keys in Windows key containers without PKCS12_NO_PERSIST_KEY, and zeroized unwrapped PKCS#8 keys and decrypted envelope seeds after use
Version 4.65.5
Fixed
- Fixed PDF 2.0 UTF-8 BOM text string decoding to use PLUnicodeConvert8To16 instead of a static UTF8String cast on an ANSI string, and mapped unmapped or >0xFFFF code points in CP932/CP936/CP949/CP950 encodings to U+FFFD
- Fixed TrueType outline vector extraction to use overflow-safe unsigned bounds arithmetic and validate TT_POLYGON_TYPE on every contour header
- Fixed external glyph selection to clear stale FSequenceIssue diagnostics on entry, native OpenType shaping to fall back when Count = 0 for non-empty text, and tile rendering output name deduplication to preserve full Unicode paths under FreePascal
Version 4.65.4
Fixed
- Fixed OpenType COLR v1 PaintVarScale (Format 17) JSON serialization to read varIndexBase at byte offset +8 instead of +6
- Fixed COLR v1 color glyph extraction to fall back to COLR v0 layer records when baseGlyphListOffset is 0 instead of reading the SFNT file header at offset 0
- Fixed color font cmap subtable offset bounds checking, Format 12 StartGlyph addition overflow protection, and CBLC/CBDT sparse index subtable continuation
Version 4.65.3
Fixed
- Fixed bitmap dithering to clamp negative engine widths, validate input/output bitmap bounds before scanline access, and use pointer arithmetic for Floyd-Steinberg error buffers
- Fixed inline image externalization to validate /Filter, /DecodeParms, and /Decode object types and purge null or malformed decoded tokens
- Fixed Intelligent Mail (OneCode) barcode division to parse the zero-stripped final quotient string and explicit AnsiString concatenation in CSS 3-digit hex color expansion
Version 4.65.2
Fixed
- Fixed dataset table export pagination to bound the second dataset pass by TotalRows, stop when the first page only fits the header row or when a repeated continuation header does not fit, and synchronize TotalRows with actual populated rows
- Fixed edit journal recovery to enforce cursor MaxUndoSteps and state count bounds and advance FNextStateID across all committed state records without Int64 overflow
- Fixed document JSON export to guard TJSONAccumulator disposal with Try..Finally and reject empty JSON payloads before creating output files
Version 4.65.1
Fixed
- Fixed semantic resource deduplication to exclude /OBJR, /MCR, and dictionaries bound via /StructParent or /StructParents, reject NaN/Infinite numeric values during hashing and comparison, and avoid permanently caching depth-limited indirect objects as failed
- Fixed structured context traversal to use case-sensitive RoleMap cycle tracking, report unresolved /ClassMap class names, and reserve closing ssEndElement event slots for active ancestor elements
Version 4.65.0
Added
- Page selection. Ranges support steps in either direction, exclusions, open ends, and end-relative selectors such as
r1for the last page. Strict parsing identifies the offending token and rejects budget overflow without a partial result. Compact formatting preserves selection order and duplicate pages - Virtual files. Enumerate stable name and byte-size snapshots without copying payloads. Rename in memory without changing content or count, with collision checks
- Markdown layout. Support backslash hard breaks, explicit ordered-list starting numbers, tab-indented code, variable-length backtick spans, and literal pipes inside code in tables. Links retain balanced destination parentheses and nested labels, email autolinks are escaped, and reference labels normalize repeated whitespace
- XLSX and HTML export. Spreadsheet export preserves long numeric identifiers as text, wraps multiline cells, and freezes contiguous semantic headers. HTML print output preserves PDF page breaks and drops screen decoration. HTML pages retain bold and italic appearance and expose named, focusable page regions
- Unicode text flow. Recognize NEL, line and paragraph separators, zero-width breaks, and breakable Unicode spaces while preserving offsets. Keep supported emoji grapheme sequences and nonbreaking space or word-joiner groups intact
- Formula layout. Support boxes, phantoms with selectable metrics, over- and under-annotations, modulo spacing, centered substacks, cancellation strokes, and literal text groups. Fractions accept custom delimiters and rule widths, and explicit delimiter sizes increase in measured steps
- Tour execution. Combine inclusion and exclusion filters in stable order, stop on failure or timeout, resume only compatible successful results with retained output markers, and preview the execution plan without creating directories or starting processes. Named new runs isolate their outputs
- Tour reports and previews. Provide JSON scene catalogs and result manifests, consistent durations across HTML, CSV, and JSON, and artifact counts and byte totals. Support explicit output paths, bounded escaped failure logs, and independent preview page and DPI selection from 36 to 300
Version 4.64.324
Fixed
- Fixed signature /Contents hex span scanning to require a delimiter after /Contents and reject nested << dictionary brackets
- Fixed RFC 3161 signature timestamp token validation on Windows to enforce the id-ct-TSTInfo eContentType OID and verify that the TSTInfo MessageImprint hash algorithm OID matches the configured digest algorithm
- Fixed PAdES Document Security Store (DSS) process execution to update ProcessResult on early reader, password, and missing-catalog exits
Version 4.64.323
Fixed
- Fixed text extraction so character spacing (Tc), word spacing (Tw), and leading (TL) persist as unscaled text-state parameters across Tm matrix changes, and hardened inline image ID..EI delimiter scanning (ISO 32000-1 §8.9.7, §9.3.1)
- Fixed native OCR JSON control-character escaping (RFC 8259 §7) and restricted horizontal rule removal to contiguous black pixel runs so glyphs sharing a scanline with a long rule retain their extrema
- Fixed 1D barcode recognition to honour the caller's format bitmask when distinguishing EAN-13, UPC-A, and EAN-8 symbols
Version 4.64.322
Fixed
- Fixed PDF/E-1 annotation colour validation to inspect /C and /IC component arrays without misinterpreting numeric RGB components as a colour space definition array (ISO 24517-1)
- Fixed PDF/VCR marked-content property list scanning to skip non-/MCID value tokens so /MCID name values or nested array elements are not misread as top-level /MCID keys
- Fixed PDF/UA language tag and RoleMap validation to ignore null /Lang entries, flag non-string inline BDC /Lang values, dereference indirect RoleMap targets, and honour structure ActualText on Form XObjects (ISO 14289-1)
- Fixed PDF/A compliance checking when called with a nil ResultList and extended Arlington fn:PageProperty(Page,Contents::MCID) evaluation to check named /Resources /Properties BDC dictionaries
Version 4.64.321
Fixed
- Fixed Windows printer DEVMODE serialization and local printer DC management to initialize unallocated VCL printer handles, accept driver-reported dmSize values, and avoid allocating throwaway GDI canvas handles during teardown
- Fixed PostScript, PCL, and PWG Raster print stream encoders to accept any TStream subclass for BMP and EPS inputs rather than requiring TMemoryStream
Version 4.64.320
Fixed
- Fixed HTTP range probing on zero-byte resources and preserved the HEAD status code when secondary range probes do not return 200 or 206
- Fixed byte-range stream coalesced fetch exception handling so waiting threads are always woken on buffer allocation failures, and validated linearized PDF /L file length and cross-boundary hint stream spans (ISO 32000-1 §F.2.2)
- Fixed LDAP URL parsing and BER response reading to reject excess query delimiters, percent-encoded critical extensions, malformed BER length headers, and 32-bit timeout overflows
- Fixed CDO SMTP attachment header formatting to sanitize custom AttachmentDisplayName values against control characters and header-breaking delimiters
Version 4.64.319
Fixed
- Fixed Cloud Signature Consortium (CSC) prefetched SAD quota enforcement and multi-signature SAD consumption across sequential signing operations
- Fixed native delta CRL permanent revocation checks to restore the OpenSSL store context error code across early exits and exceptions
Version 4.64.318
Fixed
- Fixed streaming AES-256-GCM encryption to roll back the target stream position and size if an intermediate chunk encryption fails
- Fixed MD5Stream on zero-length streams and short stream reads across both CryptoAPI and Free Pascal backends
- Fixed SASLprep password preparation (RFC 3454 / RFC 4013) to reject isolated UTF-16 surrogates before Table B.1 character removal so separated surrogates cannot recombine into supplementary code points
- Fixed Brainpool modular arithmetic to scan all 68 product limbs and retain top-limb carry bits during shift-subtract and modular addition
Version 4.64.317
Fixed
- Fixed asynchronous render jobs so cancellation control is registered before document loading, partially written output files are removed when file-targeted rendering is cancelled mid-run, and WaitFor snapshots the worker thread or task handle under the job lock
- Fixed SVG native rasterization fallback on encrypted documents when page content streams or nested Form XObjects are referenced through chained indirect object references
Version 4.64.316
Fixed
- Fixed JBIG2 native MMR fallback pixel polarity and symbol dictionary page association, JPEG 2000 1-channel/4-channel SYCC channel mapping and precision bounds, ImageList indirect/pipeline filter classification, ImageTransform sub-byte row padding masks, JPEG clipboard/decompressor initialization, LZW predictor parameters, and GDI+ partial-load handle cleanup
Version 4.64.315
Fixed
- Fixed TIFF PackBits FillOrder=2 packet/EOD preservation, 16-bit little-endian sample swapping guard on compressed strips, and locale-independent inline LZW coordinates, pure-Exif JPEG DPI extraction, and non-destructive bitmap scanline reading and palette counting in NewBMP
Version 4.64.314
Fixed
- Fixed UTF-8/UTF-16 maximal-subpart resynchronization on ill-formed sequences, empty-box Unicode reflow completion status, Uniscribe fallback buffer growth on USP_E_SCRIPT_NOT_IN_FONT, formula delimiter preservation on missing operands, and TextPath CIDToGIDMap GID-0 mapping and stroked-outline user-space scaling
Version 4.64.313
Fixed
- Fixed CMap parser unterminated hex-token loop, nested hex strings inside dictionaries, and bfrange overflow, UnicodeFontMap same-width codespace overlap checks during usecmap inheritance, and TrueType Format 12 cmap group monotonicity after skipped invalid groups
Version 4.64.312
Fixed
- Fixed TrueType GID-to-CID reverse mapping initialization and high-GID retention, ToUnicode and UniJIS/MacRoman encoding CMap loading, shaping font subset fallback and CIDFontType0 dictionary compliance, TrueType collection face selection in GSUB, vertical metrics, CFF subsetting, and FontFile2 embedding, and Type 3 blank-glyph bounding boxes
Version 4.64.311
Fixed
- Fixed content-stream text splitter preserving inline marked-content property-dictionary strings and matching color operator arity, and peephole optimizer collapsing nested empty save/restore pairs and empty blocks exposed by path and state elimination
Version 4.64.310
Fixed
- Fixed buffer ReadByteArray overflow and file-source null-stream guards, QDF stream-object detection and idempotent repair line endings, resource deduplication EmbeddedFile/Metadata classification and canonical image payload reporting, and data-availability page-tree cycle detection
Version 4.64.309
Fixed
- Fixed page-tree unshared resource cleanup for embedded font streams and Pattern resources, layer deletion index adjustment and painter synchronization, page move/hide/delete bounds and parent resolution, color-space array type guards, and FreeText annotation /Subj string type and dash parsing
Version 4.64.308
Fixed
- Reading an XMP metadata packet that omits the optional x:xmpmeta wrapper no longer discards its properties or writes edits into a detached RDF node, so documents from producers that use rdf:RDF as the outermost element keep their metadata
Version 4.64.307
Fixed
- Fixed structural reachability audit false-positive orphan warnings on deep indirect chains and color-space resource dereferencing, PDF/A syntax and graphics/transparency audit edge cases, and DPart UTF-8 node names, CxF WavelengthRange attribute parsing, and FileSpec /UF and platform key fallbacks
Version 4.64.306
Fixed
- Fixed PDF object JSON deserialization double-free on invalid numeric tokens and null non-finite number fallback, Number Tree root-flattening child value destruction and ascending key ordering, and incremental revision audit LTV indirect reference resolution
Version 4.64.305
Fixed
- Fixed XRef stream dictionary /Index token boundary detection and 32-bit XRef subsection range overflow checks, and fixed PDF linearization page-dependency closure traversal, /P opening-page validation, and uncompressed hint buffer sizing
Version 4.64.304
Fixed
- Fixed table-of-contents title truncation UTF-16 surrogate pair splitting, shape watermark per-page graphics state isolation and rotated ellipse Bezier path rendering, and content-stream recoloring resource name collision on /G, /RGB, and /CMYK
Version 4.64.303
Fixed
- Fixed semantic auto-tagging page-box indirect numeric resolution and tagged form flattening ParentTree Nums ascending key insertion, required /P parent reference emission, and multi-child /Pg preservation
Version 4.64.302
Fixed
- Fixed structured text intra-word span concatenation, sub-span horizontal bounds partitioning, empty ActualText suppression in XHTML/Markdown exports, and non-ASCII font-name escaping in RTF font tables
Version 4.64.301
Fixed
- Removed out-of-bounds duplicate artwork from the built-in NotApproved stamp appearance stream and fixed TPDFlibViewer.LinkActionAtPagePoint vertical hit-testing and z-order
Version 4.64.300
Fixed
- Fixed OpenType GSUB contextual SequenceIndex addressing and GSUB/GPOS null-offset guards, and expanded Type 3 CharProc glyph rasterizer operator support (d0, d1, re, v, y, q/Q, and stroke/fill variants)
Version 4.64.299
Fixed
- Fixed Type 4 free-form Gouraud mesh edge-flag state transitions, exempted Type 5 lattice meshes from BitsPerFlag validation, enforced boolean operand typing in Type 4 calculator eq/ne/if/ifelse operators, and guarded axial/radial shading function evaluation
Version 4.64.298
Fixed
- Fixed inline image PNG predictor row-tag budget checks, indirect-reference header parsing, prefix DecodeParms slicing before terminal filters, and ASCII85/ASCIIHex bounds validation
Version 4.64.297
Fixed
- Fixed LZW TIFF Predictor 2 encoding on trailing partial scanlines and enforced Z_STREAM_END verification in the cross-platform InflateStrFromPosition path
Version 4.64.296
Fixed
- Fixed CCITT Group 3/4 fax decoding in non-strict mode to bound make-up codeword loops and clamp scanline run lengths and change-element indices to the scanline width
Version 4.64.295
Fixed
- Fixed EU TSL XSD dateTime and certificate notBefore parsing to require decimal-only fields and a well-formed timezone indicator, enforced exact outer DER bounds in PLParseTimeStampResponse, and validated the leaf X.509 certificate in PLBuildCertificateChain
Version 4.64.294
Fixed
- Fixed TPDFlibPKCS11Client.SignDigest and PLBuildModernDetachedCMS to dispatch EdDSA external signatures (Ed25519/Ed448) via SignEdDSA, and included dedicated id-RSASSA-PSS certificates (PL_MODERN_KEY_RSA_PSS) in the detached CMS signing branch
Version 4.64.293
Fixed
- Fixed ISO/TS 32004 PDF MAC validation in PDFlibMAC.pas to accept optional explicit ASN.1 NULL AlgorithmIdentifier parameters, strip PDF whitespace in HexDecode, bound /AuthCode and /SigObjRef parsing without fixed 4KB/16KB truncation or object-number suffix false matches, and verify exact /ByteRange gap alignment
Version 4.64.292
Fixed
- Fixed PAdES-LTV DSS /VRI key computation to hash the complete raw signature /Contents byte string per ISO 32000-2 §12.8.4.3 with fallback lookup for trimmed ASN.1 DER keys, verified OCSP SingleResponse good status and responder certificates during LTV collection, and emitted dedicated VRI entries for embedded signature time-stamp tokens
Version 4.64.291
Fixed
- Fixed TPDFNameTree.AddKey to replace existing duplicate keys in place and handle empty-string keys, and fixed TPDFDictionary and TPDFArray Purge/Clear/Replace methods to detach child references before calling RemoveObject
Version 4.64.290
Fixed
- Fixed geospatial viewport coordinate transformation to normalize /BBox corner ordering, prioritize topmost overlapping /VP entries per ISO 32000-2 12.9.2, and validate CoordinateSystemID in TPDFlibMeasureDict.SetCoordinateSystem
Version 4.64.289
Fixed
- Fixed PDF resource optimization to scan tiling pattern streams that omit /PatternType and inherit outer /Resources and to decode #xx name escapes and nested dictionaries in inline images, and fixed content model rectangular hit-testing for rotated text/XObjects and v/y Bezier curves
Version 4.64.288
Fixed
- Fixed PDF417 barcode segment merging in breakString to refresh element pointers after in-place array removal and preserve explicit payload length across NUL bytes
Version 4.64.287
Fixed
- Fixed EMF conversion to stroke standalone PolyBezier/PolyBezierTo records without filling and validate PolyPolygon/DIB mask record bounds in 64-bit arithmetic, reset EPS export initial color state in StartDocument, and use FixWideText-normalized characters and rotated highlight boxes in DrawSpacedText
Version 4.64.286
Fixed
- Fixed Windows banded page rendering device-Y offset and initial CTM assignment, 4-corner annotation /BBox matrix transformation, stroke /Separation alternate CMYK state isolation, and knockout transparency group backdrop punching in StrokeAndFillPath, StrokePath, and NullPath
Version 4.64.285
Fixed
- Fixed enterprise redaction to clone Form XObjects referenced multiple times on the same page before in-place stream scrubbing, and fixed form appearance text matching to reject streams that draw visible text outside the /Tx marked-content block
Version 4.64.284
Fixed
- Fixed EN 16931 CII and UBL invoice validation (BR-CO-14) so foreign-currency accounting tax totals (BT-111) are not mistaken for document-currency tax totals (BT-110), and extended VAT category presence checks (BR-*-02) to cover document-level allowances and charges (BG-20/BG-21)
Version 4.64.283
Fixed
- Fixed PDF/UA-1 and PDF/UA-2 structure tree auditing in PDFlibPDFUARules to resolve custom structure element types through StructTreeRoot/RoleMap before checking heading, table grid, list label, and form widget rules
Version 4.64.282
Fixed
- Fixed PDF/A XMP identification validation to accept pdfaid:corr in PDF/A-1, require pdfaid:part and pdfaid:conformance (Parts 1-3), and forbid pdfaid:amd/corr in PDF/A-4; also fixed PDF/A RoleMap terminal standard-type validation and content-stream /Lang and /ActualText lexical scanning and PDFDocEncoding decoding
Version 4.64.281
Fixed
- Fixed drop-cap first-line indentation with obstacle runarounds in TPLTextFlow, preserved UTF-16 surrogate pairs and combining-mark grapheme clusters during RTL bidirectional reordering in TPDFTextFunnel, and fixed NFD combining-mark syllable hyphenation boundaries
Version 4.64.280
Fixed
- Fixed Markdown fenced and indented code block rendering to preserve leading blank lines and exclude trailing paragraph-separator blank lines from indented code blocks, and fixed TPDFTable.MergeCells to clear existing sub-merges within the target cell range
Version 4.64.279
Fixed
- Fixed HTML <pre> block preprocessing to preserve spaces inside nested HTML tags and skip cross-page <stack> continuations, fixed @page margin-box sizing when centering with a single fixed-width side box, and validated individual @page margin-* declarations before cascading
Version 4.64.278
Fixed
- Fixed CFF Type 2 charstring validation and advance-width extraction to allow cntrmask after an initial hintmask and zero-stem-operand hintmask/cntrmask width parsing, and fixed TrueType rasterizer WE_HAVE_A_SCALE fallback scaling, composite glyph dispatch, and single-point off-curve contour closure
Version 4.64.277
Fixed
- Fixed CFF2 variable font instantiation to allow multiple vsindex operators across blend groups, fixed TrueType variable composite glyph gvar scaled component offsets and point-matched component alignment, and excluded empty-outline glyphs when computing hhea minLeftSideBearing, minRightSideBearing, and xMaxExtent
Version 4.64.276
Fixed
- Fixed Type 1 glyph rendering with non-standard /FontMatrix scaling so glyph origin offsets (RX, RY) are not scaled by FontMatrixScaling, and fixed Type 2 charstring decoding to terminate subroutines on return (operator 11) and unconditionally clear FirstClear after the first stem, mask, or move operator
Version 4.64.275
Fixed
- Rendering: a fill or stroke painted with a blend mode such as Multiply or Screen and a constant opacity below 1 now mixes the blended color with the backdrop by that opacity, instead of blending the already semi-transparent color, which made Multiply too dark and Screen too light over any backdrop other than black or white
Version 4.64.274
Fixed
- Rendering: a non-isolated transparency group painted with a blend mode other than Normal, such as an annotation appearance under a PDF 2.0 /BM entry or a form XObject group drawn under a blend mode, now has the backdrop factored out before the group is blended onto the page, as ISO 32000-2 describes, so blend modes used inside the group no longer turn the result into a washed-out grey
Version 4.64.273
Fixed
- Fixed raw PDF recovery when the latest trailer dictionary omits /Root by scanning earlier trailers and falling back to /Type /Catalog synthesis, and fixed C# DLL demo LastError read-once caching and BaseDirectory-relative native DLL probing
Version 4.64.272
Fixed
- Fixed PDF/X-1a and PDF/X-3 embedded DestOutputProfile ICC header validation, standard 1D /DParts array traversal and orphan-free node creation in PDF/VT and DPart validators, and PDF/R-1 1-component ICCBased image and CCITTFaxDecode /BlackIs1 and /Columns validation
Version 4.64.271
Fixed
- Fixed SM2 signature size estimation, strict DER positive integer canonicalization in SM2 verification and key decryption, mandatory 32-byte ZA digest validation in SM2 sign/verify primitives, and explicit SM4-CBC decryption failure propagation for PDF strings and streams
Version 4.64.270
Fixed
- Rendering: an annotation that has an appearance stream no longer has its /CA or /ca opacity applied a second time on top of the transparency the appearance stream already specifies, so a half-opaque highlight renders at half opacity in its own color rather than as a fainter, washed-out tint; as ISO 32000 requires, those entries are not used when an appearance stream is present, while the PDF 2.0 /BM blend mode is still applied when compositing the appearance
Version 4.64.269
Fixed
- Enforced ITU-T X.690 minimal-length encoding checks in DERDecodeLength and DERReadTLV, and added BER indefinite-length constructed container parsing across CMS SignedData certificate, signer, padding, and timestamp extractors
Version 4.64.268
Fixed
- PostScript and EPS import: painted and clipped paths are now written as well-formed PDF path objects, with the coordinates expressed in the user space in force when the path is painted, instead of wrapping the path construction in a save, transform and restore sequence that ISO 32000-1 does not permit inside a path object; line widths and dash patterns keep their PostScript meaning, and clipping to an empty path yields an empty clipping region
Version 4.64.267
Fixed
- PostScript and EPS import: rectfill and rectstroke once again leave the current path and current point unchanged, as the PostScript language requires, so a path built before them is still painted by a later stroke or fill; the rectangle itself is written as a self-contained PDF path
Version 4.64.266
Fixed
- Fixed 64-bit GDI HDC handle truncation and signed-integer extension across GetCanvasDC, GetCanvasDCEx, and RenderPageToDCClip in the core library, ActiveX/COM wrapper, and Dylib exports, and guarded DLL/Dylib progress callbacks and instance teardown against uncaught exceptions
Version 4.64.265
Fixed
- Guard structured table cell upper bounds across DOCX, Markdown, CSV, and cross-page table linking, filter dangerous URI schemes in structured XHTML and Markdown exports, and preserve PDF link annotations in DOCX export using linear-time hyperlink injection
Version 4.64.264
Fixed
- Commit new page ParentTree entries before replacing widget OBJR nodes in ConvertExistingWidgetTag, and reuse existing ParentTree indirect dictionaries and non-array StructTreeRoot /K entries in PLAutoTagSemanticPages
Version 4.64.263
Fixed
- Separate indirect-reference expansion depth from container recursion depth in ObjectCanonicalForm, resolve non-zero generation indirect objects during modification classification, and include page UserUnit scaling in PLRenderComparisonBitmap
Version 4.64.262
Fixed
- Split coalesced adjacent reflow edits into non-overlapping per-hit byte spans with exact expected bytes in PDFlibUnicodeTransaction, and consistently use EffectiveState across PLRewriteUnicodeInstruction
Version 4.64.261
Fixed
- Expand unknown-height JBIG2 page bitmaps for halftone and text region segments, reject zero or mismatched symbol dictionary export runs, preserve sloped baseline and rotated axis spans in OCR word placement, and avoid skipping all rows when deskewing 3-pixel-tall strips
Version 4.64.260
Fixed
- Fixed BigTIFF old-style JPEG SOS marker segment scanning and 64-bit offsets in PDFlibBigTIFF, rounded PNG pHYs DPI conversions in PDFlibPNG, and fixed GIF interlaced pixel count, uncovered-canvas transparency mask detection, and Plain Text Extension GCE consumption in PDFlibGIF
Version 4.64.259
Fixed
- Fixed TIFF 16/32-bit little-endian MSB extraction in SimpleExtract, 32-bit RGBA channel order under Predictor=2 in CompDecode, big-endian FLOAT/DOUBLE tag byte swapping, multi-strip StripOffsets/StripByteCounts serialization in SaveToStream, and 24-bit IEEE floating-point sample conversion in PDFlibTIFFSamples
Version 4.64.258
Fixed
- Fixed DeviceN multi-component color cache condition and reset logic, isolated Lab white-point/range state in TPDFLabColorSpace, initialized Lab/CalGray/CalRGB /Alternate fallbacks for ICCBased shadings in PDFlibPatterns, and fixed ICC v2 mft2 16-bit PCS Lab scaling and B2A-only profile validity in PDFlibPureICC
Version 4.64.257
Fixed
- Fixed QR Code byte-mode decoding of UTF-8 (with or without BOM) payloads lacking explicit ECI headers and rejected unimplemented Kanji byte segments in PDFlibQRCode
Version 4.64.256
Fixed
- Fixed Code 128 Subset B control character SHIFT encoding and out-of-range byte filtering, and fixed Data Matrix C40/Text partial-triplet fallback and end-of-symbol implicit Unlatch (#254) omission in PDFlibBarcode
Version 4.64.255
Fixed
- Fixed SVG nested <svg> and <symbol> viewport dimension inheritance for percentage lengths, added support for clipPathUnits="objectBoundingBox" and empty/hidden <clipPath> zero-area clipping in PDFlibSVG, and separated fill-opacity from stroke-opacity on exported <text> elements in PDFlibSVGExport
Version 4.64.254
Fixed
- Fixed SVG path and marker arc command (A/a) single-character flag parsing for compact syntax and suppressed degenerate zero-length arcs when start and end points coincide
Version 4.64.253
Fixed
- Fixed SVG multi-span text chunk width measurement for text-anchor middle/end alignment and included stroke paint RGBA alpha in text stroke opacity events
Version 4.64.252
Fixed
- Fixed annotation SetRotation when /MK /R or /Rotate is initially absent, leader line (/LL, /LLO, /LLE) offset geometry in PLAnnotationHitTest, and automatic Z-order vs ring-order /QuadPoints normalization in hit-testing and highlight appearances
Version 4.64.251
Fixed
- Fixed XFA packet writeback to avoid inserting empty datasets packets or placing new packets after postamble, and preserved parent XML namespace prefixes in CreateFieldChild
Version 4.64.250
Fixed
- Fixed European decimal comma parsing across AFNumber_Format, AFPercent_Format, AFRange_Validate, and AFSimple_Calculate, NegStyle=1 sign suppression, and negative zero elimination after rounding
Version 4.64.249
Fixed
- Fixed checkbox/radio MakeCheckStyle fractional /BBox dimensions and parameter usage, negative widget rotation normalization, separation color operator cleanup in /DA strings, and dirty flag tracking in SetBorderColor overloads
Version 4.64.248
Fixed
- Fixed AcroForm choice field /Opt inheritance across parent-child field hierarchies, display value mapping and multi-line rendering in choice widget appearance streams, single-item /I selection index array generation for multi-select choice fields, and lazy field type evaluation in InterpretValue
Version 4.64.247
Fixed
- Fixed 64-bit HDC handle truncation and COM initialization lifetime in VC++ and C# ActiveX wrappers, 96-DPI pixel scaling in VC++ CanvasDC, GDI+ MemoryStream bitmap cloning in C# and VB.NET preview demos, and composite watermark child ownership transfer in C++Builder WatermarkDemo
Version 4.64.246
Fixed
- Fixed scenario asset lookup and missing-input synthesis in ImageLab (CreateWithImage, CreateWithImageToStream, DoInTheStream, ImportEMF), DocumentLab (AddFormattedTitle, CaptureToNewSize, AddTextImage), SecurityLab (PdfDecrypt, PdfEncrypt, PdfPermission), and DeliveryLab (PrintPDF, PdfToImage), added ImportEMFFromFile return checks, and removed redundant LoadFromFile calls before EncryptFile
Version 4.64.245
Fixed
- Fixed CanvasMigrationMatrix page coordinate state resets after LoadFromCanvasDC, CanvasText headless execution and form cleanup, and missing sample input or certificate fallbacks in EnterpriseLab (PreflightReport, SigningWorkbench, ComplianceWorkbench) and PerformanceLab (HugeFileBenchmark, MergeBenchmark) across Delphi, Lazarus, and C++Builder demos
Version 4.64.244
Fixed
- Fixed SetPDFAMode for PDF/A-1a and PDF/A-1b to lower the default document version to PDF 1.4 and suppress object streams and cross-reference streams per ISO 19005-1 section 6.1.4, and updated the ComplianceLab OutputIntent, TaggedPDF, and E-Invoice scenarios to pass veraPDF PDF/A-1b, PDF/UA-1, and PDF/A-3 validation
Version 4.64.243
Fixed
- Fixed PDF linearization (TDLLinearizer.Prepare) to look up the Catalog /ViewerPreferences entry instead of /Preferences when ordering document-level objects, and updated TPDFNameTree.RemoveEmptyKidsNodes to recursively prune empty multi-level /Kids nodes and refresh parent /Limits
Version 4.64.242
Fixed
- Fixed TPDFContentProgram.GetTextRuns to save and restore text leading (TL) across q/Q graphics state operators, populated PaintedPathSegments and XObject descriptions in GetGraphicsState when AfterInstruction is False, and updated TPDFTable.InsertColumns and InsertRows to expand merged cells that span the insertion point
Version 4.64.241
Fixed
- Fixed COLR v1 color font parsing (TPLColorFontReader.TryCOLR) to keep zero relative baseGlyphListOffset and layerListOffset values as 0 instead of resolving them to the COLR table header, and updated CFF2 variable font instantiation (BuildStaticCFF2Font) to synchronize head.macStyle and apply MVAR subscript, superscript, and strikeout deltas to the OS/2 table
Version 4.64.240
Fixed
- Fixed built-in CII and UBL e-invoice semantic validation to enforce EN 16931 BR-CO-11 and BR-CO-12 when document-level allowance/charge entries are absent or header totals are omitted, enabled ValidateInvoiceBusinessRulesWithPackage to honor XMLLintExecutable when JavaExecutable is empty, and added xmp:ModifyDate/CreateDate fallback in native XMP EnsurePDFEProperties
Version 4.64.239
Fixed
- Fixed PDF/VCR data merge (PLExecuteVCRDataMerge and ExecuteVCRDataMergeCurrent) to skip inline << ... >> property dictionaries and comments inside marked-content spans when locating text operands, and to preserve the active document password during in-memory merges (ISO 16613-1)
Version 4.64.238
Fixed
- Fixed ApplyRedactions to honor /RO redaction overlay form XObjects, default missing /IC interior fill colors to solid borderless black instead of stroking candidate mark borders, and scrub residual metadata entries from flattened /Redact annotation dictionaries (ISO 32000-1 12.5.6.23)
Version 4.64.237
Fixed
- Fixed PDF/E-1 compliance checker to accept TrueType Encoding dictionaries with valid BaseEncoding, validate CIDToGIDMap values, track Indexed base color spaces, and reject LZWDecode/Crypt stream filters
Version 4.64.236
Fixed
- Fixed SetImageMask, SetIndexedImageMask, and SetImageMaskCMYK to handle calibrated/abbreviated color spaces and scale CMYK color-key bounds by BitsPerComponent
Version 4.64.235
Fixed
- Fixed EMF PolyPolygon sub-polygon closure, path fill/stroke state flags, BoldItalic font matching, and EPS rectfill/rectstroke path state handling
Version 4.64.234
Fixed
TPDFlibTableExporter.ExportDataSetandTPDFlib.LoadFromCanvasDCuse the document’s measurement units consistently and restore them afterward. Later operations keep the caller’s original unit setting
Version 4.64.233
Fixed
- Fixed CFF font encoding parser to support ExpertEncoding, supplemental encoding tables (format bit 0x80), and standard string SID 379 ('001.000')
Version 4.64.232
Fixed
- ToUnicode and CID range decoders read CMap range arrays and validate negative sentinel values. Malformed values no longer pass as ordinary range entries
Version 4.64.231
Fixed
- Fixed duplicate horizontal text scaling (Tz) application during glyph advance calculation when rendering fonts with non-default FontMatrix scaling
Version 4.64.230
Fixed
- Fixed MovePage and ClonePages so page suspension flags (SuspendPage / IsPageSuspended) stay aligned when pages are moved or cloned
Version 4.64.229
Fixed
- Fixed RemoveGlobalJavaScript so calling it on a document without global JavaScript no longer injects an empty /Names /JavaScript tree into the catalog, and removing the last script package clears the action dictionary and prunes empty /JavaScript and /Names entries
Version 4.64.228
Fixed
- Fixed multi-document outline merging when OnMergeOutline sets Skip to True so skipped first, middle, last, or whole-document top-level bookmarks are cleanly unlinked and remaining sibling /Prev, /Next, /First, /Last, and /Count entries stay consistent
Version 4.64.227
Fixed
- Fixed Direct Access page content, text extraction, rendering, outline, and structure-tree readers so in-memory objects created or modified in the current session are resolved before falling back to on-disk objects
Version 4.64.226
Fixed
- Fixed formula parsing where case-insensitive matching shadowed double-bar delimiters (\Vert), curly-brace matrix environments (Bmatrix), and double-bar norm matrix environments (Vmatrix)
Version 4.64.225
Fixed
- Fixed HTML and MathML <math> rendering in ConvertMathMLOrLaTeX where unescaping < and > entities before tag stripping caused inequality operators and following MathML tags to be swallowed as markup
Version 4.64.224
Fixed
- Fixed ApplyPAdESSignatureTimeStamp when SignerIndex is greater than zero so the RFC 3161 time-stamp request hashes the target SignerInfo signatureValue rather than always hashing signer 0
Version 4.64.223
Fixed
- Fixed signature seed-value validation rejecting empty signing reasons when a required /Reasons array contains the single ISO 32000-1 sentinel entry (.), and fixed CNG and external certificate bundle identities so leaf certificate extraction and seed-value certificate checks inspect the leaf certificate rather than the concatenated DER bundle
Version 4.64.222
Fixed
- Fixed AddFacturXAssociatedFileFromFile and AddFacturXAssociatedFileFromString failing when the FileName parameter was left empty instead of applying the documented factur-x.xml default, and extended Factur-X XMP metadata detection to parse RDF attribute properties in addition to child elements
Version 4.64.221
Fixed
- Fixed PAdES B-LTA promotion (ApplyPAdESLongTermArchiveValidation and ApplyPAdESLongTermArchiveValidationToStream) and document time-stamp signing processes (SetSignProcessDocTimeStamp) failing when no explicit signature field name was assigned by automatically generating a unique DocTimeStamp field name and forwarding the configured time-stamp digest algorithm
Version 4.64.220
Fixed
- Fixed content stream lexical tokenization during page rendering and text extraction so that PDF comments starting with % outside strings (including inline comments immediately following operators and comments inside inline dictionaries) are skipped through end-of-line rather than parsed as operands or operators
Version 4.64.219
Fixed
- Fixed TPDFPainter.DrawSpacedText character encoding and rotated decoration geometry so non-subsetted CID fonts, subsetted fonts, and code-page fonts map characters through FSelFont.GetCharacterCodes/GetSubsetString instead of truncating WideChar values to single-byte AnsiChar, and rotated text updates LastX/LastY and underline/strikeout/overline segments along Angle
Version 4.64.218
Fixed
- Fixed direct-file AES-256 password rewrite (PLTryBuildDirectFileState, PLDirectReadObjectBody, and PLDirectFindStreamInfo) on incrementally updated PDFs and objects containing 'stream' or 'endobj' inside strings or comments by recording historical object and xref section offsets as boundaries and scanning forward for top-level lexical stream and endobj tokens
Version 4.64.217
Fixed
- Fixed encrypted PDF handling for compressed object-stream (/ObjStm) members and Direct Access workflows so DecryptFile no longer double-decrypts compact objects, DASaveAsFile/DASaveToStream/DASaveCopyToStream and incremental WriteNewObjects encrypt promoted compact objects without mutating in-memory plaintext state, newly created or replaced page capture, embedded file, signature appearance, and PAdES DSS/VRI streams are encrypted before serialization, and DAGetFormFieldTitle/DAGetFormFieldValue decrypt non-compact field strings
Version 4.64.216
Fixed
- Fixed TPDFContentProgram.FindInstructionsInRect to sort returned instruction ranges in ascending order across text, path, and XObject phases so reverse-order redaction and deletion preserve instruction indices
Version 4.64.215
Fixed
- Fixed OpenType cmap Format 12 loading in TPDFTrueTypeParser.cmapLoad, full-repertoire Unicode subtable selection in FindUnicodecmap, and non-BMP U+xxxx code point resolution in TPDFTrueTypeRasterizer.RenderToCanvas
Version 4.64.214
Fixed
- Fixed stream-based TrueType font import on Windows in AddTrueTypeFontFromStream and WOFF/WOFF2/TTC loading to emit a compliant /CIDFontType2 descendant font with /CIDToGIDMap /Identity, /FontFile2 /Length1, populated glyph width lookup tables, and embedded font status
Version 4.64.213
Fixed
- Fixed DownsampleImages and DownsampleImagesEx writing a PNG container instead of zlib-compressed raw pixel samples on the lossless FlateDecode path, failing to synchronize /ColorSpace and /BitsPerComponent or purge stale /Decode arrays after resampling, and downsampling stencil or soft-mask image XObjects
Version 4.64.212
Fixed
- Fixed NormalizeLZWStreams double-decompressing already decoded LZW streams, overlooking abbreviated /LZW filters, and leaving stale outer filters or decode parameters on multi-filter chains
Version 4.64.211
Fixed
- CSS colours written as rgba(), hsl(), hsla() or hex values with an alpha channel are now rendered in imported HTML instead of being painted black
Version 4.64.210
Fixed
- Imported HTML now decodes character entities in font, span, spacing and hyphen attributes, so entity-encoded colours and values are applied instead of being treated as literal text
Version 4.64.209
Fixed
- Unitless CSS line-height values in imported HTML now scale line spacing as a multiple of the font size instead of being ignored
Version 4.64.208
Fixed
- Imported HTML tables now keep an explicitly requested zero cell padding instead of silently falling back to the default spacing
Version 4.64.207
Fixed
- Tables, images and other imported HTML elements now treat unitless width, height, cellpadding, border and size values as pixels instead of points
Version 4.64.206
Fixed
- CSS lengths written in inches, centimetres, millimetres or picas are now scaled correctly in imported HTML instead of being read as points
Version 4.64.205
Added
- Data Matrix and PDF417 can now encode non-ASCII text as UTF-8 bytes when the new payload encoding option is enabled; existing output is unchanged by default
Version 4.64.204
Fixed
- The last line of a paragraph justified with CSS text-align is no longer stretched, so it now matches the behavior of the align attribute
Version 4.64.203
Fixed
- Updating document information on a PDF whose metadata stores a value as an XMP attribute now replaces that value instead of leaving the old and new values side by side
Version 4.64.202
Fixed
- A signature appearance added to an encrypted document is now encrypted with the rest of the incremental update, so the visible signature text no longer appears as plaintext inside the file
Version 4.64.201
Fixed
- Text extraction no longer returns an empty page when an embedded font's character map lists more codes than it stores; such documents now keep their readable text
Version 4.64.200
Fixed
- A graphics state selection or coordinate rotation made as the last drawing operation now reaches the page content instead of being dropped
Version 4.64.199
Fixed
- Restoring a saved drawing state now also restores the line width, cap, join and miter limit, and resetting the painter clears a stored underline dash that kept overriding every later dash setting
Version 4.64.198
Fixed
- Rotated text imported from a Windows metafile no longer leaves the page rotated and displaced for the drawing that follows it
Version 4.64.197
Fixed
- Text extraction no longer returns an empty page when an embedded font ends its glyph name table early; such documents now keep their readable text
Version 4.64.196
Fixed
- Drawing two different captured pages onto the same page of an existing document now shows both of them; the second placement used to overwrite the first, so both showed the same page
Version 4.64.195
Fixed
- Text extraction from documents with an unreadable embedded font no longer leaks memory on every attempt, so repeated extraction keeps memory usage stable
Version 4.64.194
Fixed
- A web link written in imported HTML now keeps the address its author wrote when that address contains an ampersand entered as an entity, and a paragraph alignment written in upper case, or using the short justify keyword, is now honoured instead of being silently treated as left-aligned
Version 4.64.193
Fixed
- Text extraction no longer returns an empty page when an embedded TrueType font subset ends its glyph location table early; such documents now keep their readable text
Version 4.64.192
Fixed
- Document metadata, custom catalog entries and custom information fields edited after a document was encrypted are now kept when it is saved instead of being silently discarded, and a custom information field can now be removed from an encrypted document as well as added to it
Version 4.64.191
Fixed
- Pages whose words are positioned only by the page transformation matrix now read as text again: producers such as the GDI text stack place each word with a matrix of its own and leave the text space position identical for all of them, so every word used to start at the same point and a page came out as one run of glued words with no line breaks
- The extracted text no longer begins with a blank line when the first run is placed away from the page origin
Version 4.64.190
Fixed
- A named destination or named page whose name uses characters outside the Western European set now keeps that name: the name used to be recorded in the document in the system's own encoding while readers interpreted it as PDF text, so it came back garbled when the destinations were listed and a link pointing at it could stop resolving
Version 4.64.189
Fixed
- Documents whose embedded fonts come from the GDI text stack no longer lose their text: a subset that ends its horizontal metrics table after the metric records — 4502 records for 4503 glyphs, which is what Word writes — made the font analysis raise, and every affected run fell back to printing its raw two byte codes
- The same over-read in the vertical metrics table (vmtx), found by sweeping the class rather than by a file: a subset that ends after its long metric records lost every glyph measurement on the vertical side
Version 4.64.188
Fixed
- Text that a page paints through a form XObject now reaches the standard extraction options: a page whose runs all live inside a form, which is how most tools export a page that uses transparency, used to come back empty even though the accurate options found its text
- Extraction no longer inserts a space inside a word for documents that draw one glyph at a time: the word gap is measured from where the previous run ended, and a run that only appears to move backwards no longer counts as a gap
Version 4.64.187
Fixed
- A page that contains a form which cannot be followed to its end still renders and still extracts: the offending paint is skipped instead of the whole page being abandoned
Version 4.64.186
Fixed
- A form XObject that paints itself, or two forms that paint each other, no longer follows the nesting until the stack runs out and takes the host process with it: form nesting is capped the same way Type3 glyph nesting already was
- Extracting text from a document whose page tree holds no leaf page now returns an empty string instead of walking a page that was never loaded and raising an access violation
Version 4.64.185
Fixed
- Composite fonts whose descendant entry points back at the font itself, or at a second composite font that points back, no longer drive text extraction off the end of the stack: the descendant of a composite font is always a CIDFont, so the lookup descends a single level and stops
Version 4.64.184
Fixed
- Linearized files now keep the information dictionary where the first-page cross-reference table can point at it, so a reader that unpacks the document body no longer loses track of the object the trailer names
Version 4.64.183
Fixed
- Form fields created without a position now carry the widget rectangle the format requires, so other readers no longer drop them as annotations with a bad bounding box
Version 4.64.182
Fixed
- Bookmarks that open another file or jump into one no longer record the target with stray escape characters in it, so a bookmark given a path that already uses forward slashes now reaches the intended document
Version 4.64.181
Fixed
- Lattice-form mesh gradients no longer declare an edge flag width that their vertex data does not contain, so a lattice gradient now decodes correctly in viewers that derive the vertex record size from the shading dictionary
Version 4.64.180
Fixed
- Mesh shadings are now separate stream objects, so a file that fills an area with a Gouraud, lattice, Coons or tensor patch mesh no longer carries stream data inside another object where a reader cannot parse it
- Incremental updates now declare a cross-reference size that matches the objects the file actually contains, instead of counting a reserved object number that no revision ever wrote
Version 4.64.179
Fixed
- Links to another PDF document and links that launch a local file now store their target as a standard PDF file specification, so every link helper resolves the same way in a conforming reader instead of some treating a Windows path as relative to the document
Version 4.64.178
Fixed
- Embedded files and attachments now store the source file name as a standard PDF file specification, so a file added from a full Windows path keeps that path and is no longer mistaken for one relative to the document
Version 4.64.176
Fixed
- Embedding a file whose MIME type is unknown now leaves the subtype out of the embedded file stream instead of writing an empty one, so readers fall back to the file extension as the reference pages describe
Version 4.64.175
Fixed
- The four RGB mesh shading builders now accept only the quantization widths ISO 32000-1 permits (1, 2, 4, 8, 12, 16, 24 or 32 bits per coordinate, and 1, 2, 4, 8, 12 or 16 bits per color component) and report failure for other values instead of writing a shading dictionary that no conforming reader has to accept
Version 4.64.174
Fixed
- Subsetted TrueType fonts now name their Unicode mapping table consistently, so a strict reader no longer sees two different names for the same table
Version 4.64.173
Fixed
- Linearized files now tell a reader which resources a later page shares with the first page; such a page used to be handed a section that referenced a font or image it never received
Version 4.64.172
Fixed
- Attachment and embedded file names that contain characters outside the standard PDF text encoding now survive a save and reopen exactly as they were given, instead of coming back as garbled text
Version 4.64.171
Fixed
- Multi-stop linear and radial gradients now shade smoothly through every colour stop; each interior segment used to jump to its end colour and hold it for most of its length
Version 4.64.170
Fixed
- SASLprep normalization for AES-256 passwords now runs on every platform, so a compatibility password such as the fi ligature opens the same document on any target
Version 4.64.169
Fixed
- Documents that embed a font in full now carry a Unicode map that readers can use: a glyph shared by several characters used to be listed once per character, which invalidated the entire map and left text extraction, page rasterization and the accessibility audit without it
- A fully embedded font no longer maps a character to the null character, which the library's own PDF/A audit reports as text that cannot be extracted
- Embedded subsetted fonts now declare their writing mode as a name inside the Unicode map, so readers and the library's own accessibility audit accept the map instead of discarding it
Version 4.64.168
Added
- Callers can now query whether an AES-256 document's permissions were validated by its /Perms entry, while documents without a verifiable /Perms still open
Fixed
- Embedded-file crypt filters no longer override the algorithm used to decrypt ordinary strings and streams
Version 4.64.167
Fixed
- A lattice-form Gouraud mesh shading now declares the number of vertices per row, so a reader can triangulate the lattice instead of rejecting the shading
Version 4.64.166
Fixed
- Content stream rewriting matches a hex-escaped resource name to its unescaped form. A resource reference can be updated even when the source spells its name with hexadecimal escapes
Version 4.64.165
Fixed
- An Aztec barcode drawn from a payload outside ASCII now carries a UTF-8 character set label, so readers return the original characters instead of garbled text
Version 4.64.164
Fixed
- Cross-reference streams with an unrecognised entry type now treat the object as null instead of letting an older revision restore it
Version 4.64.163
Fixed
- The barcode recognition reference now documents the bitmap layout, the accepted result limit and the JSON output shape the engine really implements, so callers no longer supply a grayscale buffer, an empty result limit, or expect the pixel scale to be derived from the resolution
Version 4.64.162
Fixed
- Drawing an Aztec barcode with an empty payload now reports that no symbol was drawn instead of emitting a symbol that reads back as a character the caller never supplied
Version 4.64.161
Fixed
- Drawing a PDF417 barcode with an out-of-range error correction level now reports an invalid parameter, and a level above what the symbol can carry keeps the strongest available protection instead of dropping to the weakest
Version 4.64.160
Fixed
- Renaming a form field by its fully-qualified name now keeps the field inside its parent hierarchy instead of doubling the parent prefix in the stored partial name
Version 4.64.159
Fixed
- Strict cross-reference stream loading now rejects Index subsection arrays that are out of order or overlap
Version 4.64.158
Fixed
- Adding a choice option to a form field no longer discards the field's default appearance string, separation text colours now reach regenerated field appearances, exported sound annotation WAV files carry a correct RIFF size, and a split XFA packet whose datasets part does not parse is now reported invalid
Version 4.64.157
Fixed
- Inline image dictionaries containing ID or EI lookalikes inside string values no longer break content stream parsing
Version 4.64.156
Fixed
- PDF/A validation now follows the clause set of the claimed part: PDF/A-1 files are no longer flagged for annotation, page and action constructs that only PDF/A-2 forbids, and PDF/A-1 Level A fonts that lack a Unicode map without meeting the part 1 exemptions are now reported
Version 4.64.155
Fixed
- Content stream editing no longer truncates inline images whose sample data contains an EI-like byte sequence
Version 4.64.154
Fixed
- HTML rendering keeps text and background colours across page continuations, and CSS shorthand hex and rgb() colour notations now paint in their specified colour instead of black
Version 4.64.153
Fixed
- Drawing a PDF417 barcode without any text now reports failure instead of success, so a symbol that was never painted is no longer reported as drawn
Version 4.64.152
Fixed
- Incremental updates now mark deleted objects as free, so removed content no longer reappears when the file is reopened
Version 4.64.151
Fixed
- Resource cleanup no longer removes named resources that a page content stream it could not decode may still reference
- Resource cleanup keeps the surrounding named resources when a recursion option is cleared and an unscanned form, pattern, Type 3 font, appearance, soft mask or image still depends on them
Version 4.64.150
Fixed
- Converting a document to the editable QDF debugging format no longer drops its highest-numbered object, which could cost the converted file visible content or a resource it still referenced
- Repairing an editable QDF file no longer shortens a stream whose data ends with a carriage return by one byte, which could stop that stream from decoding
Version 4.64.149
Fixed
- Mesh shadings now ignore the unused high bits of edge flags, so gradients whose flag bytes carry padding bits render in full
- Cross-reference streams with an invalid /Index entry are now rejected under strict validation instead of being read with a guessed object table
Version 4.64.148
Fixed
- Incremental updates of a document saved with a cross-reference stream no longer reuse an object number the earlier revision still owns, which could leave the updated file unreadable
Version 4.64.147
Fixed
- Data merge now resolves a placeholder marked-content property list given as a named page resource entry, not only as an inline dictionary
- Data merge now replaces placeholder text when the marked-content span is split across the members of a page content stream array
Version 4.64.146
Fixed
- SVG export now produces well-formed markup and fidelity reports when page text or link targets contain characters that XML forbids or unpaired Unicode surrogates
Version 4.64.145
Fixed
- TIFF images that use SubIFDs are concatenated without corrupting their embedded offset tables
- Linearized output writes exact cross-reference table offsets and marks objects that were never written as free
- Reversed annotation rectangles no longer produce negative dimensions during rendering and redaction
Version 4.64.144
Fixed
- Trust list evaluation now reports a consistent not-qualified status when issuance-time qualification cannot be determined
- Markdown reference-style link definitions now reject active-content URL schemes
- The ActiveX text extraction sample no longer treats an empty but valid page as a failure
- TIFF concatenation now shifts all old-style JPEG offset tables and handles larger source streams
Version 4.64.143
Fixed
- TIFF concatenation now adjusts JPEG and subdirectory offsets and promotes overflowing short offset arrays
- Unicode font mapping no longer risks a stack overflow with long replacement text
- Data Matrix symbols are encoded once instead of twice
- Viewer highlight annotations now preserve the caller measurement units
- Data merge no longer stops at inline image bytes that resemble a marked-content end
Version 4.64.142
Fixed
- DOCX export keeps image references aligned when a page contains an empty image
- DOCX and Markdown exports escape ampersands and reject unsafe link targets
- The VB.NET workflow sample no longer fails after merging two documents
- FastReport and ActiveX samples now report failed image and text operations
Version 4.64.141
Security
- AES encryption and decryption now work in FireMonkey Windows builds
- Certificate chain building no longer accepts an issuer with a different key when the certificate names the expected key
- Trust list validation no longer treats an unevaluable issuance-time status as qualified
- Malformed date-time values in trusted lists are rejected
Version 4.64.140
Fixed
- Malformed cross-reference streams no longer hang document loading
- Truncated stream objects are rejected instead of being silently read as empty data
- Name objects containing an illegal null escape are no longer accepted
- Documents saved for PDF 1.2 no longer request a higher version when they use overprint parameters
Version 4.64.139
Fixed
- Text written with a CID font loaded from an existing document no longer loses characters outside the codespace of the font's ToUnicode map
Version 4.64.138
Fixed
- TrueType composite glyphs such as accented letters again return their outlines and render with correctly placed components
Version 4.64.137
Fixed
- Embedded encoding CMaps that inherit from a base CMap only through the stream dictionary /UseCMap entry are accepted again, so text in such fonts extracts, measures and renders with the right font
Version 4.64.136
Fixed
- Appending a tiled TIFF to a multi-page TIFF stream no longer corrupts the appended page's tiles
Version 4.64.135
Fixed
- Appending big-endian (Motorola) TIFF pages no longer corrupts field and image data positions above 255 bytes
Version 4.64.134
Fixed
- GIF images with a transparent colour now keep those pixels transparent in the PDF instead of painting them with the background colour
Version 4.64.133
Fixed
- Group 3 2-D CCITT images created from bitmaps now declare a K value that matches their mixed 1-D and 2-D row encoding
Version 4.64.132
Fixed
- PDF/VCR data merge keeps non-ASCII field values intact on every compiler and system code page, encodes them with the template font, and rejects values the font cannot display instead of writing unreadable text
- A JSON null field value in a PDF/VCR data merge now clears its placeholder instead of inserting the text null
Version 4.64.131
Fixed
- Declaring an Adobe extension level, for example for AES-256 encryption or geospatial features, no longer removes other developer extension entries such as the PAdES ESIC declaration
Version 4.64.130
Fixed
- Pages with a geospatial viewport now save as PDF 1.7 with the Adobe ExtensionLevel 3 declaration instead of failing with error 602; PDF 2.0 output gets no Adobe extension declaration
Version 4.64.129
Fixed
- Text markup annotations from AddTextMarkupAnnotation, AddTextMarkupFromSearchHits and NewMarkupAnnotation now place their rectangle and quad points on the same marked area under every SetOrigin setting, and viewer highlights are committed at the right position
Version 4.64.128
Fixed
- GS1 Data Matrix symbols accept human-readable element strings such as (01)...(17)...(10)..., inserting separators after variable-length AIs automatically and rejecting malformed strings with LastErrorCode 302
Version 4.64.127
Fixed
- DrawDataMatrixSymbol now fails with LastErrorCode 302 instead of silently truncating data that does not fit the selected symbol or the largest 144x144 symbol, and EDIFACT data that exactly fills a symbol keeps its last character
Version 4.64.126
Fixed
- HTML tables inside an indented block calculate percentage widths and centering from that block’s available width. The table aligns within the indentation
Version 4.64.125
Fixed
- In HTML layout, text after a list keeps the surrounding block’s indentation. Ending the list no longer resets the position of subsequent text
Version 4.64.124
Fixed
- When an ordered list continues in the next HTML box, it retains its numbering and marker style. Splitting the content no longer restarts the sequence
Version 4.64.123
Fixed
- HTML ordered lists honor both the list’s
startattribute and a list item’svalueattribute. Displayed markers reflect explicit starting numbers and numbering overrides
Version 4.64.122
Fixed
- Each call to the Code 128 encoder starts with a fresh set of bars. Encoding another value no longer appends bars from the previous barcode
Version 4.64.121
Fixed
- DrawBarcode rejects Code 39 text with characters outside the Code 39 set instead of silently dropping them
Version 4.64.120
Fixed
- The built-in Code 128 reader returns GS separators between GS1-128 element strings. Applications can distinguish adjacent elements in the decoded output
Version 4.64.119
Fixed
- Data Matrix symbols using EDIFACT decode when the encoded data exactly fills the symbol capacity. A valid full-capacity symbol no longer needs spare space to be read
Version 4.64.118
Fixed
- UPC-E barcodes use the correct ending guard pattern. The generated symbol can be recognized by a scanner that expects the UPC-E ending
Version 4.64.117
Fixed
- GS1 DataBar Omnidirectional symbols now follow the ISO/IEC 24724 character encoding and checksum, so drawn symbols scan correctly
Version 4.64.116
Fixed
- Converting text to paths no longer clips Type 3 glyphs whose font declares an all-zero or empty bounding box
Version 4.64.115
Fixed
- Setting a text flow drop cap with a character count below one now clamps it to one instead of rejecting the request
Version 4.64.114
Fixed
- Text flows now wrap around several obstacles on the same line using the widest free segment, as documented
Version 4.64.113
Fixed
- Jumping to a page point in the viewer, and marquee zoom, now place the target exactly at the viewport corner or centre in both single-page and continuous modes
Version 4.64.112
Fixed
- Toggling a layer in the viewer's layer panel now repaints the page with the new layer visibility
Version 4.64.111
Fixed
- The viewer no longer saves renderings of unsaved form edits to its disk page cache, and its background pre-rendering stops once the document has been changed in memory, so edited pages are never replaced by stale ones
Version 4.64.110
Fixed
- A printer DEVMODE stored with SetPrinterDevModeFromString is now applied when printing to a regular printer name, not only to custom printer profiles
Version 4.64.109
Fixed
- Reading or applying a printer DEVMODE no longer crashes when the driver returns an invalid handle
Version 4.64.108
Fixed
- Monochrome PCL print streams now start each page's raster at the top-left corner, so pages are no longer shifted down and clipped at the bottom
Version 4.64.107
Fixed
- Copying a page to the clipboard now renders everything first, so it no longer keeps the clipboard locked during rendering or empties it when nothing can be copied
Version 4.64.106
Fixed
- ToUnicode and other CMaps that map a range to an array of values no longer lose the range that follows the array, so text using such fonts extracts correctly again
Version 4.64.105
Fixed
- Standard fonts such as Helvetica are again written as simple fonts with their usual encoding; a stricter CMap codespace check had sent all their text to a substituted embedded font, which broke text measurement, wrapping and extraction
Version 4.64.104
Fixed
- Fixed long-term validation missing the issuing CA when an issuer bundle lists cross-certificates before the actual issuer
- Fixed a signature's validation-related information listing the same certificate or revocation response more than once
Version 4.64.103
Fixed
- Fixed geographic viewports recording a fixed WGS 84 description next to their EPSG code; they now record only the EPSG code
- Fixed page-to-map coordinate conversion for Web Mercator viewports interpolating latitude directly, so latitudes are now correct across large map extents
Version 4.64.102
Fixed
- Fixed optional content flattening rejecting layers whose intent lists View together with other intents and membership groups with null or deleted entries; they are now handled as the PDF specification requires
Version 4.64.101
Fixed
- Fixed Bates numbers on rotated pages being placed at the wrong corner and drawn sideways; they now follow the requested keypad position as the page is displayed and read upright
Version 4.64.100
Fixed
- Fixed redaction leaving the replacement, alternate and expansion texts that tagged PDFs attach to the removed text, in both the page content and the structure tree
Version 4.64.99
Fixed
- Fixed PNG images with a grayscale or truecolor tRNS transparent color importing fully opaque when the alpha channel is requested; that color is now masked out
- Fixed importing 1-bit and 8-bit bitmaps on non-Windows platforms picking the black and white polarity from uninitialized palette data
Version 4.64.98
Fixed
- Fixed rendering pages to Group 4 TIFF without GDI+, including multi-page Group 4 TIFF output, failing with an unsupported compression error
- Fixed CCITT and JBIG2 image import from 1-bit bitmaps whose color table lists white first producing inverted images
Version 4.64.97
Fixed
- Fixed inline image LZW and Flate filter-chain proofs so full 4096-entry LZW dictionaries continue decoding existing entries before Clear/EOI, and multi-stage Flate probing charges actual inflated output bytes instead of reserving the 16 MB limit on every probe step
- Fixed inline image header parsing and colour-space resolution so per-level array/dictionary delimiter types and full error-free token consumption are enforced, and bare /CS /I resource names are looked up in Resources /ColorSpace instead of being rewritten to /Indexed
- Fixed Enterprise audit-evidence Arlington consistency and public-key encryption preflight checks so Arlington evidence enforces failureCount and issueCount invariants across passed/failed/incomplete states, and public-key encryption rejects already-encrypted documents or locked pre-1.6 versions before mutating document metadata
- Fixed workflow JSON integer parsing, Windows alternate data stream path validation, and UTF-16 surrogate serialization so non-integer JSON numbers report type errors without Low(Integer) underflow, single-character ADS paths are rejected before and after expansion, and lone surrogates are replaced with U+FFFD
- Fixed document JSON export so PL_DOC_JSON_OMIT_STREAM_DATA preserves the outer stream dict wrapper, nested dictionaries increment recursion depth once per level, and unsupported option bits are rejected
Version 4.64.96
Fixed
- Fixed stream CMap and Unicode map source /UseCMap handling so null /UseCMap entries are ignored per ISO 32000-1 7.3.9, stream dictionary /UseCMap entries require a matching body usecmap operator, and base CMap names do not leak into unnamed derived CMaps
- Fixed external glyph selection and text validation so explicit .notdef fallback probing does not overwrite normal CID sequence diagnostics, multi-glyph explicit .notdef sequences validate all component glyph outlines, and empty text runs still verify font source integrity
- Fixed Type 3 font metric resolution and source integrity checks so multi-hop indirect references are dereferenced with cycle protection and /CharProcs dictionary replacement is detected before character measurement or commit
- Fixed Unicode font-map text encoding so ambiguous multi-character ligatures or overlapping prefix dead-ends fall back via memoized backtracking to valid shorter mappings instead of failing greedily
- Fixed PDF/UA Adobe Glyph List name validation and TrueType glyph outline extraction so DBCS ANSI codepages cannot shift dot-suffix offsets, invalid AGL variant suffixes are rejected, and truncated composite glyphs or trailing unindexed simple-glyph points are rejected
Version 4.64.95
Fixed
- Fixed OCSP response status and CRL distribution-point ASN.1 parsing so outer SEQUENCE boundaries, trailing bytes, reserved status enumerators, otherName [0] subtrees, and duplicate or malformed DistributionPoint components are rejected
- Fixed native revocation and OCSP verification so cached-only verification still enforces mandatory Freshest CRL coverage, preferred-GET OCSP requests fall back to POST when a cached GET response lacks a matching nonce, and cycle-interrupted auxiliary CRL signer states are not permanently cached as unresolved
- Fixed native OCSP version/malformed status reporting and Delta CRL candidate selection so ResponseData.version [0] is validated before accepting nonces, malformed basic responses report nosMalformed instead of nosUnknown, and unauthenticated Delta CRLs cannot shadow or conflict with valid base CRLs
- Fixed Windows CNG persisted ECDSA key management and ML-DSA secret-key coefficient validation so empty CNG key names are rejected, failed key finalization cleans up the persisted container, handle deletion avoids leaks, and out-of-range ML-DSA secret key coefficients return False cleanly
- Fixed native ByteRange digest calculation and streaming AES-256-GCM encryption so overlapping or reversed second byte ranges are rejected and failed streaming encryption rolls back target stream position and size
Version 4.64.94
Fixed
- Fixed cross-reference stream reconstruction and Bates numbering state handling so comments starting immediately on the boundary byte after endstream do not clear endobj tracking, and Bates numbering validates font selection upfront while restoring painter state only when the previous page selection succeeds
- Fixed display-list cache eviction and tile batch worker resilience so single captures exceeding the byte budget are bypassed immediately without evicting existing cached entries or double-counting evictions, and worker task exceptions are captured into the shared batch error
- Fixed OCR JSON string surrogate validation and Tesseract hOCR/process handling so unpaired UTF-16 surrogates are rejected in both JSON parsing and serialization, uppercase hexadecimal entities and innermost paragraph/block ancestors are recognized in hOCR, and pre-existing directories or file-open errors are not mishandled
- Fixed 12-bit and arithmetic JPEG validation and DCT sample decoding so DC prediction accumulators are range-checked before point-transform scaling, 16-bit quantization tables are rejected on 8-bit scans even during DCT decoding, and dequantization uses floating-point multiplication before 32-bit integer overflow
- Fixed table-of-contents leader layout and parallel optimization batch cancellation so non-finite or tiny leader widths cannot overflow Trunc or exceed the available gap when character spacing is active, and cancelled optimization batches initialize all job outputs and stop cleanly in non-parallel fallback loops
Version 4.64.93
Fixed
- Localized reference pages now show a single footer with a working publisher link
- The reference index and readme display the current product version
Version 4.64.92
Fixed
- Release tooling now updates every version banner, including ones a previous update missed
- Reference navigation checks now complete quickly on large documentation pages
- Lazarus package and project sources now follow the repository line-ending rules
Version 4.64.91
Added
- Demo guides for image and small-business scenarios are now available in all supported languages
- The workflow command-line sample is now listed in every platform demo catalog
Version 4.64.90
Fixed
- Delphi and C++Builder capture samples now report failures instead of claiming success when a page cannot be captured
- Compliance and signing samples no longer continue after a failed save
- Guided preview exports no longer link to preview images that were not written
- The VB.NET workflow sample returns a success status for help requests and closes every opened document
Version 4.64.89
Fixed
- Text extraction from documents with complex character maps is now validated against the declared code ranges, so malformed mappings are rejected instead of producing incorrect text
- Saving a damaged document no longer produces a file with conflicting internal references
- Image and stream handling is more robust under Free Pascal, with bounded allocations and consistent boolean text output
- Malformed ASCII85 data now fails consistently instead of discarding content that was already decoded
Version 4.64.88
Security
- AES-256 file encryption now fails instead of silently writing a predictable document identifier when the source file has no identifier and the operating system CSPRNG is unavailable
Version 4.64.87
Fixed
- Fixed the C++Builder EMFImportOptions demo, which failed to compile and prevented the whole ImageLab project from building
Version 4.64.86
Fixed
- Fixed two latent defects: LZW decoding with default parameters no longer depends on uninitialized values, and the Free Pascal Unicode string builder no longer hides the inherited ToString method
Version 4.64.85
Security
- Encryption key, salt and permission-padding generation now fails loudly instead of silently falling back to weak random material when the operating system CSPRNG is unavailable
Version 4.64.84
Fixed
- GIF export finishes normally in Lazarus and Free Pascal builds. Saving a GIF no longer leaves the export call hanging
Version 4.64.83
Fixed
- Flattening a text field shown by multiple widgets releases the resources shared by its appearances. The operation no longer leaks memory for these fields
Version 4.64.82
Fixed
- Fixed flattening a form field shown by several widgets leaving widgets or the field behind; every widget is now drawn on its own page and removed, and flattening a page range removes only the widgets on those pages while keeping the field for widgets elsewhere
Version 4.64.81
Fixed
- Fixed saving a PDF 1.4 or older document after filling form fields failing with error 602, because the NeedAppearances entry was wrongly treated as a PDF 1.5 feature
- Fixed SetNeedAppearances and new signature fields raising documents to PDF 1.5; NeedAppearances is a PDF 1.2 entry and SigFlags, including AppendOnly, a PDF 1.3 entry, so documents keep their version
Version 4.64.80
Fixed
- Fixed XFA choice list items losing Chinese, Thai and other non-ASCII text
- Fixed FormCalc scripts being unable to refer to non-ASCII field names and variables directly
- Fixed raw XFA packet reads and writes converting non-ASCII XML through the system code page; they now keep the XML as UTF-8
- Fixed EU trusted lists containing non-ASCII text failing signature digest checks because canonicalization used the system code page instead of UTF-8
Version 4.64.79
Fixed
- Fixed a form field that shares one dictionary with its widget being shared between copies when a page is copied more than once; it is now split into a parent field with one widget per copy, so every copy shows and updates the same field and tagged documents keep pointing at the first copy's widget
Version 4.64.78
Fixed
- Fixed EPS export drawing annotation appearances without their appearance matrix, which clipped the appearance away; appearances are now drawn inside the annotation rectangle
Version 4.64.77
Fixed
- Fixed XFA field lookups, value updates and field name lists for Chinese, Thai and other non-ASCII field names on systems whose code page cannot represent them; names are no longer turned into question marks and confused with other fields of the same length
Version 4.64.76
Fixed
- Fixed merging documents dropping the second document's named destinations; they are now kept, and names that clash are renamed (for example Chap_2) so its links still jump to the right page
- Fixed copies of a page that is copied more than once sharing one set of annotations; each copy now gets its own annotations pointing at that copy, and repeated form widgets join the same field
- Fixed copying pages from another document modifying the source document's pages; inherited page boxes, rotation and resources are now applied to the copies only
Version 4.64.75
Fixed
- Fixed links, annotations, structure elements and named destinations pointing at the wrong page when pages are copied out of order or more than once
- Fixed references to objects missing from the source document pointing at unrelated objects after pages are copied; they now become null
- Fixed bookmark counts when bookmarks are added to, removed from or moved within collapsed bookmarks, and when bookmarks are expanded or collapsed
- Fixed moving a bookmark next to one of its own children corrupting the bookmark tree; such moves are now rejected and report failure
- Fixed a crash when counting or walking very long or looping bookmark lists, including while deleting pages
- Fixed setting a bookmark destination to a page outside the document crashing after clearing the old destination, and zoom factors above 1600 percent producing an invalid destination
- Fixed new named destinations, attachments and scripts being unreachable in large multi-level name trees
- Fixed incremental saves leaving the changing part of the document identifier unchanged
Version 4.64.74
Fixed
- Fixed XFA forms with non-ASCII element or attribute names, such as Chinese data node names, losing those names when the form data is changed and saved
Version 4.64.73
Fixed
- Fixed setting a check box or radio button value adding bogus Type and Subtype appearance states when one of its appearance entries is not a stream
Version 4.64.72
Fixed
- Fixed EMF files using metric, high-English or isotropic mapping modes importing at the wrong size; they now match how Windows draws them
Version 4.64.71
Fixed
- Fixed pages rendered from the display-list cache losing text from TJ arrays with more than 100 elements
- Fixed content after a nested save and restore inside a text clipping mode being cut by the inner clipping path
- Fixed a malformed dash entry in a graphics state discarding that state's transparency and blend settings
- Fixed EPS export applying the matrix of form XObjects only to text and not to paths, images and clipping
- Fixed tiling patterns with negative XStep or YStep values not rendering their cells
- Fixed annotation appearances being clipped away on non-Windows platforms
Version 4.64.70
Fixed
- Fixed SVG drawing hanging on use elements that reference themselves, an ancestor or each other
- Fixed SVG symbols placed with use ignoring preserveAspectRatio; they now keep their aspect ratio as the attribute specifies
- Fixed SVG stroke-dasharray lists with an odd count, a negative entry or a zero total, which are now drawn as SVG specifies
Version 4.64.69
Fixed
- Fixed remote PDF prefetch jobs that could leave callers waiting forever when an unexpected error stopped the prefetch thread; such jobs now finish as failed
Version 4.64.68
Fixed
- Fixed the DLL and dylib buffer allocation call crashing the host application when memory runs out; it now returns a null pointer
Version 4.64.67
Fixed
- Fixed mail delivery sending subjects and message bodies in the system code page; they are now sent as UTF-8, so non-English text arrives intact
Version 4.64.66
Fixed
- Fixed OAuth token refresh for cloud signing sending a JSON body; it now sends the standard form-encoded request that authorization servers accept
- Fixed PKCS#11 signing failing every later signature on the same token after one failed attempt, such as a mistyped key PIN; the session is now recovered automatically
- Fixed PKCS#11 login on 64-bit Linux and macOS rejecting valid PINs when the token does not report a maximum PIN length
Version 4.64.65
Fixed
- Fixed remote PDF probing on Windows reading the wrong response header as the content length, so file sizes are now detected from the HEAD response
- Fixed HTTP downloads for CRLs, OCSP responses, time stamps and remote PDFs returning a truncated body as success when the connection drops early
- Fixed byte-range reads of remote PDFs accepting partial responses whose Content-Range does not match the requested window
Version 4.64.64
Fixed
- Fixed the XFA FormCalc Round function rounding halves to even; it now rounds halves away from zero, so Round(2.5) returns 3
- Fixed XFA FormCalc Ltrim, Rtrim, Replace and At losing non-ANSI text and returning byte positions in Free Pascal builds
- Fixed XFA data containing character references beyond the Basic Multilingual Plane being re-escaped on save instead of decoded
Version 4.64.63
Fixed
- Fixed setting read-only, required or no-export on a form field without its own flags dropping flags inherited from its parent, such as multiline, comb or radio; reading field flags now also follows inheritance
- Fixed flattening or regenerating appearances with only-if-necessary redrawing existing check box and radio button appearances instead of keeping them
- Fixed setting the default value of a check box or radio button group changing which button is displayed as selected
- Fixed embedded file names of file attachment annotations losing non-ASCII characters; the Unicode file name entry is now preferred
- Fixed generated form field appearances painting empty border or background colour arrays as black or white instead of transparent
- Fixed reading a form field's text colour when the font name contains a colour operator letter, as with Georgia
- Fixed rebuilt annotation appearances drawing a border when the border width is zero
Version 4.64.62
Fixed
- Fixed validation reports leaving the rule, standard and clause empty for PDF/UA annotation, table, font and artifact findings
- Fixed Markdown image alternate text showing quotation marks as URL escapes; it is now escaped as text
Version 4.64.61
Fixed
- Fixed generated e-invoices ignoring the VAT category code given in the sixth line item field; it is now used instead of always deriving S or Z from the rate
- Fixed generated e-invoices rounding half cents to even and truncating quantities, unit prices and VAT rates to two decimals; amounts now round half up as EN 16931 expects and those values keep up to four decimals
- Fixed generated e-invoices adding a VAT exemption reason to IGIC and IPSI breakdowns, which business rules forbid
Version 4.64.60
Fixed
- Fixed memory corruption in QDF repair and QDF conversion that could make repeated repairs fail or crash with an access violation, most visibly in Free Pascal builds
Version 4.64.59
Fixed
- Fixed empty consecutive-width arrays in CIDFont W and W2 entries invalidating all metrics of the font; they are now accepted as supplying no overrides
- Fixed Type 3 character codes outside FirstChar and LastChar failing text measurement; they are measured with the descriptor's MissingWidth (zero by default) as the specification requires
- Fixed TrueType fonts with one damaged glyph outline failing to load; the damaged glyph is treated as empty and is still rejected wherever a glyph must be verified
- Fixed external Type 0 substitute fonts without a native CID charset or a supported bound collection raising during setup; their used codes now resolve to notdef and fail qualification
Version 4.64.58
Fixed
- Fixed ToUnicode CMaps whose dictionary UseCMap entry names a base CMap or stream that differs from the body usecmap name; the dictionary entry takes precedence again, so text extraction and replacement no longer reject such fonts
- Fixed CMaps whose names contain a '#' that is not followed by two hexadecimal digits; the character is kept literally instead of rejecting the CMap
- Fixed reflowed text boxes dropping the original text rise, so the first reflowed glyph now starts exactly at the matched text anchor
Version 4.64.57
Fixed
- Fixed saving JPEG images to a stream silently ignoring short writes; a write error is now raised when the target stream does not accept all image bytes
Version 4.64.56
Fixed
- Fixed RedactRegion treating Top as the lower edge under the bottom-left origin, so the removed area, black fill box and Redact annotation missed the requested region; Left and Top are again the upper-left corner of the region in every origin
- Fixed MergeFileListStrict producing no output when an input fails; the files before the first failing input are merged again, as documented
- Fixed the Enterprise form appearance audit reporting a field appearance as matched when its variable text is wrapped in marked content that carries /ActualText or a named property list
- Fixed form calculation scripts accepting an unsupported Math function inside a branch that is never evaluated
Version 4.64.55
Fixed
- Fixed the Win64 JPEG image class accepting truncated, negative or oversized serialized image lengths; corrupt data now raises a read error instead of loading an empty image or allocating huge buffers
- Fixed JPEG 2000 (JP2 and J2K) decoding failing with an unknown file type error for every valid image
- Fixed inline image externalization losing or corrupting the decode parameters of shared Flate images in Delphi builds
Version 4.64.54
Fixed
- Fixed documents encrypted for certificate recipients failing to open with the recipient's PFX file on Windows, which reported that no matching recipient was found because the ephemerally imported key could not decrypt the envelope
- Fixed PAdES (ETSI.CAdES.detached) signatures and legacy detached signatures with revocation information containing a duplicate content-type signed attribute, so strict validators now accept them and the signing-certificate check classifies them as B-B
- Fixed PDF/A preflight reporting an incomplete signature source audit when the interactive form dictionary is written directly inside the document catalog
- Fixed PDF/UA-2 compliance checks returning a passing score while reporting invalid or incomplete interactive form entries
Version 4.64.53
Fixed
- Fixed drawing HTML into a text box raising an exception when a table header and its first body line cannot fit at the top of the box; the whole table is now returned as left-over text and a diagnostic is reported
- Fixed images added from raw sample data reporting a zero width and height, so they can now be bound to and measured in HTML <img> elements
- Fixed paged HTML output drawing undeclared page-margin boxes, which added empty clipping operations to blank pages and inflated the drawn margin-box count
- Fixed native SVG raster snapshots omitting earlier page content layers stored as direct streams
Version 4.64.52
Fixed
- Fixed Aztec recognition rejecting standard-conforming Compact and Full-Range symbols, including symbols produced by the library's own Aztec generator, because the bullseye orientation marks were checked against the wrong pattern
Version 4.64.51
Fixed
- Fixed the C++Builder ExtractText demo, which could overwrite the input file when it lacked a
.pdfextension; it now extracts text from the loaded document instead of reopening the file for every page - Fixed the PdfToImage demos so direct-access renders size each page to about 528 pixels on the longest edge instead of using an inverted DPI formula, and pages that fail to render are reported
- Fixed the PdfDecrypt demos so they no longer save an output file when decryption fails
- Fixed the C# and VB.NET multi-function demos to report save and merge failures with the error code instead of opening a missing or stale file
- Fixed C++Builder lab scenarios to read command-line paths and passwords as Unicode, so non-ANSI file names and passwords work
- Fixed demo error messages that showed error code 0 after a failed call, and font and clipboard demos that described load failures with unreachable return values; they now report the library error code
- Fixed the C++Builder EmbedMissingFonts demo, which silently processed a generated sample when the requested input PDF was missing, and the Delphi version, which allowed embedding and saving without a loaded PDF
- Fixed the CreateWithImageToStream, ImageToPdf and AddTextImage demos to stop with an error when an image cannot be added, a merge fails or a page cannot be rendered, and to stamp only pages that exist
- Fixed the Lazarus ComplianceWorkbench reports so non-ANSI document titles and authors stay intact in JSON and CSV output
- Fixed the Delphi PdfToImage demos, which could crash when the window was closed during a conversion
Version 4.64.50
Fixed
- Fixed swapped red and blue channels when rendering JPEG and JPEG 2000 images in DeviceN color spaces
- Fixed color-key masked images (
/Maskcolor ranges) that left the wrong pixels transparent for CMYK images, bit depths other than 8, images with a/Decodearray, and with the Cairo renderer - Fixed
/Decodearrays being ignored when rendering uncompressed and losslessly compressed RGB, CMYK, DeviceN and Indexed images, such as inverted CMYK images; images with the default decode range render exactly as before - Fixed four-channel DeviceN JPEG and JPEG 2000 images with a CMYK alternate space being color-converted twice, which produced wrong colors
- Fixed color-key masks set on Indexed (palette) images, which previously wrote an invalid six-value
/Mask, and added color-key mask support for images with 1, 2, 4 and 16 bits per component
Version 4.64.49
Fixed
- Fixed JBIG2 generic refinement regions that use typical prediction (TPGRON): the typical-row flag is now decoded once per row with the correct context and predicted pixels apply only inside typical rows, so refined symbols and pages are no longer garbled
- Fixed a possible crash when a malformed JBIG2 symbol dictionary or text region refers to a symbol that does not exist
Version 4.64.48
Fixed
- Fixed pure ECDSA P-384 signature verification (used on non-Windows platforms and for EU trusted list signatures), which rejected valid secp384r1 signatures because of a wrong curve order constant
- Fixed the encryption fingerprint exported after opening a document with its user password, which previously carried a wrong key and produced unreadable files when used to re-encrypt another document
- Fixed
CheckPasswordso checking a password no longer alters the encryption key and permissions of an already opened document - Fixed 40-bit and 128-bit RC4 encryption combined with unencrypted metadata, which produced documents no reader could open; RC4 output now always encrypts metadata as the specification requires
- Fixed owner password recognition for RC4 documents with key lengths between 48 and 120 bits
- Fixed
DecryptFileon AES-256 documents that use unencrypted metadata, Identity or custom crypt filters, or per-stream crypt filters, which could previously produce damaged output; padding is now checked in full - Fixed AES-256 documents whose
/Permsintegrity check fails so they are rejected, and permissions are now taken from the protected/Permsvalue instead of a modified/Pentry - Fixed the time-stamp client to reject tokens whose messageImprint cannot be read instead of accepting them unchecked
- Fixed long-term signature validation so a signature is no longer accepted at an earlier proof time when the signer's certificate was revoked by a CRL for key compromise or CA compromise
Version 4.64.47
Fixed
- Fixed XHTML output from structured text extraction so it no longer contains XML-illegal control characters or unpaired surrogates and is always well-formed XML
- Fixed text positioning in the legacy text extractor: word spacing now applies only to the single-byte space code, horizontal scaling (
Tz) is honoured, and composite fonts use their CID widths, improving word breaks in extracted text
Version 4.64.46
Fixed
- Fixed OpenType fonts with CFF outlines so they are actually subset when embedded instead of always embedding the full font program; the subset font stream,
/CIDSetand font names are now written consistently, and the full program is kept when no glyph-preserving subsetter is available - Fixed subset CFF/OpenType fonts to use a subset tag derived from the glyphs they contain instead of a fixed tag, so different subsets of the same font no longer share one name
- Fixed symbolic TrueType fonts that only provide a (3,0) symbol cmap so their glyphs are resolved, and PDF/UA width and
.notdefchecks no longer miss glyphs or skip missing ones - Fixed embedded Type 1 fonts that declare
/lenIV -1(unencrypted charstrings), which previously produced empty glyphs - Fixed embedded Type 1 fonts whose encrypted section is stored as ASCII hex, which are now decoded correctly
- Fixed TrueType fonts with a version 2.5
posttable so their glyph names are available - Fixed TrueType fonts whose format 4 cmap has unordered or overlapping segments, which now load instead of failing, and characters in the final segment such as U+FFFD are no longer dropped
- Fixed ToUnicode CMaps generated for standard-encoded fonts to split their entries into blocks of at most 100 as the CMap format requires
Version 4.64.45
Fixed
- Fixed encryption and decryption of damaged files whose cross-reference data names negative or absurdly large object numbers or negative field widths; such files no longer corrupt memory or try to allocate gigabytes and now fall back to the regular processing path
- Fixed opening, reading and deleting pages in files whose page tree contains a
/Kidsor/Parentcycle, which previously crashed with a stack overflow - Fixed tiny compressed streams that declare an enormous predictor row width (
/Columns) so they no longer make the library allocate gigabytes of memory; regular streams decode exactly as before - Fixed an access violation when reading an object from a compressed object stream with a malformed header
- Fixed files whose cross-reference data can be read but whose trailer cannot, which now reach the repair logic instead of failing with an access violation
- Fixed cross-reference tables whose last subsection is very short and directly followed by the trailer, which previously lost that subsection's objects
- Fixed hybrid-reference files (ISO 32000-1 §7.5.8.4): objects stored in object streams now load correctly because free placeholders in the classic table no longer hide the compressed entries listed by the same revision's
/XRefStmstream
Version 4.64.44
Fixed
- Fixed PDF date generation for document information, annotations, signatures and embedded files so time zones west of UTC are written with a minus sign (for example
-05'00') instead of a plus sign - Fixed embedded file creation and modification dates: file times taken from the file system are now written as UTC with the
Zdesignator, and dates taken from the current clock are no longer shifted by the local offset a second time - Fixed embedded file dates on non-Windows platforms, which previously came from uninitialized file times and now use the current time
- Fixed generated PDF dates so the date and time parts come from a single clock reading and cannot straddle midnight
Version 4.64.43
Fixed
- Fixed TIFF floating-point sample converters (
PLConvertTIFFSampleFormatandPLConvertTIFFFloatSamples) to classify 16/32/64-bit IEEE-754NaNandInfinitybit patterns before floating-point evaluation so signalingNaNor infinite samples do not raise hardwareEInvalidOp/EOverflowexceptions, and replacedset of Bytesample-count checks to supportSamplesPerPixel > 255 - Fixed PDF Name Tree and Number Tree lookup and enumeration (
FindTreeValueandEnumNumTree) to inspect both localNames/Numsarrays andKidsarrays on hybrid intermediate nodes so entries are neither missed during lookup nor dropped duringNumTreeSetflattening - Fixed 2D barcode reader (
ReadPortable2D) to reset candidate attempt and triangle budgets before Aztec scanning and before the inverted-polarity pass so noisy QR candidates do not starve Aztec or inverted-barcode detection - Fixed XMP date conversion, MSXML packet loading, native XMP property removal, and
libxml2document parsing to format truncated ISO 32000-1 PDF dates (such asD:YYYYMMDDandD:YYYYMMDDHHmmZ) into valid ISO 8601 strings, clear cached document and standards properties before early return when/x:xmpmetais absent, prune emptiedrdf:Descriptionelements inNativeRemove, and freexmlDocPtrifTXMLDocument.Createfails - Fixed structural PDF comparison, Small Business modification analysis, and PNG ICC profile injection to include shallow referenced-object fingerprints and length-prefixed names/strings in
ObjectCanonicalForm, setLastErrorCodewhenCompareWithorAnalyzeModificationscannot open the baseline file, guardExtractDocumentRevisionagainst 64-bit stream offset truncation, and avoid mutating input PNG data inInjectPNGICCProfilewhen injection is skipped or fails
Version 4.64.42
Fixed
- Fixed PDF version detector to dereference indirect
/Permscatalog dictionaries when checking for/UR3usage-rights signatures and to detect top-level indirectFontFile3streams with/Subtype /OpenType - Fixed PDF/A implementation-limit, file-structure, and graphics auditors to parse
/WCID width pairs and triples without mistaking glyph widths for CIDs, ignore backslash line continuations and hex-string whitespace when checking string byte limits, locateendobjvia the lexer-aware object body scanner rather than raw byte substring searches, and skip comments and whitespace insideToUnicodeCMap streams - Fixed PDF/A regional transparency flattener to reject non-positive or non-finite
DPIvalues and snap vertical region bounds to the top-origin pixel grid used during regional compositing - Fixed PDF/E engineering validator and PDF/UA language auditor to inspect
PS,Form, andImageXObjects even when optional/Type /XObjectis omitted, verifyLastStreamDecodeStatuswhen decoding Form XObject streams, resolve named/Resources /Propertiesdictionaries onBDCmarked-content operators, and validate existing/Langtags on Widget annotations referenced viaOBJR - Fixed inline-image externalizer, PostScript string-file reader, and EPS bounding-box parser to purge temporary 1-element
DecodeParmswrapper arrays, protect directStringFilebuffers inBufferIsReadOnly, and continue scanning past%%BoundingBox: (atend)headers to read trailer bounding boxes
Version 4.64.41
Fixed
- Fixed DOCX and XLSX exporters to skip empty or zero-dimension images when writing
word/media/imageN.pngarchive entries, reject signed zero strings (-0,+0) as numeric XLSX cells, and exclude skipped repeated header rows when calculating vertical cell-merge spans across continuation pages - Fixed HTML/CSS
@font-faceand selector engines to honor backslash escapes and case-insensitive font-family matching insrcdescriptors, avoid emitting spuriousinvalid-page-areadiagnostics when a stylesheet was rejected earlier, support empty-string[attr|=""]attribute selectors, and validate:nth-child(...)argument syntax - Fixed text-to-path converter to validate operand types, font decoding, and glyph outlines for invisible text rendering modes (
Tr = 3and Type 3Tr = 7) while omitting painted Form XObject invocations, and skip creating unreferenced PDF streams for empty space glyphs - Fixed Windows GDI TrueType outline converter (
PDFlibTTFVector) and Uniscribe RTL detector (PLTextIsRTL) to guardgm.gmCellIncXand polygon bounds againstGDI_ERROR/res, support cubic BézierTT_PRIM_CSPLINErecords in CFF/OpenType fonts, and skip UTF-16 BOM, combining marks, and weak Arabic-Indic digits while recognizing strong LTR scripts aboveU+0900and explicitU+200E/U+200F/U+061Cdirection marks - Fixed TrueType Collection (TTC) face extractor, composite glyph validator, and external OpenType
cmapFormat 4 validator to recompute theheadtable directory checksum after zeroingcheckSumAdjustment, reject trailing bytes on zero-contour simple glyphs and out-of-range point-matching indices, and verify all Format 4 mapped GIDs againstmaxp.numGlyphsduring table validation
Version 4.64.40
Fixed
- Fixed Cloud Signature Consortium (CSC) client JSON parser and authorization state management to reject truncated JSON objects/arrays after the first member, invalidate cached credential metadata or prefetched SAD tokens when
ServiceURL,APIVersion,CredentialID, orOAuthTokenchanges, allow unpinned prefetched SAD tokens whenSCAL=1(FHashPinningRequired = False), enforce prefetchedNumSignaturesbatch limits, and catch custom transport exceptions inRefreshOAuthToken - Fixed Windows PKCS#12 / PFX public-key security store loader (
PDFlibPubSec) to import PFX credentials withPKCS12_NO_PERSIST_KEYandPKCS12_PREFER_CNG_KSPso ephemeral keys are not persisted on disk and CNG/KSP-backed certificates are discovered viaCERT_KEY_CONTEXT_PROP_IDandCERT_NCRYPT_KEY_HANDLE_PROP_ID - Fixed Enterprise audit evidence envelope canonicalizer and verifier to reject duplicate JSON object keys in canonical audit payloads, signed envelopes, and explicit trust policies
- Fixed POSIX non-blocking socket readiness polling and native HTTP response body callbacks so
WaitForrejectsPOLLNVALand write-waitPOLLERR/POLLHUPevents, and 0-byteReceiveBody/ReceiveHeadercallbacks at exact byte limits do not trigger false overflow errors - Fixed X.509 certificate DER structure validation, signature source audit read-budget clamping, and OpenSSL native CMS certificate/attribute encoding guards so trailing garbage in
TBSCertificateor outer signature fields and empty OpenSSL DER encodings are rejected
Version 4.64.39
Fixed
- Fixed OpenType variable font instantiator so CFF2
ifelse(12 22) comparesv1 <= v2and pushess1ors2per the Type 2 CharString specification,PLCFFReadNumberdecodes nibble-encoded real numbers (B0 = 30) instead of zeroing them, and composite variable glyphs honor theUSE_MY_METRICS($0200) component flag - Fixed CFF index and Type 2 CharString validators to enforce Top DICT
CIDCountupper bounds inReadCharsetandGlyphForCID, and reject implicit vertical stem operands onhintmask/cntrmaskoperators after explicitvstem/vstemhmdeclarations - Fixed CID horizontal/vertical metric parsers and content font metric calculators to reject empty
/Wand/W2sub-arrays, guardTPDFCIDMetricSources.UnchangedagainstNaN/Infinitevalues before equality comparison, verifyState.FontObjectNumberwhen resolving un-scoped font resource names across nested Form XObjects, and useTryDecodeCompositeTextwith.notdefCID fallback inMeasureTextCodes - Fixed Unicode CMap parser and text reflow planner to enforce per-byte monotonicity on
beginbfrangesource bounds, detect overlapping same-widthcodespacerangeintervals, and avoid consuming explicit newline clusters after skipping trailing soft-wrap spaces - Fixed background render job state machine and SVG image resource validator to synchronize
TPDFlibRenderJob.Startand re-wait onFPauseGateif paused during worker startup, enforce PNGPLTE/tRNS/iCCPchunk ordering rules, and reject multi-$FFfill prefixes before byte-stuffed$FF $00literals in JPEG entropy scans
Version 4.64.38
Fixed
- Fixed structured text, table, Markdown, XHTML, and RTF exporters to avoid duplicate image blocks on image-only pages, resolve covered trailing table columns to their anchor column, propagate inferred vertical-merge
RowSpancounts across covered cells for DOCX<w:vMerge/>output, keep<Lbl>and<LBody>inside the same<LI>list item, skip empty/ActualText-suppressed spans when joining line/cell text, and defer page-level images until open cross-page tables close - Fixed semantic resource deduplicator to propagate recursion depth across
HashIndirectObjectcalls so deep indirect-reference chains honor the depth guard, and verify reverse dictionary key existence on target streams inSemanticEqualCore - Fixed tagged form-field flattener to update number-tree
/Limits[min max]bounds in both/Numsand/Kidsbranches and fall back to generating a structure element when a field's existing/StructParententry does not resolve to a validOBJR - Fixed multi-column text flow line breaker so an oversized first word preceded by leading spaces breaks inside the word rather than emitting a spurious blank line first
- Fixed text extraction funnel to use inclusive boundary comparisons in
TrimCharsOutsideAreaand normalize rotated coordinates beforeFMatchdistance checks andDXoffsetsscaling whenFNormalizeRotationis active - Fixed native OCR deskew angle direction and scan-border preprocessor so inverse rotation counter-rotates by
-BestAnglerather than doubling the skew angle, and left/right dark-border ratio checks exclude rows already whitened during top/bottom border removal - Fixed annotation geometry hit-testing to expand the early bounding-box guard by half the border width (
Reach) and compute directional ellipse tolerance for non-circular/Circleannotations
Version 4.64.37
Fixed
- Fixed LDAP BER
SearchResultEntryparser to validate nestedobjectName,PartialAttribute, and attribute value set boundaries against parent container limits - Fixed linearized PDF URL access-plan builder to validate non-negative primary hint stream offsets (
/H [H1 H2]), guard against 64-bit addition overflow, and clamp range ends toTotalSize - Fixed SASLprep (RFC 3454 / RFC 4013) password profile so
U+200B(Zero Width Space) is removed per Table B.1 instead of being mapped toU+0020as a non-ASCII space - Fixed PKCS#11 session discovery and algorithm negotiation to verify
CKM_EDDSAmechanism support forCKK_EC_EDWARDSkeys and constrainSupportsAlgorithmtoPL_EXTERNAL_SIGNATURE_EDDSA - Fixed PDF MAC (ISO 32004) revision chain scanner to advance past
/MACLocationwhen no subsequent/MACkey exists instead of matching unrelated hex strings - Fixed JBIG2 stream decoder to free segment and sub-decoder instances on
resetDecoder, mask segment header bit 7 with$80instead of decimal80, and reject non-positive symbol dictionarydeltaHeight/symbolWidthvalues - Fixed BigTIFF and classic multi-page TIFF processing to detect mixed-channel
BitsPerSamplearrays and out-of-bounds external tag offsets inNeedsClassicAdapterand shift multi-elementSHORT(DataType = 3)StripOffsetsinTDLTIFFScissors.ShiftOffsets - Fixed QDF conversion and repair to free decoded temporary
TPDFObject/Trailertrees and fixedTPDFEditJournalto roll backFAppendOffsetif cursor record persistence fails
Version 4.64.36
Fixed
- Fixed Arlington PDF model validator to resolve chained
TPDFIndRefobjects safely, treatnulldictionary entries as absent per ISO 32000-1/2 §7.3.7, and unwrap outer version predicates (fn:SinceVersion,fn:BeforeVersion,fn:IsPDFVersion,fn:Deprecated,fn:Extension) before evaluating nestedfn:RequiredValue,fn:DefaultValue, andfn:Evalconstraints - Fixed validation report serializer so
ParseOccurrencesextracts the trailing parenthesized occurrence count rather than earlier numeric groups in the message text, reportsissueCount="0"whenChecked = False, and omits empty<coverage>XML elements - Fixed Enterprise PDF/A conversion action sanitizer to strip all
/Aactions from Widget annotations and form fields per ISO 19005-1/2, traverse/Nextaction chains, and sanitize direct dictionary entries in/Annotsand/Fieldsarrays - Fixed Enterprise interactive form schema and appearance-stream auditors to honor inherited
/Optchoice arrays on terminal fields per ISO 32000-1 Table 231 and acceptBDC(coBeginMarkedProps) marked-content sequences inside form field appearances - Fixed Enterprise PAdES LTV and Signature Time-Stamp process lifecycle management to verify list membership before dereferencing process handles and clear
FIntCastsslots upon release - Fixed PDF/A color, XMP date, and PDF/VT validators to flag default
DeviceGraytext-showing operators (Tj,TJ,',") when no fill color has been set, validate all elements of/BMblend-mode arrays, reject invalid calendar dates and malformed PDF date timezone suffixes during Info/XMP comparison, and resolve indirect references while rejecting streams inside PDF/VT/DPMdictionaries
Version 4.64.35
Fixed
- Fixed PostScript/EPS interpreter to preserve literal
%characters inside top-level(...)strings without treating them as comments and to resetPathHead := -1afterrectclipper the PostScript Language Reference Manual - Fixed SVG page exporter to scale
stroke-dasharrayandstroke-dashoffsetby the CTM stroke scale when path coordinates are pre-transformed, fall back to full-page bounds during local raster fallback when no path/XObject/clip bounds are active, and block unsafejavascript:,vbscript:, anddata:link schemes - Fixed Markdown-to-HTML converter to evaluate and strip leading
>blockquote prefixes before fenced code block detection so top-level fences close preceding blockquotes and fenced code blocks inside blockquotes render properly - Fixed PDF resource optimizer and deduplicator to preserve page-level transparency group (
/Group /CS) color space dependencies, avoid treating named/Indexedor/Iresource dictionary entries as standalone built-in color spaces, and report image-only candidate counts incandidateImages - Fixed CSS
@pagevertical margin boxes (@left-*,@right-*) to apply explicitwidth,min-width, andmax-widthconstraints before measuring wrapped text height - Fixed PDF object-graph JSON serializer/deserializer to emit
nullfor non-finite numeric values and null trailers and reject overflowed non-exponent decimal numbers on import, and fixed PDF/VT DPart hierarchy validation to resolve indirect objects and acceptnullinside/DPMmetadata while rejecting non-array/DPartsand interior-node/Endkeys
Version 4.64.34
Fixed
- Fixed content-stream recoloring processor to initialize default fill and stroke color spaces to
DeviceGrayper ISO 32000-1 Table 52 so initialsc/SC/scn/SCNoperators are properly converted - Fixed Aztec, Data Matrix, and Code 128 barcode decoders to preserve prior latch state across shifted Aztec Binary Shift (
B/S) sequences, apply implicit Data Matrix EDIFACT unlatch when 1 or 2 codewords remain without misinterpreting ASCII{(124), stop Data Matrix rotation trials once a bounding box decodes, and support Code 128 single-characterSHIFT(code 98) and full 7-element stop-pattern bounding boxes - Fixed CCITT Group 3 1D and 2D encoders to emit scanline
EOLprefixes, periodic 1D reference lines everyKrows in Group 3 2D mode, and 6-EOLReturn-to-Control (RTC) sequences at page end per ITU-T T.4 - Fixed GIF encoder
Assignto avoid mutating the caller's source bitmapPixelFormatin place and to zero-initialize the 256-entry palette buffer before reading quantized palette entries - Fixed SVG filter
feTurbulencetile stitching for multi-period negative and positive coordinates andfeConvolveMatrixsampling to read directly from the input image overSourceRegionwithout collapsing normalizedobjectBoundingBoxcoordinates
Version 4.64.33
Fixed
- Fixed math formula parser and layout engine so unbraced single-character script/command operands do not greedily consume multi-character words, multi-character runs stop before an attached superscript/subscript operator, and math font styles (
\mathbb,\mathcal,\mathfrak,\mathbf,\mathsf,\mathtt) propagate through nested child nodes - Fixed multilingual hyphenation under Free Pascal/Lazarus by encoding non-ASCII vowel sets and language prefixes/suffixes as explicit
#$XXXXwide-character literals instead of raw UTF-8 string literals and skipping combining marks during syllable counting - Fixed Unicode text search-and-replace reflow so multi-instruction matches preserve secondary operand deletions when replacing with empty text and reset text rise (
0 Ts) alongside character/word spacing and horizontal scaling - Fixed CFF and OpenType-SVG glyph rendering so CID-keyed and named CFF glyphs resolve through CID and charset mappings when
GID:indices are absent, and SVG glyph subpaths without drawable geometry do not fill stale canvas paths - Fixed COLRv1 skew paint matrix evaluation, OpenType fallback GSUB multi-glyph length tracking, null-offset guards, RTL combining-mark cluster reversal,
postv2.0 string bounds checks, and vertical GSUB fallback from emptyvrt2features tovert - Fixed AcroForm/XFA script evaluation so
NaNcomparisons return false under IEEE 754 semantics, non-XFA mode preserves strict equality (===/!==) and lexicographical string ordering, and expression parsing avoids double-charging the XFA value-character budget
Version 4.64.32
Fixed
- Fixed cross-algorithm signature OID and public key family verification in detached CMS and X.509 certificate path validation so RSA, ECDSA, and SM2 keys only accept matching signature algorithms and digest pairings
- Fixed pure-Pascal CRL revocation checking to enforce thisUpdate and nextUpdate validity windows and reject CRLs carrying unhandled critical extensions, and required single-valued content-type and message-digest attributes in CMS SignedAttributes
- Fixed RFC 3161 time-stamp token verification to validate TSTInfo serialNumber, genTime, and messageImprint digest algorithm and hash bytes against the request, and enforced curve-order upper bounds for Brainpool ECDSA private keys and nonces
- Fixed XML Exclusive C14N single-quoted attribute parsing and RSA-PSS key type validation in EU Trusted List verification
- Fixed PDF/X inherited page resource auditing and indirect object dereferencing, PDF/VCR XMP tag boundary matching and template root identity checks, PDF/A-4 unprefixed ActualText validation, PDF/UA-2 multi-level EmbeddedFiles name-tree scanning, PDF/R-1 inherited signature field types, and DocMDP unaligned revision handling
Version 4.64.31
Fixed
- Fixed 64-bit pointer truncation and VARIANT type mismatches in VC++ and C# ActiveX/DLL sample wrappers when passing device contexts, floating-point rendering DPI values, and password-protected file parameters
- Fixed RichEdit format-range message dispatch in C++Builder rich-text rendering scenarios so 64-bit pointer addresses are passed intact without 32-bit integer cast truncation
- Fixed custom output directory creation in C++Builder laboratory scenarios and removed redundant initial page creation calls across Delphi, Lazarus, and C++Builder sample programs
- Fixed fixed-size enumeration buffer clamping for attachments, outlines, named destinations, and certificates in sample scenarios, and corrected Factur-X XML tag closure and coordinate origin handling in compliance and rendering demos
- Fixed JBIG2 encoder sample registration, opt-in physical printer execution guards, and benchmark timing loops across multi-language demonstration suites
Version 4.64.30
Fixed
- Shading pattern dictionaries missing or carrying malformed
/Coordsarrays no longer mark axial or radial shadings as valid with uninitialized coordinates, and/ICCBasedshading colour spaces whose/Alternateentry is an array (such as[/CalRGB ...]or[/Lab ...]) now resolve component counts reliably before falling back to/Nor the ICC header - Portable ICC LUT parsing now guards 32-bit curve, matrix, and CLUT offsets against signed integer overflow, supports non-RGB destination profiles (such as CMYK soft-proofing) in the pure-Pascal fallback, initializes CIE D50 white point defaults in
/Labcolour spaces when/WhitePointis absent, and prevents fast-path/DeviceNcache entries from returning empty PostScript colour operators to full callers - Image component addition, bit-depth conversion, palette application, and rescaling now verify target buffer dimensions before copying rows, serpentine Floyd-Steinberg dithering aligns forward and reverse error-diffusion scanlines without a one-pixel horizontal shift, and PNG reading/writing ignores empty
tRNSchunks, prevents 32-bit shift overflow ingAMA/cHRMchunks, and omits forbiddentRNSchunks on RGBA images with an alpha mask - SM2 public-key derivation and signing now reject private keys equal to
n - 1per GB/T 32918, empty-string MD5 hashing and negative DER length encoding guard their buffer bounds,TPDFlibViewerPanelclears its viewer reference viaFreeNotificationwhen the viewer is destroyed,TPDFlibViewer.SetScreenDPIinvalidates the disk cache and restarts the prefetcher at the new DPI, CDO mail delivery appliesAttachmentDisplayNameto attachment headers, ActiveX DC rendering zero-extends 32-bit GDI handles on 64-bit Windows, macOS Dylib exportsDLSetPDFiumFileName, and DLL default-instance creation at handle0no longer consumes handle1
Version 4.64.29
Fixed
- Fixed physical redaction of nested Form XObject and Image XObject resources so shared sub-streams on other pages or placements are cloned rather than mutated in place, and guarded multi-widget form field deletion against shifted page annotation indices
- Removed the 64-cell per-line cap in semantic auto-tagging and preserved multi-line paragraph text concatenation across consecutive paragraph lines
- Prevented optional-content layer flattening from stripping /OC entries off uncloned Form or Image XObjects when evaluated inside a hidden parent marked-content sequence
- Hardened PDF/UA-1 and PDF/UA-2 compliance auditing with Nil ResultList guards, cyclic NumberTree depth protection, non-empty TH /ID and TD /Headers validation, PDF/UA-2 reused-MCID Form XObject detection (rule 10083), and deduplicated /Lang error counts
- Improved e-invoice XML entity decoding (supplementary plane surrogate pairs and strict numeric entity validation), DOCTYPE comment/PI skipping, and currency-matched TaxTotal selection in CII and UBL BR-CO-14/BR-CO-15 rules
- Updated signature /Contents hex range scanning to locate the latest incremental object revision and verify encryption passwords before constructing TSmartPDFDocument in PAdES DSS processing
- Set explicit unavailable or exceeded state in workflow preflight pixel estimation when document snapshots are empty or exceed the inspection budget, and improved PDF/VCR-1 MCID placeholder replacement across PDF comments and non-TJ bracket arrays
Version 4.64.28
Fixed
- Fixed annotation property mutations (
RemoveAnnotAction,SetBorderColor,SetBorderColorCMYK,SetBorderStyle,SetContents, andSetMarkupAnnotStyle) leaving stale cached annotation properties, and preventedSetAnnotStrPropertywith tag134(JavaScript action) from freeing an indirect/Aaction dictionary or failing when/Ais not yet present - Fixed annotation appearance source hashing (
AnnotationSourceHash) so indirect dictionary entries such as/BSare dereferenced before hashing and/RepeatOverlaychanges invalidate stale appearance streams - Fixed dataset table export (
ExportDataSet) skipping the repeated header row on page 2 when page 1 only fit the header row, and fixedDrawRowsInternalso fixed-height aligned cells measure with the same alignment prefix asMeasureRowsand zero-height rows still advanceFLastDrawnRow - Fixed SVG rendering of
<textPath>runs (preventing empty or unresolved<textPath>nodes from falling through to linear<tspan>rendering and aligningMeasureTextRunfont weight/encoding withDrawTextRun), eliminated graphics state operators (q,cm,Q) inside<clipPath>path construction sequences per ISO 32000-1 §8.2, and fixedfeMorphologysingle-axis radius handling andInputDomainresolution forSourceGraphic/SourceAlpha - Fixed AcroForm field inheritance and option handling (
GetInheritableValueindirect reference resolution,SetDingbatsFontmutating shared/inherited/DAstrings in place, indirect/APand/Optelement dereferencing inGetSubNames/GetDisplayNames/DeleteSubName, andAddSubmitAction/GetSubmitActionStringsupport for/AAtrigger events)
Version 4.64.27
Fixed
- Updated 64-bit pointer-to-integer casts in the Delphi AddFormattedTitle scenario, synchronized 64-bit IntPtr HDC P/Invoke delegates across all C# DLL wrapper headers, and updated the VC++ ActiveX import header and implementation to preserve 64-bit HDC handles and floating-point DPI values
- Corrected the 7-argument AddLinkToEmbeddedFile convenience overload in the C# and VC++ ActiveX wrappers to forward the icon type selector and default 100% transparency in the proper parameter slots
- Added a WideString overload to TFile.WriteAllText in the Free Pascal IOUtils compatibility shim and removed lossy ANSI string casts when writing UTF-8 preflight reports in the Lazarus EnterpriseLab demo
- Improved relative DLL and sample PDF discovery across C# DLL and ActiveX WinForms demos, guarded document cleanup and post-merge ShellExecute launches on error paths, and checked OpenDialog cancellation in the Delphi PdfEncrypt scenario
- Ported the C++Builder ImageLab EMFImportOptions scenario from Pascal to native C++ and unified command-line help and output-path handling across the Delphi, Lazarus, and C++Builder Showcase demos
- Added an explicit FPC-only guard to the WinEMF compatibility unit and removed unused static Win32 kernel32/ws2_32 import declarations from MsvcCppExports so Free Pascal binaries do not emit unnecessary DLL import table entries
Version 4.64.26
Fixed
- Normalized coordinate origin and painter state preservation in image and vector shape watermark templates so preset nine-point anchors align accurately regardless of caller coordinate origin, and honored rotation angles on vector shape watermarks
- Tightened structural page-tree leaf counting to verify leaf dictionary types and extended color-space structural audits to inspect direct page and form resource dictionaries without double-counting indirect resource references
- Added ISO 32000-1 §7.10.3 validation for Type 2 exponential interpolation functions to reject malformed Domain/Range pairs, non-scalar input domains, mismatched C0/C1 endpoint array lengths, and non-finite exponents
- Validated coordinate system type selectors before mutating geospatial /Type entries and updated reverse geographic-to-page coordinate projection to evaluate all GEO viewports on a page and select the viewport whose bounding box contains the projected point
- Eliminated redundant traversal of direct page dictionary entries during incremental data-availability analysis so inherited page attribute checks only walk ancestor nodes when the attribute is absent on the leaf page
- Enhanced CxF/X-4 spectral spot-color XML attribute extraction to accept arbitrary XML whitespace around attribute names and equals signs and decode XML character and named entities in attribute values
Version 4.64.25
Fixed
- Fixed CMS/PKCS#7 signature verification and signer certificate inspection by accepting certificate sets regardless of DER element ordering, preserving the leaf certificate in external certificate bundle chains, and adding pure-Pascal signer certificate extraction when platform CryptoAPI decoding is unavailable
- Fixed AES-256 string encryption and Windows CryptoAPI bindings by checking CSPRNG IV generation and cipher output before prepending the IV, and removing conditional preprocessor guards around CertGetIntendedKeyUsage
- Fixed XFA and AcroForm field processing by clearing cached FormCalc/JavaScript DOM wrappers when XML trees are freed or adopted, freeing XFA instances on initialization failure, guarding empty /Kids arrays, and dereferencing indirect /AA dictionaries in submit and reset actions
- Enhanced Factur-X CII and UBL 2.1 e-invoice XML generation to emit PaymentMeansCode and PaymentIBAN settlement elements and support an arbitrary number of distinct VAT category/rate groups
- Fixed PDF/A and PDF/UA-1 compliance preflight by honoring the stop-on-first-failure option across all colour-space audit rules and reporting 10062 whenever structure-element or marked-content /Lang tags violate BCP 47 syntax
- Fixed Windows HTTP byte-range requests, OCR PNG rotation, and Small Business batch text comparison by guarding 64-bit range offsets and response caps, eliminating duplicate PNG decoding on 0-degree rotation, and returning structured JSON errors when batch comparison output limits are reached
Version 4.64.24
Fixed
- Fixed page rendering of recursive Form XObjects by reverting the in-recursion flag on early return paths when XObject streams or group transparency stacks are absent, preventing child Form XObjects from being skipped on subsequent invocations
- Fixed Cairo, GDI+, and VCL canvas rendering for Lab colors, path fills, and dash arrays by returning RGB color components in the expected 0..1 range, keeping the GDI+ path object alive across combined fill-and-stroke calls, and guarding against non-positive dash cycle lengths
- Fixed JBIG2 MMR generic region decoding, CCITT Group 3/4 decompression, and inline image stream scanning by rejecting out-of-range MMR codewords, validating reference line bit offsets, and honoring real PDF operator delimiters when locating the EI token
- Improved TIFF and JPEG 2000 image processing by converting arbitrary pixel formats to 1-bit monochrome before CCITT G4 compression, bounding OpenJPEG resolution reduction levels, and handling 3-channel and 4-channel subsampled YCC components safely
- Fixed Type 4/5/6/7 mesh shading and 2D barcode (Aztec, QR Code, PDF417) edge cases by enforcing complete vertex bit reads, rejecting degenerate or self-referential tensor patches, preserving high-byte Aztec binary payloads, and clamping QR and PDF417 symbol dimensions
- Fixed EMF/WMF metafile import and multi-copy Windows printing by bounds-checking custom dash, gradient triangle, and poly-draw records, preserving asymmetric brush hatch DPI scaling, and guarding collated page range sequences when StartPage > EndPage
Version 4.64.23
Fixed
- Subsetted font
ToUnicodeCMap generation (TPDFFont.NewSubsettedFont), kerning pair insertion (SetKernAmount), and font encoding and width bounds (GetSubsetString,SetCharWidth,NewSubsettedTrueTypeFont) extract 4-digit hexadecimal Unicode code points starting at character index 7 ofPDFlibXXXXglyph names instead of index 9, insert new kerning pairs at the first sorted position (or append at the tail when larger than all existing pairs), clamp/Differencesoffsets to0..255, guardSetCharWidthagainst out-of-range character codes, guard emptyGetTextFaceresults, and checkCIDKeepCodesbounds before indexingGIDCodes - Type 1 font dictionary and eexec charstring parsing (
TPDFType1Font) and Type 0/Type 3 font rasterizer CMap and inline image handling (TPDFFontCollection,TPDFType3Font) guard/Encodingarray indices to0..255and increment sequential glyph slots, prevent out-of-bounds string reads at the end of%comments, unclosed(string literals, and truncated/lenIVor/CharStringstoken streams, widenDecodeCIDToGIDMaploop counters to 32-bitIntegerso full 65,536-entryCIDToGIDMapstreams do not wrap a 16-bitWordcounter, terminate malformedbeginbfcharCMap blocks missingendbfcharandendcmap, includeTokPosin the Type 3 inline image cache key so glyphs with multipleBI..EIblocks render every image, and tokenize single-character trailing operators atTokPos = MaxLen ToUnicodeCMap zero-origin range lookup (TPDFlibCMap.GetValue), fallback space character mapping in text extraction (TPDFExtractor), fixed-grid text funnel row placement (CreateFixedGridText), and HTML inline extra style accumulation (SetStyleExtra) resolvebeginbfrangeentries whose starting target is<0000>, synchronizeDisplayCSW[255]withCharMap[255]when synthetic space slot 255 is assigned, clampAtColandRowLentoLength(RowBuf), and append new<ExtraType>tags toFStyleExtrainstead of overwriting prior style attributes
Version 4.64.22
Fixed
- Page content layer prepending (
PrependContentLayer), page tree lookup caching (GetPage,NewPages,ForgetPages,ResourcesDict), and sticky-note annotation appearance generation (AddNoteAnnotation) preserve indirect/Contentsstream references and shift the active 1-based layer index when inserting underlay streams, synchronize cachedFPagePointer,FPagePointerArray, andFParentNodereferences and walk multi-level ancestor/Resourcesdictionaries across deep page trees, and initialize dedicated/Resourcesand/ExtGStatedictionaries for sticky-note normal appearances - Document object ownership cleanup, document merging after object deletion (
TPDFDocument.Merge), shared content layer separation (RemoveSharedLayers), and document compacting and reloading (Compact,Reload) remove temporaryTPDFObjectinstances fromTPDFStructureowner lists instead of leaving dangling pointers on free, bound merged object number offsets byFMaxObjNumso freed object numbers are not reused prematurely, inspect and unshare page 1 content streams inRemoveSharedLayers, decode unparsed indirect objects beforeRecode, and release structure trees, role maps, namespaces, object streams, and source streams while preserving passwords and temporary spool paths acrossReload - PDF dictionary key renaming (
TPDFDictionary.RenameKey), multi-node name tree insertion (TPDFNameTree.AddKey), strict and standard XRef table parsing (ReadStrictXRefTable,ReadXRefTable), and revision boundary mapping (TPLRevisionMap) replace renamed dictionary keys without mutating shared predefinedTPDFNamesingletons, preserve existing leaf/Limitsarrays when searching multi-node name trees, guard 64-bit subsection byte counts and execute hybrid/XRefStmand/Prevrecursion once outside the trailer decode retry loop, and report failed offset-0 XRef probes as negative positions while keeping revision start offsets contiguous - Content stream peephole path optimization (
RemoveNoopPaths), option-900 text/graphics stream splitting (TPDFContentStreamTextSplitter), content model text matrix and bounding-box tracking (GetTextRuns,FindInstructionsInRect), PDF linearization (TDLLinearizer), and direct-access page extraction and incremental updates (TSmartPDFDocument.ExtractObjects,WriteNewObjects) advance past the terminating painting operator when a path is interrupted by non-path operators, strip orphaned resource names beforeCSstroke color-space operators, pre-multiplyTd,TD,T*,', and"translations onto the text line matrix and scale hit-test bounds by the text matrix, purge stale/XRefStmand/Prevkeys from linearized first-page trailers, and copy inherited page attributes (/Resources,/MediaBox,/CropBox,/Rotate) before re-parenting extracted pages
Version 4.64.21
Fixed
- TrueType font table parsing (
name,vhea,vmtx), ToUnicode and CID CMap parsing, Adobe Glyph List (AGL) 2.0 glyph-name validation, TrueType CID font subsetting and width lookup, content-stream text extraction, and dataset table export enforce stream bounds and decode UTF-16BE Windows/Unicode full font names innametables, read unsignedadvanceHeightMaxvalues and clampnumberOfVMetricstoGlyphCountin vertical metrics tables, increment only the trailing UTF-16 code unit across multi-unitbfrangesurrogate pairs while accepting single-byte<XX>targets and guarding premature]tokens in CMap arrays, validate composite_ligatures,.variant suffixes,uniXXXX, anduXXXXXnames in AGL checks while rejecting surrogate code points, guardCharWidthbounds and purge stale/Wentries before subset re-embedding, process'and"text-showing operators and emit#RRGGBBcolor strings in text extraction, and preserve caller text styling and closed dataset safety during dataset table export - TIFF directory entry offset bounds, PNG calibrated color space chromaticity validation, soft-mask matte validation cleanup, 16-bit
DeviceNbitmap decoding, EMF/WMF metafile import (arc/pie radii, BiDi glyph swapping, text font selection, and viewport/window scaling), and XObject form and alternate image rendering use 64-bit byte-count multiplication and reject negative 32-bit offsets in TIFFPopDE, guard zero chromaticity denominators in PNG/CalRGB//CalGraydictionaries and short ICC profile headers in TIFF imports, free temporary matte arrays when soft-mask validation fails, consume both bytes of 16-bitDeviceNsamples and release decoded streams deterministically, preserve vertical ellipse radii andWinExtX/WinExtYscaling in EMF playback, bindTPDFStreamalternate images during high-DPI rendering, and guard short/BBoxand/Ddash arrays - PDF 2.0
/PieceInfo /ISO_PDFE1declaration dictionaries, text-markup annotation/QuadPointsaccessors, 8-bitRawandSignedsound annotation WAV export, page content redaction coordinate normalization, inline image/Lengthand/Lboundary proofs, EN 16931 UBL and CII e-invoicing validation, AcroForm field appearance and/MaxLenupdates, and XFA repeating subform and relative data binding dereference indirect/PieceInfoand declaration sub-dictionaries and release empty declaration dictionaries, reject non-positiveQuadNumberand out-of-rangePointNumbervalues inGetAnnotQuadPointsandSetAnnotQuadPoints, export 8-bitRawandSignedsound annotations as unsigned 8-bit PCM WAV data, normalize redaction rectangles across all four coordinate origins (SetOrigin(0..3)), anchor inline image declared lengths at the first post-IDbyte before skipping ASCII filter whitespace, include CIIram:RoundingAmount(BT-114) inBR-CO-16and enforce missing line VAT rate checks (BR-*-05) and CIIAF/AGbreakdown rules (BR-AF-09,BR-AG-09), guard nilFormreferences andSetMaxLen(0)in AcroForm fields while normalizing XP checkbox fill colors, and expand repeating XFA subform occurrences and relative$/$.fieldbindings - PDF date generation and parsing, AcroForm default appearance (
/DA) parsing, page-range keyword expansion, Windows certificate store enumeration and PFX loading, PAdES signature policySM3OID encoding, document timestamp (ETSI.RFC3161) permission andByteRangehandling, and C# and VC++ DLL wrapper samples includeStandardBiasin standard-time PDF date offsets, read full 4-digit years and clamp leap second60inPLParsePDFDate, recognize lowercaseggrayscale operators and reset operand stacks after operators inPLParseDefaultAppearance, preserve descending page order on reverse keyword ranges (such asLAST-FIRST) and single-page tokens inPLExpandRangeKeywords, clear stale certificate handles before reopening stores and strip trailing wide nulls from certificate friendly names, encodeSM3OID1.2.156.10197.1.401in signature policy attributes, passIsDocTimeStampto permission validation and populateByteRangeafter timestamp signing, and fixGetCanvasDCExsyntax, floating-pointDPIsignatures in VC++ wrappers, and duplicateRemoveDocumentcalls in C#ImagesToPDF
Version 4.64.20
Fixed
- Prevent stale image and extraction handles after incremental saves while preserving the document handle and current page
- Keep continued edits and undo history recoverable after reopening a journal with an incomplete or damaged tail
- Preserve distinct DOCX hyperlink targets that differ in URL path or query case
- Preserve image size and placement in HTML exports, including rotated and skewed images
- Keep text extraction options stable during background work and cancel the Delphi task safely when its window closes
- Preserve existing extracted images when output names collide across files or repeated runs
- Use a securely generated nonempty owner password in permission-only examples while keeping password-free opening
Version 4.64.19
Fixed
- Text stamps, image stamps and page overlays apply the requested opacity consistently, including fully transparent output and opaque output over an existing transparency state
- Text stamps retain the selected font size, color and text styling on every page and restore the caller drawing state
- Text watermarks accept existing font handles, measure their text for preset anchors, and restore the original page, origin, font and drawing state
- Annotation inspector examples stop with a clear error for repeated outline nodes and excessive outline depth or count instead of looping indefinitely
- DOCX hyperlinks preserve non-ASCII destinations and literal entity spellings in relationship targets
Version 4.64.18
Fixed
- OpenType vertical substitution (
GSUB) and layout shaping, TrueTypeglyfvector outline parsing, Type 1 PostScript font decoding, text extraction line clustering, text-to-path conversion, and Windows Uniscribe shaping honor explicitStartCoverageIndexvalues and unsigned 16-bit modulo deltas inGSUBCoverage Format 2 and SingleSubst Format 1 tables, sort contextual substitution lookup records by descending sequence index before splicing glyph arrays, guard negative point counts and zero contours in TrueType glyph headers, skip%comments inside Type 1/Subrsarrays and enforce charstring recursion limits, avoid merging overlapping column text fragments into a single line, preserve custom/Encodingdifferences and Type 3 color masks during text-to-path conversion, and release all Uniscribe script caches on failure - DataMatrix, QR Code, Aztec, and PDF417 2D barcode encoding and decoding, Floyd-Steinberg and ordered dithering, animated GIF frame disposal, BigTIFF and classic TIFF normalization, CCITT Group 3/4 fax decoding, and JPEG 2000 box parsing unlatch single trailing digits cleanly in DataMatrix C40/Text modes and emit UTF-8 ECI headers for non-Latin-1 QR Code payloads, validate UTF-8 byte sequences under DataMatrix ECI 26 and guard Aztec bit-stuffing boundaries, handle 13-digit numeric remainders in PDF417 numeric compaction, allocate 256-entry palette arrays on 64-bit targets in dithering helpers, restore transparent background pixels on GIF disposal method 2, validate exact PackBits strip lengths and planar separate sample tags in TIFF normalizers, reject out-of-range CCITT horizontal run pairs, and enforce box boundary limits in JPEG 2000
colrandcdefparsers - Cross-reference stream decoding and full-file XRef reconstruction, PDF linearization, direct-access (
DA*) page and annotation mutation, tagged structure flattening, resource deduplication and pruning, XLSX table export, PDF/VT-1 compliance verification, and JSON document export decode 8-byte 64-bit XRef stream fields without truncation and prefer catalog dictionaries with valid/Pagesentries while rejecting encrypted streams during XRef rebuilds, release temporary streams when linearization aborts, rebind direct-access page references after balancing page trees, preserve inherited page attributes when flattening parent tree entries, clear cached page renderers when pruning unused resources, retain trailing-dot list markers and leading-plus phone strings as text cells in XLSX export, allow single-page leafDPartranges (/Start = /End) per ISO 16612-2 §6.5.3, and skip nil dictionary keys in JSON serialization - PAdES long-term validation (
LTV) material ingestion, X.509 certificate chain self-issued detection, non-Windows CryptoAPI stubs, built-in native OCR and orientation detection, DLL and Dylib instance/buffer runtime tables, 64-bit WindowsHDCDLL exports, and Delphi and C# sample projects validate downloaded CRL and certificate DER payloads and suppress superseded OCSP warnings when fallback CRLs succeed, compare Authority and Subject Key Identifiers inPLIsSelfIssuedso CA key-rollover certificates are not treated as self-issued roots, return standard failure booleans from non-Windows CryptoAPI stubs, support top-down BMP rasters and narrow glyph aspect ratios in native OCR, validate PNG streams on 0-degree orientation passes, guard nil and empty buffers in DLL/Dylib runtimes, widenDLGetCanvasDCExandDLRenderPageToDCClipdevice context parameters to pointer-sizedHDC/IntPtr, and fix page-range parsing, PNG transparency flags, and document handle cleanup in Delphi and C# demos
Version 4.64.17
Fixed
- Free Pascal compatibility shims (
AnsiStrings,JBig2EncExports,MsvcCppExports), PDF CMap name tokenization, TrueType simple and composite glyph outline extraction, composite CID font verification, Type 3 metric stream ownership checks, and page content font metrics restore the defaultOffset = 1overload inPosEx, bindjbig2_logdirectly tomsvcrt.dll!log, deep-copy ownedstd::exceptionmessage strings with 1-byte boolean layout in MSVC C++ shims, decode#XXhex escapes and reject empty or null-escaped CMap names, enforce work and command budgets and contour endpoint bounds on TrueType glyph outlines, verifyCIDFontType0/CIDFontType2subtypes andTPDFNameembedded stream subtypes, guard detached Type 3 stream owners, and scale Type 3 glyph advances by/FontMatrixwhen font installation is disabled - Cancellable render jobs, tiled and parallel page rendering, visual comparison JSON serialization, SVG turbulence filters and rasterization, bitmap image scaling and palette expansion, scanned-page Otsu binarization and deskew analysis, and content-stream recoloring synchronize render-job cancellation with pause gates and preserve terminal cancelled states, guard non-finite DPIs and unstarted Delphi
TTaskslots in tiled and parallel renderers, restore the{$IFDEF FPC}directive for locale-independent JSON floats in visual comparison reports, bound SVG turbulence stitched lattice spans before 32-bit rounding, clone prior page content streams into scratch structures during SVG rasterization, use 64-bit row multiplication in nearest-neighbor image scaling and validate single-component palette indices, clamp inline Otsu thresholds on uniform-color scans and zero deskew angles when variance scores are non-positive, and clear stale color-space operand names when numeric tokens intervene - Enterprise AcroForm schema auditing, inline image externalization, Small Business batch conversion cancellation, PDF/VCR variable data merge and MCID placeholder replacement, optional content layer flattening, Bates numbering validation, signature modification verdicts, barcode encoder plugin diagnostics, and e-invoicing validation resolve indirect
/RVrich-text references in form audits, deduplicate and filter out-of-range page numbers before externalizing inline images, propagate workflow cancellation across failed batch stream loads, resolve unmodified objects viaDirectFindObjectand skip parenthesized strings during/MCIDcontent scans, normalizeTPDFNullentries when flattening optional content, reject negative Bates start numbers and duplicate page ranges, scopeDocMDPcertification constraints to revisions after the certifying signature, synchronize barcode plugin diagnostics under the loader lock, and preserve input error categories when invoice validation stages are disabled - RC4 encryption state scrubbing, operating-system CSPRNG fallback handling, native dynamic library loader guards, parallel Flate and image optimization worker pools, X.509 AIA and CRL Distribution Point extraction, ActiveX variant marshaling, macOS linker response-file cleanup, and VB.NET and C# DLL workflow examples scrub RC4 state tables and intermediate buffers in
finallyblocks, zero consumed CSPRNG pool slices immediately and loop over partial/dev/urandomreads, reject empty library filenames andNilHandlelookups, pairCoInitialize/CoUninitializeon Windows image optimization threads, skipcRLIssuer [2]subtrees when collecting CRL distribution URIs and validate inner DER sequence bounds, stripvarByRefbits and lock 1D byte Variant arrays in ActiveX helpers, clean up temporary response files on macOS linker failures, and release merged destination documents and native library handles deterministically in C# and VB.NET wrappers - Edition capability documentation, reference navigation, and sample workflow guides clearly label Single (Full), Small Business, and Enterprise edition feature boundaries and example requirements across the main README, edition comparison matrices, API reference entries, DLL overview, and
SmallBusinessLab,EnterpriseLab, andWorkflowCLIsample documentation, while paid and trial installers guard trial-only unit imports in source builds and compile library, module, and example targets cleanly without compiler warnings or hints across RAD Studio12.0through37.0
Version 4.64.16
Fixed
- Standard rubber-stamp appearance streams, PostScript filter data decoding, missing-glyph diagnostics, in-memory virtual files, CID metric source verification, TrueType Collection (
.ttc) face reader state, and Free PascalPLStringBuilder/TMonitorruntime helpers repair corrupted hex sequences in built-in stamp streams and accept leading-slash stamp names, enforce remaining work and memory budgets in PostScriptFlateDecodefilters without double-charging work units, escape lone UTF-16 surrogates and emit locale-independent JSON booleans in missing-glyph reports, reject baremem://URIs and raiseEStreamErroron read-only virtual stream resizing, guard negative indices in CID metric checks, reset TTC face reader state across calls, and initialize and freeTMonitorcritical-section pools - OpenJPEG JPEG 2000 C runtime bindings and memory streams, LZW 2-bit code growth and predictor budget checks, JBIG2 MMR and CCITT Group 3/4 scanline encoding, Win64 JPEG progressive scan checks, SVG PNG filter image resources, Windows clipboard DIB and Unicode text placement, macOS CoreGraphics image decoding, non-VCL printer enumeration, and metafile diagnostic JSON reporting bind 64-bit
_ftelli64and safe C runtime stubs for OpenJPEG, reject out-of-bounds read seeks on memory streams, advance LZW code widths from 2-bit initial code sizes and reserve PNG predictor prefix bytes before decompression, replace non-canonicalBoolean(N)integer casts with explicit non-zero checks in CCITT bit-span scanners and Win64 JPEG helpers, guard 32-bit stride overflows in JBIG2 and clipboard helpers, reject prohibitedPLTEchunks in grayscale SVG PNG resources, validate BMP header sizes inPDFlibPlaceDIB, release CoreFoundation / CoreGraphics handles on all paths, and avoid splitting UTF-16 surrogate pairs when truncating metafile diagnostic messages - C runtime formatting and file helpers (
PDFlibCLibs/HPDFCLibs), Enterprise audit-evidence pipeline issue collection, API scope tracking, VCL viewer actions, XML and JSON compliance validation reports, edition capability readiness probes, Small Business batch comparison output limits, OCSP request error state, PDF file specifications, and content filter chains format negative integers with leading minus signs into local digit buffers without corrupting target pointers or writing trailing NUL bytes infprintf, iterate 1-based string list indices in audit evidence pipelines, require closed paths and balanced scopes before ending page updates or marked content, refresh viewer actionEnabledstates and decouple modal file dialogs from viewer component lifetimes, preserve Unicode text and sanitize illegal XML 1.0 control characters and lone surrogates in validation reports, reject embedded NUL characters in local readiness paths, propagate batch comparison output limit exceptions, clear stale error strings on successful OCSP request builds, rejectTPDFStreamobjects as file specifications, and ignorenilcontent filter callbacks - Ed25519 signature verification (RFC 8032), OCR JSON number parsing, X.509 PEM certificate loading and public-key envelope decryption, Enterprise public-key recipient deduplication, OpenSSL native AES-CBC / AES-GCM and digest wrappers, ML-DSA (FIPS 204) secret-key unpacking, Free Pascal
IOUtils/OpenJpegCRTshims, and C# and Delphi example projects preserve canonical zero-x sign bits during Ed25519 point unpacking, use locale-invariant floating-point parsing in OCR JSON, clear output buffers on failed PEM decoding or ambiguous recipient matching, deduplicate identical recipient certificates within permission groups, guard zero-length buffers in native AES-CBC / AES-GCM and check OpenSSL library handles before symbol resolution, reject out-of-range secret-key polynomial coefficients inMLDSA44SignandMLDSASignInternal, handle rootedPath2arguments inTPath.Combine, pin and release C# DLL buffers insidetry ... finallyblocks, synchronize background thread UI calls inPdfToImagedemos, and abortCreateTabledemos when table rendering fails
Version 4.64.15
Fixed
- GDI+ vector and pattern rendering, CSS paged-media margin box layout, Fontconfig native font matching, TrueType Collection (
.ttc) face extraction, extracted text-block width formatting, andToUnicodemap source capture dispose GDI+ image attributes, loaded images, and pattern matrices on all execution paths, require at least two color stops in axial and radial gradients, clamp margin boxes across all redistribution passes and escape CSS attribute characters, compare font family names as wide strings without ANSI narrowing, validateheadtable lengths and 64-bit offsets when extracting TTC faces, guard short character-width arrays, and ignorenull/ToUnicodeentries - Windows printer bin and media-type enumeration, preview bitmap scaling, raw 24-bit BGR strip printing, PDFium session and single-shot stream rendering, virtual PDF printer canvas page commits, document transformation, display-list cache accounting, EPS bounding-box parsing, and Cairo stream callbacks allocate 4-byte
DWORDbuffers forDC_MEDIATYPES, guard zero physical dimensions and null printer canvases, set 40-byteBITMAPINFOHEADER.biSizeheaders and release strip canvas locks infinallyblocks, isolate PDFium sessionFPDF_FILEACCESScallbacks from transient renders, remove initial placeholder documents on the first committed virtual-printer page, exclude retired display lists from active byte totals, guard 32-bit signed integer overflow on EPS bounding boxes, and catch stream exceptions across the C ABI callback in Cairo - Buffered string reads, inline image header and TIFF Predictor 2 validation, PDF version feature detection, form appearance text auditing, edit-journal transactions and cursor recovery, content-stream operator lookup initialization, workflow JSON integer parsing, and diagnostic file logging clear caller result strings before zero-length or EOF buffer reads, require paired
>>delimiters and reject stray top-level delimiters in inline image headers, size predictor output bounds for sub-word rows, restrict PDF 1.7 extension-level contributor promotion to baseline 1.7, pre-initialize operator lookup buckets at unit startup, reject unsigned 32-bit JSON integers that exceedHigh(Integer), and synchronize log file rotation under the logger lock - CMS signature timestamp token extraction, Windows registry string lookups, non-Windows
MultiByteToWideCharUTF-8 validation, cached OCSP and CRL revocation evaluation, native HTTP response and redirect header limits, ARM64EC MSXML DOM attribute wrappers, and Delphi and C# ActiveX example projects pass distinct output variables when decoding timestamp token TLVs, guard empty registry key paths, enforceMB_ERR_INVALID_CHARSon UTF-8 inputs, scope OCSP/CRL chain-error overrides to revocation status checks, prevent unsigned underflow when HTTP bodies reach the byte limit and reset accumulated header size across redirects, guardnilMSXML attribute maps and clearIStreamvariants before freeing backing streams, use 64-bit safeLPARAMcasts andCoTaskMemFreein folder-browser callbacks, and catch COM instantiation failures in C# ActiveX wrappers
Version 4.64.14
Fixed
- SASLprep password preparation (RFC 4013), PostScript ZapfDingbats
ToUnicodemapping, semantic text layout planning, CID CMap header token parsing, CFF Type 2 charstring arithmetic, and transactional Unicode text reflow retry NFKC normalization when high-expansion code points exceed the initial buffer estimate, map non-ASCII spaces toU+0020, fix the ZapfDingbats space character at0x20, catch stream read errors during font parsing, clear consumed CMap metadata tokens beforeusecmap, guard CFF Type 2 arithmetic againstDoubleoverflow, expand coalesced flow plans across merged byte ranges, and inspect tagged Form XObject/ActualTextentries - ZLib stream compression, Win64 JPEG decoding, Type 2 exponential and Type 4 PostScript calculator functions, image list extraction, GDI+ codec enumeration, bitmap channel scaling, JBIG2 generic region encoding, professional barcode rendering, and CCITT Group 3/4 encoding preserve negative ZLib error codes and grow destination buffers on
Z_BUF_ERROR, remove null progress-pointer dereferences in Win64 JPEG export, guard division by zero, domain errors, and exponent or integer-conversion overflows in Type 2 and Type 4 functions, release GDI+ codec buffers infinallyblocks, mask 16-bit bitfields before 64-bit channel scaling, validate JBIG2 row strides, and guard zero barcode dimensions and invalid CCITT scanlines - PDF/A XMP packet parsing and ICC / Pattern color auditing, PDF/E external stream and XMP checks, PDF/R media box and page content validation, PDF/VCR variable placeholder MCID auditing, QDF stream marker parsing, resource deduplication reporting, workflow progress contexts, and JSON-to-PDF object serialization cap XML nesting depth and reject unclosed
CDATAor malformed closing tags, bound ICC stream comparisons, resolve indirect/Contentsreferences in PDF/R checks, enforce delimiter boundaries onMCIDand XMP attribute scans, verify whitespace betweenendobjand QDF comment markers, sum deduplicated image payload bytes accurately, guard detached workflow contexts and 64-bit progress scaling, and parse scientific-notation JSON floats - AES-256 CBC encryption and decryption, ASN.1 DER OID encoding, X.509 issuer certificate selection, SHA-3 / SHAKE256 / SM3 / SHA-512 stream hashing, native CRL delta policy and OCSP evidence initialization, SM4 ciphertext length calculation, socket poll timeouts, and the C++Builder DocumentLab MergePDF example validate AES key, IV, and 16-byte block alignment and scrub stack schedules, reject malformed or overflowing OID arcs, enforce Authority Key Identifier matching when both subject and issuer key IDs are present, validate stream range bounds and 64-bit bit counts in digest helpers, guard
High(Int64)overflow inPDFSM4EncryptedLength, normalize non-positive socket timeouts, and iterate 1-based fast-merge page counts
Version 4.64.13
Fixed
- Text encoding and Unicode conversion routines, inherited
ToUnicodeCMap parsing, external Type 0 font glyph indexing, TrueType composite glyph transforms, Type 3 character range validation, and page content font metrics guard odd-length UTF-16 byte sequences and 2- or 3-byte BOMs, prevent duplicate leading BOMs underPLUnicodeForceand Latin-1 misdecoding of truncated 3-byte UTF-8 sequences underPLUnicodeIgnore, merge parent CMap codespace ranges, provide a TrueType character-index fallback for non-native Type 0 fonts, and reject out-of-range unmapped Type 3 character codes and non-finite text advances - Structural and visual document comparison, BigTIFF floating-point tags and old-style JPEG table synthesis, SVG continuous convolution, tile, and lighting filters, Reed-Solomon and Intelligent Mail barcode generation, EMF color profile loading, and Tesseract OCR output reporting fix the 16-character fingerprint buffer bound, guard signaling
NaNTIFF tags and undefined JPEG quantization selectors, prevent pre-division floating-point overflows andNaNpropagation in SVG filters, align lighting domain bounds with resampling limits, reject reducible Reed-Solomon polynomials and out-of-range Intelligent Mail codewords, block mixed-slash remote UNC profile paths, and reportopsOutputLimitwhen OCR output files exceed configured byte limits - Structured content context building, rectangular content-stream hit testing, PDF/A transparency region planning, damaged stream end-marker recovery, parallel Flate recompression, data-availability prefetch initialization, PDF/UA TrueType
cmapand inlineBDClanguage auditing, and NameTree / NumberTree operations eliminate double-free of decoded property objects, verify numeric operands before casting, scope pattern transparency checks to fill and stroke operators, preserveendstreamdetection afterendprefixes, enforce complete Flate stream decoding, clean up reader state on failed prefetch initialization, prevent 32-bit integer overflows oncmapsubtable bounds, track nested inline dictionaries inBDClanguage scans, and purge stale/Limitson single-leaf number trees - CNG persisted key deletion, Brainpool ECDSA point doubling and digest reduction, Ed448 field canonicalization and point decompression, PDF MAC revision-chain validation, SM2 modular addition and public-key derivation, AIA certificate extension parsing, and C++Builder, Delphi, and Lazarus EnterpriseLab and DeliveryLab examples release CNG provider handles when key names are empty, reduce oversized digests via bit-serial modular reduction, reject non-canonical Ed448 encodings, skip
/MACLocationkeys when locating/MACvalues, reduce SM2 operands before modular addition, bound signature field enumeration loops to the 64-entry buffer, preserve 64-bit file sizes in compliance reports, and guard DER certificate length parsing
Version 4.64.12
Fixed
- CFF glyph advance extraction, CID vertical metric lookups, OpenType shaping and dynamic loader fallback, external font sequence diagnostics, Unicode text-instruction rewriting, semantic tagging, and semantic resource deduplication return clean failure states on truncated charstrings or non-finite floats, clamp 0-based UTF-16 clusters to
Length(Text) - 1, verify exported OpenType symbols per candidate library, hex-encode SHA-256 index keys, and check dictionary keys symmetrically - Aztec and DataMatrix barcode decoding, mirrored QR Code orientation and corner calculation, TIFF CIELab and YCbCr sample conversion, modern image PNG
iCCPinjection and ISO BMFF header probing, lossless JPEG point-transform validation, SVG turbulence noise, and OCR orientation and layer commits handle 10/12-bit Aztec padding and C40/Text zero-padded unlatches, swap basis vectors on transposed QR grids, insertiCCPbeforePLTE, use floor rounding on negative turbulence coordinates, and prevent orphan PDF objects on failed OCR commits - Resource optimization, inline-image externalization, PDF/A and PDF/UA validation rules, Document Part (DPart) metadata and hierarchy validation, and CxF spectral color extraction preserve inline image color spaces after array or string operands and inside
/Indexeddefinitions, unwrap scalar-filter/DecodeParms, validate UTF-16 low surrogates before combining, inspectbfrangespans and arrays inToUnicodeand CID CMaps, accept single dictionary/Kchildren in tables and lists, allow single-page leaf DPart ranges, and support self-closing tags andCDATAsections in CxF XML - Native XML namespace handling, AcroForm JavaScript built-in formatting and date/math evaluation, Smart-Binding invoice validation, Cloud Signature Consortium (CSC) SAD pinning and OTP cleanup, and Delphi, VC++ DLL, and C# example projects pass
nilfor empty XML namespace pointers, treat blank number/percent inputs as valid empty strings, skip weekday tokens in lenient date scans, guardMath.powin inactive branches, propagateAutoFactur-X profiles, use 64-bit safeINT_PTRdevice contexts in VC++ wrappers, and set validOpenFileDialog.FilterIndexdefaults
Version 4.64.11
Fixed
- Variable font composite glyph loading, TrueType outline vectorization, Type 3 text-to-path conversion, and composite glyph validation fix 2x2 off-diagonal matrix terms, initialize GDI identity matrices and curve subpaths safely, scale Type 3 glyph advances by the font matrix, and roll back in-progress state after exceptions
- Text flow line breaking, language-aware hyphenation, text-funnel coordinate trimming, tagged form flattening, and HTML page export handle standalone CR line breaks, preserve decomposed combining marks without splitting grapheme clusters, avoid mutating caller offset arrays, keep direct structure children intact when promoting
/Kentries, and block executable link URI schemes - SVG native rasterization, Floyd-Steinberg dithering, PNG
pHYsresolution parsing and bitmap export, EPS masked-image export, LZW predictor encoding, background render jobs, and render-surface caching guard detached pages, advance zero-error diffusion rows, prevent 32-bit integer overflows, release bitmaps and canvas locks on error paths, and evict stale cache keys when oversized replacements are bypassed - Content-stream peephole optimization, geospatial measure dictionaries and viewports, Arlington schema scoring, PDF/VT XMP inspection, structural reachability auditing, and annotation appearance and hit testing preserve state setters across
TD,"and unknown operators, reject negative array counts, evaluate polymorphic rules in candidate context, and honor/QuadPointsand empty/ICarrays - Audit evidence envelope signing, workflow preflight probing, EU Trusted List certificate parsing, PKCS#11 mechanism discovery, OpenSSL CMS chain verification, layer pattern state tracking, EN 16931 / Factur-X invoice XML generation, and the VC++ DLL example release certificate contexts, guard unselected documents and empty certificate sets, clear stale pattern operands, close CII
<ram:CountryID>elements and trim VAT country prefixes, prevent-0.00amounts, and gate post-save verification on save success
Version 4.64.10
Fixed
- HTML and CSS layout intercept forced
break-beforeandpage-break-beforerules before block tags mutate font or indentation state, honorpage-break-*parity values, preserve the final quoted token in CSS string splitting, and prevent spurious trailing continuation pages - LaTeX formula rendering bounds unbraced recursive operators such as chained
\sqrt, preserves inner accent kinds across outer font-style wrappers, and draws left arrow wings for\overleftarrow - Markdown conversion skips inline backtick code spans during footnote and reference-link expansion and preserves non-whitespace trailing
#characters in ATX headings such asC# - SVG page export rejects non-finite page dimensions and emits SVG stroke attributes (
stroke,stroke-width,stroke-opacity, andfill="none"for outline mode) when exporting stroked PDF text rendering modes - JPEG 2000, GDI+ JPEG, JBIG2, deskew Otsu thresholding, barcode JSON reporting, and native OCR bitmap loading fix subsampled channel copying, release native codec handles on error paths, guard MMR and arithmetic decoder bounds, and prevent 32-bit integer overflows
- Text and image watermarks honor
PageRangefilters across all nine preset placement positions, and page-tree operations fix remote GoToR target page numbers, LGI dictionary promotion, page-cache invalidation on structural edits, and out-of-range annotation deletion - Linearized byte-range PDF probing, RFC 3161 timestamp response parsing, LDAP and HTTP URL splitting, Uniscribe itemization, COLRv1 and CBDT color fonts, and OpenType GSUB/GPOS tables harden key matching, container bounds, query-string parsing, and buffer sizing
- C# and VB.NET DLL and ActiveX multi-function examples release temporary document handles when merge operations fail and dispose previous preview bitmaps before assigning updated page renders
Version 4.64.9
Fixed
- Table layout and automatic table-of-contents generation preserve table-level border styles across resizing, allow column and row insertion at the trailing boundary, distribute row-spanning cell heights across automatic rows, and apply the default 90% right TOC margin
- SVG rendering supports percentage-based
rgb()andhsl()color channels, guards cyclic filter inheritance chains, and prevents double-purging temporary stream dictionaries during filter rasterization - DOCX export and structured-text extraction escape reserved XML entities in hyperlinks and font names, emit valid DrawingML image relationships, clamp word-wrap break gaps, and preserve merged-cell span indices across adjacent merges
- 1D barcodes, QR Code and PDF417 symbol encoders validate input length and digit ranges before computing check digits or bar widths, guard UTF-8 multibyte boundaries in QR alpha-numeric runs, and encode 6-byte PDF417 compaction groups and fixed-row geometries accurately
- Content stream parsing, vector canvas drawing, color management, document recoloring, mesh shadings, patterns, Type 1 and TrueType font rasterization, and Unicode text reflow harden bounds checks, resource cleanup and fallback paths
- PDF/X, PDF/A and PDF/UA compliance validators inspect stream-level filter and graphics-state dictionaries, report encrypted or unreadable files consistently, and preserve caller-supplied result list entries
- Digital signature verification, timestamping, revision history comparison and sandboxed review validate byte-range offsets independently, support SHA-1 and RSA-SHA3 certificate signatures, detect rewritten object-stream containers, and decrypt empty-password revisions
- XMP metadata packets use standard
pdfvtid:revandpdfvcrid:GTS_PDFVCRVersionidentification keys, reload core Dublin Core and Adobe PDF properties cleanly, and NameTree key deletion maintains consistent string encoding and multi-node leaf arrays - Interactive viewer controls, form-field sub-item queries and C++, C#, VB.NET, Delphi and Lazarus examples guard out-of-range field indices, synchronize page selection before coordinate queries, and isolate temporary documents during multi-function actions
Version 4.64.8
Fixed
- FDF form-data imports decode escaped literal strings and nested parentheses without truncating at the first inner closing parenthesis
- Unicode file paths outside the active system code page are preserved during full-document JSON export, embedded file specification creation and invoice XML validation
- Choice field values, options and rich-text entries preserve UTF-8 and UTF-16BE strings and report accurate update status codes
- XFA FormCalc function-style conditional expressions evaluate only the selected branch and multi-value dataset updates create valid XML child elements
- Digital signature creation and PAdES long-term validation buffer incremental updates in memory before writing to disk so failed operations never overwrite or truncate existing destination files
- Windows certificate store enumeration retains valid certificate contexts for subsequent inspection and signing calls
- Image decoding, fax and LZW decompression, metafile playback, CMap parsing and linearization reset state cleanly and guard against malformed or truncated inputs
- DLL, Dylib, ActiveX, VC++, C#, VB.NET, Delphi, C++Builder and Lazarus wrappers and examples fix calling conventions, handle cleanup and error reporting
Version 4.64.7
Fixed
- JPEG metadata inspection stops at truncated marker boundaries and clears results from previous inputs
- JPEG ICC profile extraction assembles all numbered chunks and rejects incomplete or inconsistent profiles
- Image import from a file segment rejects requested byte ranges that extend beyond the source file
- Text, Markdown, DOCX and XLSX file exports preserve existing destinations when generation, cancellation or final publication fails
- VCR data merging decodes escaped JSON field names and values, including Unicode escapes
- VCR data merging honors explicit empty values while preserving placeholders for absent fields
- Embedded-font extraction examples include TrueType subset and Unicode CID fonts and verify exported font programs before naming them
- The Lazarus formatted-title example reports a missing requested input instead of silently substituting a sample PDF
- The Lazarus signing example locates its bundled certificate in the current scenario directory layout
Version 4.64.6
Fixed
- Tile image export preserves existing destination files when they cannot be opened for writing
- Direct Access stream saves report success only after the complete cross-reference table and trailer have been written, and retain the source handle for retry after a write failure
- Native extraction of byte-aligned Group 4 fax images preserves the original pixels in exported TIFF images
- GIF frame composition honors transparent pixels, the logical-screen background, and background or previous-frame disposal
- Bates numbering applies the requested font size and selected text color on every page and restores the original drawing state afterward
- Visual workflow preflight correctly inspects encrypted current documents using the known document password
- Image conversion examples keep same-name inputs distinct and choose unused filenames for individual and merged outputs
- The Lazarus attachment example embeds the file created in the requested output directory
- Text extraction examples save UTF-8 output without losing characters outside the Windows system code page
- The default mail provider rejects missing requested attachments before attempting delivery instead of silently sending a message without the attachment
Version 4.64.5
Security
- Malformed page-parent cycles and excessive inheritance depth are rejected during page-size lookup instead of hanging the application
- PDF-to-image examples preserve input files and previous output by creating a separate folder for each conversion
Fixed
- Wide low-bit-depth PNG images retain their pixels and palette transparency when reconstructed or deinterlaced
- Literal PDF strings ending in short octal escapes render and extract the correct characters without reading beyond the string
- Transparency flattening can preserve interactive annotations and fields without changing their page coordinates, appearance placement or values
- Tiled image export rejects colliding output names before writing files and preserves the extension when adding default tile indices
- QuickReport exports draw the imported report pages at their physical size instead of producing blank pages
- FastReport and ReportBuilder exports preserve bold and italic faces, reapply text styles after page changes, and avoid unwanted blank first pages
- ReportBuilder export releases document resources after completed, canceled and failed jobs
- Managed-language examples select and release actual document handles, including replacement documents created by page extraction
- Image conversion examples preserve directory names when changing extensions, include EMF input, and accept absolute paths in direct-access conversion
Version 4.64.4
Fixed
- Attachment export protects reserved Windows device names with multiple extensions and keeps truncated names normalized
- Attachment conflict handling recognizes existing directories and chooses available names when renaming
- Invalid or missing embedded-file sources no longer truncate existing destination files or create empty output files
- Annotation attachments export valid empty files and stream decoded content with checked writes
- Embedded-file extraction reads Unicode-only stream entries consistently across string, stream and file output
Version 4.64.3
Fixed
- ASCII hexadecimal stream decoding stops at the first end marker before applying byte limits or subsequent filters
- ASCII85 decoding rejects malformed groups, invalid digits and numeric overflow instead of retaining partial or altered output
- SVG styles preserve quoted comment markers and escaped delimiters, preventing string contents from becoming extra declarations
- SVG print styles match complete supported media queries and skip unsupported conditions instead of matching keyword prefixes
Version 4.64.2
Fixed
- Bitmap, PNG and GIF stream output now reports incomplete writes instead of silently accepting partial image data
- Bitmap output preserves existing stream prefixes and restores the append position after updating resolution metadata
- GIF decoding rejects pixel indices outside the active palette instead of reusing earlier scanline colors
- Parallel page rendering now applies every filename placeholder and preserves file extensions consistently with serial output
- Form-script character lookup handles fractional negative positions consistently in AcroForm and XFA calculations
Version 4.64.1
Fixed
- Ambiguous XFA calculation targets now reject the complete batch without changing dataset or synchronized form values
- Form calculations skip inactive conditional and logical branches, preserve selected operand values and handle scalar helper boundaries consistently
- PostScript rectangle strokes preserve existing paths and current points for subsequent drawing
- Parallel rendering examples generate exactly twelve populated pages and report incomplete serial or parallel output as a failure
Version 4.64.0
Added
- XFA calculations now execute common bounded JavaScript expressions together with FormCalc, preserving raw-value types, explicit data bindings and shared dependencies
- Conditional and short-circuit expressions avoid inactive reads, while strict comparisons, scalar conversion and calculation completion retain their JavaScript behavior within the qualified profile
- Mixed-language calculations converge, synchronize matching AcroForm fields and survive saving and reloading, with complete rollback on cycles, unsupported scripts or shared-budget exhaustion
Version 4.63.0
Added
- XFA FormCalc now supports bounded loops, iteration control and scoped user-defined functions with recursive calls and lexical variable shadowing
- Loop bounds and steps retain their required reevaluation behavior, while function reads remain part of calculation dependencies and atomic field synchronization
Version 4.62.0
Added
- PostScript import now renders bounded grayscale, RGB and CMYK images, colored stencils and image dictionaries with packed samples, data procedures and exact filtered input
- Image placement preserves row direction, stencil polarity, planar channels and twelve-bit sample values, with explicit profile and resource limits
- EPS file import preserves original binary image bytes, and successful PostScript drawing remains present when the document is saved immediately
Version 4.61.0
Added
- PostScript import now supports bounded source-file readers, typed computed operands and common decoding filter chains with exact stream termination
- Named byte buffers and partial string aliases retain their updates across nested reader procedures, with explicit limits for decoded data and allocations
- EPS placement now uses actual DSC boundary comments and deferred trailer values, ignoring lookalike metadata inside strings or consumed data
Version 4.60.0
Added
- PostScript import now supports controlled standard fonts, font transforms and common text-showing and measurement operators
- Text preserves PostScript character encodings, Unicode mappings and glyph advances, including explicit per-glyph user-space positioning
- Unsupported fonts and exhausted text budgets reject before page output is appended, while successful imports preserve the selected library font
Version 4.59.1
Fixed
- PostScript import now preserves saved paths through graphics-state restoration, clipping and rectangle painting
- Current-point coordinates follow later transformations correctly, with undefined points and unqualified transforms rejected before page output changes
Version 4.59.0
Added
- SVG filters now support diffuse and specular lighting with distant, point and spot lights, boundary-aware height-map normals and explicit sampling grids
- Lighting preserves working-space colors and reflection alpha, supports bounded spot focus and cone coverage, and reports invalid or excessive lighting requests with strict output rollback
Version 4.58.0
Added
- SVG filters now support deterministic turbulence and fractal noise with signed seeds, octave accumulation and stitched primitive-region boundaries
- Generated noise respects primitive coordinates, working color space and alpha semantics, with explicit numeric bounds and shared work limits
Version 4.57.0
Added
- SVG filter images now support local graphics and bounded embedded PNG and JPEG resources with preserved transparency and aspect ratio
- Local filter image files can be enabled explicitly for each import, including images nested inside referenced graphics; resource byte limits and policy evidence are included in diagnostics
- Image resource preflight and shared decoding budgets reject malformed containers, excessive expansion and reference cycles while preserving strict page-output rollback
Version 4.56.0
Added
- SVG filters now support continuous and absolute-unit primitive regions, fractional offsets and tiling, and region-aware convolution with explicit kernel sampling distances
- Bounded local raster domains preserve premultiplied color and fractional boundary coverage across named results and repeated identity operations, including saved PDF transparency masks
- Cropped convolution now extends the actual input region for duplicate and wrap edges; invalid coordinates, unsupported units and exhausted sampling budgets retain diagnostics and strict rollback
Version 4.55.6
Added
- SVG filter import now resolves bounded local filter inheritance, including nearer attribute overrides and replacement primitive lists
- Inherited filters preserve working color space and raster settings without changing source nodes; invalid references, cycles and exceeded inheritance bounds retain diagnostics and strict atomic rejection
Version 4.55.5
Added
- PDF/UA reader validation now reuses bounded form-schema, choice, button-state and logical appearance evidence with explicit incomplete diagnostics and coverage limits
- Direct interactive-form dictionaries remain resolvable after reader normalization, and shared validation pipelines preserve part selection, independent rule results and one input parse
Version 4.55.4
Added
- Inline image validation now proves bounded LZW stream endings and final or intermediate TIFF/PNG predictor rows, allowing exact continuation through more supported filter chains
- Prohibited archival filters still report violations independently; malformed codes, nonzero end padding, incomplete rows, false continuations and exhausted budgets retain incomplete boundary findings
Version 4.55.3
Added
- Form validation now gathers bounded logical value correspondence evidence from supported text and combo-box normal appearances using verified font encodings and Unicode maps
- Unqualified appearance text, unresolved resources and finite-limit exhaustion retain incomplete status; text extraction differences do not invent visual conformance violations
Version 4.55.2
Added
- Archival form validation now checks supported button values, normal appearance selectors, radio mutual exclusion and unison behavior, and inherited button export-option cardinality
- Optional blank off appearances and null entries remain valid; unresolved state resources and ambiguous widget field ownership stay incomplete without hiding independently proven violations
Version 4.55.1
Added
- Archival form checks now verify current and default choice values against qualified options, allow editable custom values, and enforce supported selection cardinality and required current-index entries
- Ambiguous paired-option values and unresolved option references remain explicitly incomplete; differing index hints retain the specified current-value precedence instead of producing a false violation
Version 4.55.0
Added
- Archival read validation now checks required terminal form entries, rooted inherited values and flags, parent ownership, type-specific flag prerequisites and supported default appearance font resources and operators
- Form validation distinguishes unresolved inheritance and bounded appearance proof from proven errors, preserves submission-time flag semantics, and applies the approved PDF 2.0 pushbutton correction without imposing older restrictions
Version 4.54.0
Added
- Verified Unicode matches can be reflowed in explicitly sized text boxes with original or caller-selected fonts, controlled whole-box font fallback, paragraph breaks and complete glyph-cluster wrapping
- Text reflow offers transactional overflow rejection, whole-line truncation with continuation diagnostics, and bounded shrinking to a caller-selected minimum size while preserving untouched text positions
- The reflow operation and diagnostics are available through Pascal, wide and ANSI native bindings, and a compatible Automation extension
Version 4.53.1
Added
- Verified Unicode replacement now supports non-overlapping matches across text lines, including selected nested and shared Form invocations, with complete-glyph checks and all-or-nothing source retention
- Cross-line edits preserve following text positions and existing font-selection rules without implicitly reflowing page text
Fixed
- Reading page content and rejecting exact replacement requests retain original content streams and selected authoring buffers
Version 4.53.0
Added
- Semantic tagging separates supported text-show instructions spanning inferred cells using verified glyph-byte ownership while preserving encoded text, spacing and positioning
- Split page and nested Form text retains local structure ownership after saving and reopening; conflicting glyph ownership rejects the affected page before editing
Version 4.52.0
Added
- Semantic tagging binds exactly qualified inline images to page and nested Form content while preserving binary samples that resemble PDF content operators
- Inline source qualification shares bounded sample and filter-chain proofs, rejects uncertain image boundaries before editing and preserves existing archival and optional-content validation behavior
Version 4.51.0
Added
- Semantic tagging supports nested and shared Form text and images with invocation-specific structure ownership, preserving groups, transforms, clipping and unaffected shared uses
- Form source qualification rejects existing structure, reference proxies, external streams, malformed resources and cyclic invocation paths before changing page content
Version 4.50.1
Added
- Semantic page tagging supports inherited orthogonal page rotations and offset crop boxes while preserving appearance and reporting consistent display-relative candidate bounds
Version 4.50.0
Added
- Archival conversion accepts explicit whole-page, preferred-regional or regions-only fidelity policies and a selectable raster resolution
- Supported PDF/A-1 transparency regions preserve unaffected text and vector content with final paint order and clipping, and report replaced regions and semantic review requirements
- Unsupported regional cases fall back explicitly or reject without changing the original document; archival fidelity controls are available through Pascal, DLL, Dylib and Automation interfaces
Version 4.49.1
Fixed
- Named multi-page HTML reports preserve short completed cells alongside long continuations and distinguish metadata-only shells from remaining visible content
- Nested HTML cell pagination limits produce explicit diagnostics instead of silently choosing incompatible page geometry
Version 4.49.0
Added
- Sequential HTML Flex/Grid items and homogeneous table body rows select named page geometry across continuations while preserving repeated headers and restoring the following flow
- Dedicated HTML layout continuations retain unplaced child content when a later page-type boundary follows the container
Version 4.48.0
Added
- HTML forced page breaks propagate through table rows, supported Flex/Grid item bands and container boundaries while retaining repeated headers, directional blank pages and earlier body content
Version 4.47.0
Added
- Oversized HTML Flex and Grid layouts continue across pages with retained item geometry, spanning content, independent child continuations and bounded overlap/resource diagnostics
Version 4.46.0
Added
- HTML pagination honors inherited widow and orphan counts across paragraph continuations and keeps fitting blocks together with break-inside avoidance, reporting impossible constraints explicitly
Version 4.45.0
Added
- HTML tables retain column geometry and repeated headers across pages, keep fitting row spans together, and continue oversized cells and spanning groups without repeating completed content
- Generated page margin sizing measures styled words before emergency word splitting so minimum-content widths remain accurate
Version 4.44.0
Added
- Paginated HTML supports all sixteen page margin boxes, styled running headers and footers, page counters and completed-flow total-page counters with explicit overflow and resource-limit diagnostics
Version 4.43.0
Added
- HTML pagination supports case-sensitive named page types, ancestor restoration, named selector specificity and continued page geometry alongside directional blank pages
Version 4.42.0
Added
- HTML print pagination, strict SVG import, conversion diagnostics and barcode/filter capability queries are available through the macOS C interface and a compatible extended Automation interface
Version 4.41.0
Added
- Portable Data Matrix recognition verifies and corrects ECC200 codewords across all 30 standard square and rectangular sizes, including multi-region symbols
- Data Matrix recognition decodes supported text and binary modes completely, rejects malformed or unsupported payloads without partial results, and locates rotated, inverted and multiple separate symbols
Version 4.40.0
Added
- SVG filters add five blend modes, pixel-aligned primitive subregions and tiled input regions with explicit limits for unsupported sampling combinations
Version 4.39.0
Added
- Built-in Aztec recognition now supports Full-Range layers 1 through 32 with reference-grid sampling and bounded error correction
Version 4.38.0
Added
- HTML pagination honors directional page breaks with bounded blank-page insertion, blank-page styles and shared legacy break-property cascading
Version 4.37.0
Added
- HTML print pagination with page sizes and margins, explicit font-face resource mapping, attribute selectors and bounded diagnostics for ignored CSS and incomplete layout
Fixed
- Right margins and continued box geometry reduce available text width consistently, long words advance in indented frames, and declared font-family variants remain stable across nested formatting and continuation
Version 4.36.0
Added
- Portable QR Code and Compact Aztec recognition with bounded image sampling, orientation, error correction, text decoding and capability reports; explicit built-in backend selection is available on every platform
Fixed
- Aztec symbols use the standard data-ring order and Full-Range reference-grid spacing, and Compact-only requests reject payloads exceeding their mode-message capacity
Version 4.35.0
Added
- Bounded SVG component transfer, morphology, convolution and displacement filters, with explicit capability reports, per-import degradation diagnostics and atomic strict rejection through native and DLL entry points
Version 4.34.0
Added
- Transactional optional-content flattening with private inherited-state variants for shared forms, tiling patterns and Type3 glyph programs
- Proved inline image boundaries and preserved hidden clipping, text advancement and password protection during visual flattening
Fixed
- Semantic tagging rejects unverified inline source mapping and uses bounded deterministic candidate ordering
Version 4.33.0
Added
- Bounded inline image filter-chain and TIFF/PNG predictor boundary checks with shared work limits
- Independent content operator and resource audits for forms, tiling patterns, glyph procedures and widget appearances
- Interactive form value, choice option and selection index schema checks with distinct incomplete report outcomes
Version 4.32.0
Added
- Opt-in semantic tagging of existing pages with column-aware reading order, paragraphs, headings, lists, tables and figure candidates
- Read-only tagging review with candidate confidence, skipped-page reasons and object references for caller corrections
- Private page content and preserved existing structure with consistent marked-content ownership
Version 4.31.0
Fixed
- Preserved rendered transparency during PDF/A conversion by compositing affected pages before removing archival-incompatible effects, with explicit rasterization and fidelity reports
- Kept the original document and resource handles when PDF/A conversion fails, adopted successful results only after validation, and preserved permitted opening navigation
- Kept PDF/A-1 cross-references compatible across subsequent saves, supplied missing trailer identifiers, and omitted unknown metadata dates instead of writing empty date values
Version 4.30.0
Fixed
- Made XFA calculations settle dependent values across bounded passes, reject dependency cycles and nonconvergence, and synchronize matching text and choice form fields
- Staged XFA calculation changes before committing, reported actual changed values and explicit failures, and corrected FormCalc comments, relative data references and execution limits
Version 4.29.0
Fixed
- Made EPS and PostScript vector import reject unsupported or malformed programs without appending partial page content
- Bounded nested PostScript execution, operand stacks and converted output, preserved numeric definitions, and validated binary EPS preview segment boundaries
Version 4.28.47
Fixed
- Preserved variable-font axis normalization and named-instance precision across the full Fixed coordinate range
- Rejected malformed font directories, incomplete glyph records, invalid axis maps, and truncated metric-variation data without returning partial fonts
- Made sparse glyph variation interpolation linear and bounded total interpolation work per font instance
- Escaped custom axis tags in font metadata JSON and cleared incomplete axis enumeration after parsing failures
- Corrected streaming SHA digests for short reads and rejected invalid byte ranges or incomplete input
- Prevented duplicate or reserved embedded-font names from colliding during extraction in the Lazarus example
Version 4.28.46
Fixed
- Corrected packed and unsigned sample decoding in gradient and color functions
- Rejected malformed, cyclic, and excessively complex color functions before unsafe evaluation
- Corrected calculator Boolean negation, shifts, integer conversion, rounding, and bounded stack operations
- Selected the correct stitching interval at shared boundaries and inferred output components when the optional range is absent
- Handled incomplete custom-color form appearances without scanning outside their source strings
Version 4.28.45
Fixed
- Corrected indexed PNG transparency for filtered and packed pixels, including opaque palette entries omitted from the transparency table
- Bounded PNG scanline decompression and rejected incomplete data or invalid filters when reconstructing pixels; rejected invalid serialized JPEG lengths before allocation
- Rejected malformed object-stream headers, invalid member offsets, and nested compressed containers
- Detected incomplete writes throughout document, stream-object, and direct-access serialization, and preserved source-length state after failed saves
- Preserved all bytes when streaming compression or decompression receives short reads under Free Pascal
- Prevented the Lazarus image-export example from overwriting pages when the output pattern lacks a page placeholder and improved its failure cleanup
Version 4.28.44
Fixed
- Hardened TrueType and collection-font parsing against truncated tables, invalid glyph locations, and stale reload state; corrected character mappings and signed font metrics
- Kept certificate extensions and public-key fields inside their declared containers and rejected overflowing DER lengths; rejected OCSP request creation when issuer hashes are unavailable
- Bounded XFA XML trees, cleared failed parses, and preserved native XML text-node lifetimes
- Prevented font names from escaping HTML style attributes and preserved raw PDF bytes, decimal precision, and PDF version metadata in document JSON
- Handled extreme tile dimensions and invalid rendering scales safely, cleaned up failed temporary tiles, and reported incomplete dataset exports as failures
- Fixed signature example buffer sizing and byte-range validation, and fitted dataset example columns within the page
Version 4.28.43
Fixed
- Virtual files now reject oversized stream registrations and unrepresentable write sizes before reading or allocating, and clear newly exposed bytes after truncation or sparse writes
- Extreme seeks in virtual files, memory-mapped files, and remote byte-range streams now stay within valid bounds without integer wraparound
- GIF decoding now preserves every row in short interlaced images, clears previous frames when reloading, and rejects truncated or incorrectly expanded image data
- Destroying a background render job now waits for its worker to finish before releasing shared control objects, preventing access to freed memory during slow cancellation
- The C# HelloWorld demo now reports PDF creation failures before opening output and releases its native library instance when the form is disposed
Version 4.28.42
Fixed
- Fixed C# and VC++ ActiveX import wrappers (
PDFAX.cs,PDFlibAX.h, andPDFlibAX.cpp) to alignAddLinkToEmbeddedFile,ExtractFilePages,GetFileMetadata,LoadFromFile,LoadFromVariant, andReplaceFontssignatures with the COM type library, removed obsolete non-existent methods, and updated C# and VB.NET ActiveX project references to type library version3.6 - Fixed C# DLL
NativePdf.CopyWideto queryDLStringResultLengthand marshal explicit UTF-16 character counts, fixed document handle and file-list cleanup across C# and VB.NET demos, and resolved default database and DLL paths across parent directories inTable2PDF,CanvasDCLink, andLinkDemo - Fixed Lazarus
ScenarioMultiFunctionPNG rendering option (5instead of0), C++BuilderMultiFunctionunknown CLI mode reporting, and DelphiPdfToImageVCL main-thread UI synchronization
Version 4.28.41
Fixed
- Fixed ActiveX
GetObjectJSONandSetObjectJSONwrappers to transcode JSON payloads using UTF-8 (PLUTF8Decode/PLUTF8Encode) rather than the host ANSI code page - Fixed ActiveX
DllUnregisterServerto remove customPDFlibAX.PDFlibraryProgID andImplemented Categoriesregistry keys created byDllRegisterServer - Fixed DLL and Dylib
DLRegisterVirtualFile/DLRegisterVirtualFileAwrappers to reject non-zeroDataLengthcalls whenDataisNULLinstead of silently registering an empty virtual file - Fixed DLL and Dylib PAdES/OCSP/TSA byte-buffer wrappers to clear
ReturnStringon invalid pointer or length arguments, and fixed DylibFindInstancenegative ID rejection andDLGetObjectPathStreamwide return buffer synchronization
Version 4.28.40
Fixed
- Fixed structure-tree element accessors (
TPDFDocument.StructTreeItem) to populate the flat index cache on demand when queried before callingGetStructElementCount - Fixed
NormalizeStructTreeto remove invalid non-StructElementries (such as bare integer MCIDs or/MCR//OBJRdictionaries) placed directly under/StructTreeRoot /Kper ISO 32000-1 Table 322 - Fixed
NewOCGStateArrayto reject emptyStatesarrays and out-of-rangeTPDFlibOCGStateChangevalues before allocating structure objects - Fixed
UnlinkArticleThreadsFromPageListto preserve the first kept bead's/Tthread back-pointer when the/Threadsarray entry was already resolved in-place to an indirect dictionary
Version 4.28.39
Fixed
- Fixed RFC 3161 time-stamp client requests (
PLFetchTimeStampTokenEx) to strip leading zero padding on both sent and echoed nonces before comparison and to avoid retrying deterministic HTTP 4xx client errors - Fixed HTTP range probing (
PLHTTPHeadProbe) to requireHTTP 206forContent-RangeandHTTP 200forContent-Lengthfallback and to populateErrorTexton probe failure - Fixed LDAP Distinguished Name DER decoding (
PLLDAPDNFromDER) to decode multi-byte first OID subidentifiers under arc2.Xper ITU-T X.690 §8.19 - Fixed EU Trusted List evaluation (
TPDFlibEUTrustedList.EvaluateChainAt) to honorQCWithSSCDAsInCert/QCWithQSCDAsInCertqualifiers and preserve explicit certificate-levelqcTypeextensions - Fixed Winsock non-blocking socket readiness checks (
WaitFor) and loopback listener non-blocking mode inPDFlibSocket - Fixed PAdES signature hex-range scanning (
FindSignatureContentsHexRange) to enforce token boundaries around<ObjNum> 0 obj, lazily populateOriginalCMSinGetPAdESSignatureCMSBytes, and preserve policy rejection codes (10,11,20,21) inApplyLTACore
Version 4.28.38
Fixed
- Fixed VCL viewer mouse interaction, hover hints, active-region hit testing, and marquee selection (
TPDFlibViewer) to align with top-left page coordinates regardless ofFLib.GetOrigin, use rotated page dimensions inZoomInStepandZoomOutStep, and commit active in-place form editors inTPDFlibViewerFileSaveAs - Fixed
ComparePageTextsWithto preserveOther.SelectedPageand fixedExtractDocumentRevisionto pass the document reload password and use Unicode-safe file streams - Fixed
AddBatesNumberingto stamp using top-left page coordinates and current measurement-unit text height while supporting middle-row keypad positions (4,5,6) - Fixed PDF/VCR data merge (
PLExecuteVCRDataMerge) to reject unterminated JSON string values, match balanced nestedBDC..EMCblocks, and replaceTJarrays and hex-stringTjoperands - Fixed DOCX hyperlink injection to avoid double-escaping XML entities in relationship targets and initialized newly grown column widths in multi-page XLSX table continuations
Version 4.28.37
Fixed
- Fixed path element bounding-box and point-count calculation in
EnumPageElementsandEnumPathElementsto include each subpath's initialMoveTopoint and assignLefttoMinXandRighttoMaxX - Fixed 8-bit grayscale bitmap header generation (
TDLImage.GenerateBitmap) to computePixelArrayOffsetbefore deriving the totalBMPSize - Fixed background rendering jobs (
TPDFlibRenderJob) to support pausing while in therjsQueuedstate, recordSetResult(1, '')upon completion, reportLoadFromFilefailures accurately, and guaranteeLocalLibcleanup under exceptions - Fixed axial and radial shading evaluation (
TPLPattern.ReadShadingDict) to decrypt indirect/ICCBasedprofile streams and/DeviceN//Separationtint-transform streams on encrypted documents, evaluate/Backgroundcolors throughManagedColorandDeviceNColorSpace, and clamp function sample steps to at least2
Version 4.28.36
Fixed
- Fixed PDF/A-2, PDF/A-3, and PDF/A-4 document rules auditing to reject 3-byte and 4-byte overlong UTF-8 sequences, UTF-16 surrogate halves (
U+D800..U+DFFF), and code points aboveU+10FFFFin PDF names, and to decode octal escapes and UTF-8 BOM strings when checking content-stream/ActualTextand/Langentries - Fixed PDF/X compliance checking (
CheckCompliancePDFX) to compare against the initialResultList.Count, recognize RDF attribute syntax forpdfxid:GTS_PDFXVersion, resolve inherited/MediaBox,/TrimBox, and/BleedBoxentries, and dereference indirect box coordinate elements safely - Fixed PDF/VT and DPart XML node-name validation to enforce the XML 1.0
NameStartCharproduction on the initial character - Fixed font preflight probing (
TWorkflowProbe.ProbeFont) to reject unpaired UTF-16 high and low surrogates cleanly and guardedSanitizeDocumentagainst infinite loops if removing a global JavaScript package or annotation fails
Version 4.28.35
Fixed
- Fixed cross-reference stream parsing (
TPDFXRefReader.ReadXRefStream) to assemble 4-byte field values using 64-bit bit shifts so byte offsets between2 GiBand4 GiBdo not overflow 32-bit signed arithmetic - Fixed PDF token and filter parsing to support lowercase
eand explicit+signs in scientific-notation numbers, prevent out-of-bounds reads on literal strings ending with a bare CR (#13) and empty RunLengthDecode streams, and preserve high-precisionTPDFNumerictext during JSON object-graph cloning - Fixed CCITT Group 3 2D encoding (
CCITT32D) to encode the initial scanline as a 1D row (tag bit1) per ITU-T T.4 §4.2.1.3 before encoding subsequent rows in 2D mode - Fixed PDF linearization (
TDLLinearizer) to iterate 0-basedTempStructobject indices when remapping indirect references, clearTempStructacross hint-stream retry passes, pass the original generation number toDecryptObject, and include stream encryption overhead inside the hint-stream size convergence loop
Version 4.28.34
Fixed
- Fixed C# and Visual C++ ActiveX wrapper headers (
PDFAX.cs,PDFlibAX.h,PDFlibAX.cpp) where 21 legacy COM method names (NewLayer,SelectLayer,SetLayerOptional,CombineLayers,DeleteLayer,EditableLayer,EncapsulateLayer,LayerCount,MoveLayer,RemoveSharedLayers,UseUnsafeLayers,Linearized,GetFormFieldSubTempIndex,*ToVariant/*FromVariant) and theSetPDFiumFileNamewrapper causedCS1061compile errors orDISP_E_UNKNOWNNAMEat runtime - Fixed C# DLL wrapper classes (
PDFlibDLL.csandWorkflowWorkbench\NativePdf.cs) throwingArgumentNullExceptionorInvalidOperationExceptionwhen native string or byte-array functions legitimately return an empty zero-length result (IntPtr.ZerowithLastErrorCode = 0) - Fixed C# DLL and ActiveX sample projects (
HelloWorld,ImagesToPDF,MultiFunction,ExtractText,MultiDemo) using relative paths one directory level too shallow to locatePDFlibDLL32/64.dllandSample1.pdf/Sample2.pdf/Images.pdffrombin\Debug\ - Fixed
RenderViaDirectAccessin C++BuilderDeliveryLab\Scenarios\PdfToImagecomputing DPI from an unloaded document instead ofDAGetPageWidth/DAGetPageHeightand leaking the direct-access file handle without callingDACloseFile - Fixed locale-dependent floating-point attribute parsing (
StrToFloatDefwithout invariant'.'DecimalSeparator) in the Delphi and C++BuilderAddFormattedTitlescenarios and staged the requiredUniversLTStd-XBlack*.ttfsubsetting fonts in the LazarusAddFormattedTitlescenario directory
Version 4.28.33
Fixed
- Fixed Windows DLL instance management to allocate sequential positive
InstanceIDhandles across 32-bit and 64-bit builds, reserve slot0exclusively for the lazy default instance, and make library initialization and finalization idempotent under Free Pascal - Fixed Windows DLL
*Aentry points and string wrappers to honorDLSetAnsiMode(ANSI vs UTF-8), updateWideReturnStringconsistently forDLStringResultLength, and resolve managedDLCreateBufferpointers across all string arguments - Fixed ActiveX and macOS Dylib wrappers to clamp 64-bit lengths in
GetVirtualFileSizeandGetObjectPathStreamLengthtoMaxIntand guard empty byte arrays in ActiveX*ToVariantmethods
Version 4.28.32
Fixed
- Fixed content-stream peephole optimization so clipping paths (
W/W*) followed by additional path construction andnare never stripped as no-op subpaths, and repeatedgsoperators are preserved whenever an intervening graphics-state or color operator overrides a property restored by theExtGStatedictionary - Fixed content-stream color conversion so
q/Qsaves and restores active fill and stroke color spaces and short-formg/G,rg/RG, andk/Koperators update the tracked device space for subsequentsc/scncalls - Fixed
/Separationand/DeviceNcolor spaces with a/Labalternate space to apply the alternate space's/WhitePointand/Rangeparameters before converting tint-transformed Lab coordinates to RGB - Fixed incremental revision classification to detect cross-reference stream sections per revision and recognize PAdES DSS validation material stored in object streams or referenced indirectly from the document catalog
- Fixed AcroForm JavaScript execution so variables declared inside untaken conditional branches remain bound in scope and non-applied
event.*property assignments validate property names cleanly - Fixed EN 16931 e-invoice XML generation and validation to preserve custom line identifiers, omit VAT rate elements for category
O(BR-O-05), and validate fractional VAT rates and signed tax amounts accurately underBR-CO-17andBR-S-09
Version 4.28.31
Fixed
- Fixed PDF/UA-1 structure tree validation to verify referenced table header IDs, scope table header/cell rules per Table element, count duplicate Note IDs accurately, and bound recursion depth
- Fixed PDF/UA language auditing so empty or invalid /Lang tags on the catalog, structure elements, or marked-content property lists are flagged as invalid and do not satisfy language inheritance
- Fixed tagged form-field flattening on loaded tagged documents when flattening newly added or untagged widget fields without an existing /StructParent entry
Version 4.28.30
Fixed
- Fixed QR Code alphanumeric mode character filtering so digit '0' is preserved, corrected mask penalty rule 4 weighting, and replaced shallow row-pointer copies in TByteMatrix.Assign
- Fixed DataMatrix Corner1 module coordinates in the barcode reader and multi-value C40/Text tail backtracking in the DataMatrix encoder
- Fixed native OCR JSON backslash escaping, locale-invariant decimal formatting, word bounding-box right-edge tracking, and per-glyph confidence averaging
Version 4.28.29
Fixed
- Fixed legacy text extraction advance calculations so character and word spacing follow PDF 1.7 section 9.4.4 without being divided by 1000 or inflated by synthetic spaces
- Fixed legacy text extraction dictionary delimiter tokenization and missing font-resource dictionary guards
- Fixed text funnel character-gap word splitting on right-to-left runs by splitting visual glyph gaps before bidirectional reordering and resetting Bidi/ActualText state on Clear
Version 4.28.28
Fixed
- Fixed TrueType and OpenType metric initialization, bounding box scaling, and glyph-name preservation when loading cmap tables after post tables
- Fixed CMap range-array parsing, two-element range sorting, and multi-section code lookup so later sections are searched before falling back to space
- Fixed Identity-H/V shaping font ascent/descent scaling, TrueType Collection face-index caching for outline and color-font readers, and RTL combining mark ordering in the OpenType fallback shaper
Version 4.28.27
Fixed
- Fixed Direct Access file ID formatting so hexadecimal document identifiers are returned instead of an empty string
- Fixed Direct Access security metadata queries for AES-256 and AES-256-GCM encrypted documents, including passwords longer than 32 characters and extended permission bits
- Fixed Direct Access incremental writer state serialization for 64-bit object offsets and object lengths, and prevented double decryption of compressed object-stream entries during partial decryption
- Fixed Direct Access single-page root normalization, read-only inherited page attribute queries, and indirect page box array resolution
Version 4.28.26
Fixed
- Fixed CMS/PAdES signing and verification for certificates with
id-RSASSA-PSSpublic-key OIDs, external RSA-PSS digest signers, and ML-DSA-44/65 signature size estimation - Enforced on-curve public-key validation in SM2 and Brainpool ECDSA signature verification and closed PFX certificate-store handle leaks on repeated or failed opens
Version 4.28.25
Fixed
- Fixed VC++ DLL wrapper examples so string-taking methods bind to ANSI (
*A) exports, string-returning methods read byte lengths viaDLAnsiStringResultLength,StringParmchecks character'\0', and 64-bitGetCanvasDChandles and current export names are synchronized across all VC++ DLL projects - Fixed duplicate blank page creation in VC++
CanvasDCandCanvasDCLinkexamples and off-by-one byte array truncation andVARIANTcleanup in the VC++ ActiveX wrapper - Fixed page orientation detection before
CapturePagein the Delphi, Lazarus, and C++BuilderCaptureToNewSizeexamples, page number drawing and asset lookup in C++BuilderMultiFunction, and direct-access handle/directory handling and in-memory text extraction in Delphi examples - Fixed document handle leaks, error-path document selection, and multi-layer content stream assignment across the C# and VB.NET ActiveX and DLL examples
Version 4.28.24
Added
- Exposed
AddActionNextTransition,AddLinkToSubmitForm,AddLinkToResetForm,RemoveFormFieldAction, andCreateSelfSignedCertificateExacross the ActiveX COM automation interface (IPDFlibrary5) and macOS/Linux dynamic library (Dylib) Cdecl exports, bringing all three native wrapper surfaces (DLL,OCX, andDylib) into full API parity
Version 4.28.23
Fixed
- Anchored deleted word redline callouts to shifted baseline offsets, chunked pages exceeding 2,000 words, and compared trailing added pages in
SaveRedlineComparisonPDF - Preserved full markup annotation properties during FDF export, decoded octal string escapes, and skipped string literals during key lookup in
ExportAnnotationsToFDFStringandImportAnnotationsFromFDFString - Distinguished counter-clockwise
arcfrom clockwisearcnsweep direction, initialized subpath start coordinates, and bound numeric scalardefconstants in EPS vector conversion - Excluded
<style>blocks from CSS structural child indexing and rejected consecutive combinators in HTML/CSS rendering
Version 4.28.22
Fixed
- Matched the token digest algorithm (SHA-256/384/512 and SHA3-256/384/512) when hashing signature contents for
/AttachedToSigISO/TS 32004 MAC tokens and rejected malformed revision entries inValidatePDFMACChain - Separated annotation
/CAnormalization fromExtGStatedictionaries and composited image soft masks in-place for PDF/A-1a conversion inConvertToPDFA
Version 4.28.21
Fixed
- Enforced orphan and widow line limits (
SetTextFlowMinLinesandSetTextFlowPaginationLines) and rejected completely blocked boxes inDrawTextFlow - Deferred drop cap consumption and rendering in
DrawTextFlowuntil the target box can fit the drop cap span and at least one body line - Applied text flow alignment (
SetTextFlowAlignment) and obstacle wrapping across multi-column layouts inDrawTextFlowColumns
Version 4.28.20
Fixed
- Guarded multi-page TIFF concatenation against empty IFD lists and failed single-page renders in
RenderAsMultipageTIFFToStream - Fixed top-left coordinate pagination, repeated header advancement,
RowHeightapplication, customOnFieldFilterdisplay labels, and dataset bookmark restoration inTPDFlibTableExporter.ExportDataSet
Version 4.28.19
Fixed
- Preserved existing scanline pixels when changing bitmap pixel formats in headless and non-VCL builds instead of clearing the surface or rejecting non-RGB bit depths
- Preserved 1-bit stencil mask semantics and inverted
/Decodepolarity when redacting JBIG2, CCITT, JPEG, and JPEG 2000 image XObjects
Version 4.28.18
Fixed
- Fixed cross-document page copying in
CopyPageRangesandCopyPageRangesExso that indirect objects referenced by/AcroForm /DRresources are cloned and remapped into the destination document before merging form resources, and added hierarchical child field name checks and indirect-reference guards when merging AcroForm fields
Version 4.28.17
Fixed
- Fixed XFA FormCalc function-style
If(cond, a, b)dispatch, isolated variable and field assignments in untakenif ... then ... elseif ... else ... endifbranches, preserved non-Latin-1 Unicode strings across FormCalc function calls, and addedLeftandRightstring functions inEvaluateXFAFormCalcandExecuteXFAFormCalculations
Version 4.28.16
Added
- Enhanced
DrawTextFlowand multi-column text flow layout with rectangular obstacle wrap-around (AddTextFlowObstacleandClearTextFlowObstacles), multi-line initial drop-cap layout (SetTextFlowDropCap), and horizontal alignment including full word-space justification on non-terminal paragraph lines (SetTextFlowAlignment)
Version 4.28.15
Added
- Added a native XFA FormCalc expression evaluator and template calculation runner (
EvaluateXFAFormCalcandExecuteXFAFormCalculations) supporting SOM path resolution, wildcard node aggregation, control-flow blocks, and built-in math, statistical, logical, and string functions, along with visual contract redline comparison PDF generation (SaveRedlineComparisonPDF) that overlays colour-coded insertion underlines and deletion strikethrough callouts with review markup annotations
Version 4.28.14
Added
- Expanded XFDF (ISO 19444-1) and FDF annotation import and export in
ExportAnnotationsToXFDFString,ImportAnnotationsFromXFDFString, andImportAnnotationsFromFDFStringto preserve full markup properties includinginterior-color(/IC),coords(/QuadPoints), line coordinates and endings (/L,/LE,/LL,/LLE,/LLO,/Cap,/CP), cloudy borders and callouts (/BE,/RD,/CL),<vertices>,<inklist><gesture>, rich text and appearance streams (/RC,/DA,/DS), review state models (/IT,/Name,/State,/StateModel), and reply threading (/IRT,/RT)
Version 4.28.13
Added
- Extended PDF 2.0 MAC (ISO/TS 32004:2024) integrity protection to support
SHA-384,SHA-512,SHA3-256,SHA3-384, andSHA3-512digest and HMAC algorithms,/MACLocation /AttachedToSigwithsignatureDigestbinding, and multi-revision incremental chain verification viaValidatePDFMACChain
Version 4.28.12
Added
- Added a scanned-page preprocessing pipeline (
PreprocessScannedPageandPreprocessScannedPageRange) supporting dark border removal, uneven illumination normalization, 3x3 median denoising, Sauvola adaptive binarization, and isolated speckle removal, along with bilinear image rescaling and 1-bit monochrome BMP export
Fixed
- Fixed vertical image flipping so reversed scanline rows are written back into the pixel buffer in place
Version 4.28.11
Added
- Added a PostScript and Encapsulated PostScript (EPS) vector importer via
DrawPostScriptandImportEPSFromFile
Fixed
- Fixed Encapsulated PostScript (EPS) export dash pattern emission (
/d { setdash } def), path close-before-clip ordering forb/b*/B/B*/h/noperators, non-destructive fill-and-stroke path wrapping, and transformed bitmap output
Version 4.28.10
Added
- Added
RenderAsMultipageTIFFToStreamwith multi-page IFD chaining and built-in 24-bit RGB and CCITT Group 4 TIFF encoding when GDI+ is disabled or unavailable
Fixed
- Fixed 16-bit
SHORTstrip offset relocation when concatenating multi-page TIFF streams
Version 4.28.9
Added
- Extended the HTML/CSS selector matcher in
DrawHTMLTextwith adjacent sibling (+) and general sibling (~) combinator support alongside child and structural pseudo-class selectors
Version 4.28.8
Added
- Enhanced
ConvertToPDFAwith PDF/A-1 transparency flattening and ExtGState/XObject normalization, Level A logical structure and/MarkInfosynthesis viaAutoTagPages, and automatic CMYK-to-RGB color space reconciliation
Version 4.28.7
Added
- Extended
EmbedMissingFontswith Linux and macOS native font discovery fallback and addedGetLastFontEmbeddingReportreturning a per-font JSON diagnostic report
Version 4.28.6
Added
ApplyRedactionsnow performs pixel-level partial redaction forDCTDecode(JPEG),JPXDecode(JPEG 2000),JBIG2Decode, andCCITTFaxDecodeimage XObjects by decoding covered pixels and writing lossless Flate-encoded private image streams instead of removing the entire image
Version 4.28.5
Added
CopyPageRangesExnow supports duplicate-field-name conflict flags (PDF_COPY_PAGE_FAIL_DUPLICATE_FIELDS,PDF_COPY_PAGE_SYNC_DUPLICATE_FIELDS,PDF_COPY_PAGE_RENAME_DUPLICATE_FIELDS) matchingMergeDocumentEx, merges non-font/DRresource dictionaries without overwriting target entries, and carries over document-level/Names /EmbeddedFilesand/AFassociated files during page copy and extraction
Version 4.28.4
Fixed
DeleteOptionalContentGroupExnow recursively rewrites marked-content sequences and nested XObject invocations inside Form XObjects and resolves/OCMDmembership dictionaries (including/OCGsarrays and/VEvisibility expressions) when removing or unwrapping layer content
Version 4.28.3
Fixed
- Deleting pages now prunes structure elements and marked-content or object references whose
/Pgtarget was on a deleted page, and moving or inserting pages adjusts/PageLabelsranges so existing pages retain their printed labels
Version 4.28.2
Fixed
- Annotation appearances with constant opacity (
/CA) or an annotation-level blend mode (/BM) now composite as an isolated transparency group on bitmap destinations instead of applying the opacity per drawing operation inside the appearance
Version 4.28.1
Fixed
- Direct Access rendering of encrypted PDFs now decrypts soft-mask transfer function streams (
/TR) and nested stitching or array function streams before evaluating them, instead of reading their encrypted stream bytes as raw function definitions
Version 4.28.0
Changed
- Encoding an RFC 6960 OCSP status request from a subject and issuer certificate pair is now a Small Business capability instead of an Enterprise one. Together with the certificate URL and OCSP response status readers moved in the previous release, a Small Business licence can now discover where a certificate's status is published, encode the OCSP request, post it through its own HTTP stack and read the returned status without an upgrade
- Enterprise keeps everything that reaches a network or draws a trust conclusion: fetching OCSP responses and revocation material over HTTP or LDAP, time-stamp and directory providers, trusted lists, signature path validation, long-term validation and the signed evidence work are all unchanged
Version 4.27.0
Changed
- Reading the revocation service addresses a certificate names, and the status an OCSP response carries, is now a Small Business capability instead of an Enterprise one. Both work on bytes the caller already holds, a certificate taken from a document or a store and a response obtained by other means, so a Small Business licence can now discover where a certificate's status is published and read a response it retrieved itself without an upgrade
- Enterprise keeps everything that needs a network or reaches a conclusion: downloading revocation material, building and posting OCSP requests, time-stamp and directory providers, trusted lists, signature path validation, long-term validation and the signed evidence work are all unchanged. The calls that moved only parse, and validate no trust path
Version 4.26.0
Changed
- Judging what a signature permitted the changes after it to do is now a Small Business capability instead of an Enterprise one. A Small Business licence could already locate a revision and list what changed inside it, but had to upgrade to ask whether the change was allowed; the three calls that answer that question, and the permission level and explanation behind the answer, now come with it
- Enterprise loses nothing it needs trust material or a network for: signature path validation, revocation retrieval, OCSP and time-stamp exchanges, long-term validation and the signed evidence work are all unchanged, because the calls that moved are read-only analyses of a document the caller already holds and validate no trust path
Version 4.25.0
Added
- The Latin American Spanish, Turkish and Traditional Chinese documentation languages are back: their reference pages, release notes, demo guides and offline search entries return alongside the remaining languages, and setup offers them again when picking the multilingual content language
Version 4.24.0
Changed
- The documentation now ships in 13 languages: Arabic, Swedish, Danish, Czech, Turkish, Latin American Spanish, European Portuguese and Traditional Chinese have been retired, and every remaining page, demo guide and offline search entry has been refreshed accordingly
- Setup now maps a retired system language onto the closest available language: Latin American Spanish resolves to Spanish, European Portuguese to Brazilian Portuguese, Traditional Chinese to Simplified Chinese, and the remaining retired languages to English
Removed
- The localized demo Readme pages that existed only for the retired languages are no longer produced or installed
Version 4.23.0
Added
- The two Small Business calls that compare the current document with another one already held in memory are now available from the Windows DLL, the ActiveX control and the macOS dylib, so a caller can compare two open documents without writing either to disk first. On the C surfaces the second document is another instance handle; from Automation it is simply the other control object
- Calls that report through an out parameter now cross the C ABI as caller-allocated pointers that are always zeroed first, so a refused or failed call leaves a defined value behind rather than whatever the caller's variable happened to hold
Fixed
- Six reference pages had lost the
ByRefthat a VB or scripting reader needs on a parameter the call writes to, which made those parameters look as though no result could come back through them - The Automation signature of the two callback setters now shows the parameter as an object, which is what a scripting host actually passes, instead of naming a COM interface type no host has
Version 4.22.0
Added
- The two Small Business calls that report where an incremental revision begins and ends inside a file are now available from the Windows DLL, the ActiveX control and the macOS dylib, and they return a full 64-bit byte offset, so a caller can locate a revision in a document larger than 2 GB
- The external-file variable-content merge is now reachable from the macOS dylib as well, completing a contract the Windows DLL and the ActiveX control already carried
Fixed
- Reference pages no longer disagree with the binaries they describe. Signatures that had drifted from the shipped entry points were corrected across the whole English reference: pages that omitted the UTF-8 form of a call, pages whose parameter list dropped its read-only qualifier and so suggested the library could write into a caller's string, and pages that still showed the Pascal import declaration where a C prototype belongs
- The page for the external-file variable-content merge no longer shows the signature of the current-document merge, and names its own native entry points so a reader is not sent to the wrong one
Version 4.21.0
Added
- The eight Enterprise calls that return opaque bytes are now available from the Windows DLL, the ActiveX control and the macOS dylib: building an OCSP request, fetching an OCSP response and revocation material, fetching a time-stamp token, reading a signature CMS blob, building a time-stamp attribute, and collecting the augmented document from a security-store or time-stamp process
- Binary results report their byte count alongside the data instead of being returned as text, so a caller working with DER, CMS or whole-document bytes never has to guess where the payload ends, and the Automation form returns a byte array
Version 4.20.0
Added
- The capability report now states whether the loaded binary is a Trial build and which marks that build applies to its output, so a caller can detect trial output before saving instead of inspecting a produced file
- Two edition queries were added: one returns the edition name of an instance, and one answers whether the edition includes a feature without parsing the JSON catalog, reporting its own error code for an unknown feature identifier
Version 4.19.0
Added
- Small Business and Enterprise features are now reachable from the Windows DLL, the ActiveX control and the macOS dylib, covering document comparison and revision analysis, Bates numbering, PDF/VCR data merge, e-invoice rule packages, unified preflight and validation reports, PDF/A conversion, Arlington checks, signature trust validation, and PAdES long-term validation and timestamping
- The macOS dylib gained the ANSI entry points for compliance checking, data merge and e-invoice validation that the Windows DLL already offered, and every gated call keeps reporting 900 or 901 through the C ABI on an edition that does not include it
Version 4.18.1
Changed
- Edition gate warnings now name the exact method that requires a higher edition, so a log line identifies the call instead of only its feature group
- The Small Business and Enterprise Lazarus packages now list every edition unit they compile
Version 4.18.0
Added
- Inspect planned OCR, font, printing-profile and renderer dependencies before starting a workflow
- Cancel business workflows with progress reporting, bounded raster work and streamed output while retaining completed deliveries
- Audit immutable source snapshots with fingerprinted Arlington models and track model changes between evidence baselines
- Sign deterministic audit evidence payloads and verify signature integrity separately from explicit signer trust and conformance claims
Version 4.17.1
Fixed
- Visual review preserves source drawing settings and metadata, follows the selected rendering backend and labels page additions and removals consistently
- Batch conversions reuse the selected rendering backend, and audit batch summaries distinguish processing errors from policy rejection and incomplete checks
Version 4.17.0
Added
- Create visual review PDFs with differences marked on source-page copies, including rotated and cropped pages
- Run business conversion presets with per-file results, captured color profiles and hashed delivery manifests
- Inspect local runtime dependencies independently from edition inclusion, implementation coverage and unverified service credentials
- Use the expanded macOS C interface with isolated Single, Small Business, Enterprise and trial builds
Fixed
- Edition and workflow failures now have readable error descriptions
- Free Pascal recognizes valid JPEG headers consistently and honors JPEG quality in Windows raster conversion
Version 4.16.0
Added
- Small Business and Enterprise add escaped HTML and JSON text-difference reports, paginated review PDFs and bounded batches of baseline comparisons
- Enterprise adds policy-based audit evidence with an immutable source fingerprint, explicit completeness, independent per-file batch results and baseline comparison of coverage and findings
Version 4.15.0
Added
- Small Business and Enterprise can freeze supported PDF layers to a selected view, print or export configuration while preserving vector content and reporting unsupported cases before writing
- Small Business and Enterprise add vector rMQR, GS1 DataBar Limited, GS1 DataBar Expanded and MaxiCode generation through an optional architecture-matched encoder runtime
Version 4.14.0
Added
- Every edition can inspect its complete feature catalog before an operation, with edition inclusion kept separate from implementation coverage and runtime readiness
- The edition comparison now distinguishes core format checks from Enterprise validation reports, pipelines and deeper PDF/A, PDF/UA and Arlington audits
Version 4.13.0
Fixed
- PDF/A-4 output-intent checks enforce each document and page scope independently, reject conflicting profile references and duplicate PDF/A intents, and preserve null defaults and legal reference chains
- Inline images reject prohibited direct color-space families while preserving named color resources, device spaces and supported indexed definitions
- Legacy CalCMYK definitions retain an explicit incomplete qualification in older PDF/A parts and remain invalid under the PDF 2.0 rules
- PDF/A-1/2/3 color checks preserve the exemption for unused named color resources without suppressing errors in selected, implicitly used or shared color definitions
- Signature structure checks constrain known SHA-2 digest parameters to NULL or absence while retaining unknown-algorithm boundaries
Version 4.12.0
Fixed
- PDF/A-4 preflight applies each page's effective output intent when checking device color and transparency, preserving independently calibrated pages and distinguishing absent, invalid and unreadable profiles
- PDF/A content checks now reach tiling patterns and soft-mask groups with their associated resources and report incomplete inspection when explicit work or decoding limits prevent a decision
- Signature structure checks reject repeated certificate extension identifiers while preserving unknown extensions and independent certificates
- Bounded Flate decoding requires a complete checked stream and rejects excess expansion without treating legal empty output as a decoding failure
Version 4.11.1
Added
- PDF/A-2/3/4 preflight checks DeviceN ink solidity values, conditional printing order and dot-gain function structure
- Ink mixing checks preserve unused ink entries, private extensions and valid clipped function intervals, with explicit incomplete results when shared work limits prevent a decision
Version 4.11.0
Added
- PDF/A inline-image audits establish bounded raw and supported single-filter data boundaries, including ASCIIHex, ASCII85, RunLength and complete Flate streams
- Unresolved inline-image boundaries retain explicit incomplete results in structured reports
Fixed
- Image pixels containing EI, strings or apparent operators no longer hide real drawing operations or manufacture content and color findings
- CRLF candidate ambiguity cannot be resolved by silently discarding a candidate that exhausted its work budget
- Inline-image options are checked from parsed dictionary entries, preserving ignored private literal and array values
- Inline-image component resolution preserves PDF/A-1 Form and Type3 resource fallback and PDF/A-4 glyph resource priority
- PDF/A-4 content checks report a missing required inline-image Length entry separately from data-boundary evidence
Version 4.10.0
Added
- Signature source audits support stable members of unencoded object streams with bounded header and member mapping
- PDF/A color checks validate DeviceN names and defined attribute structures with part-specific process color-space rules
Fixed
- Signature source checks no longer verify non-PDF numeric headers or object-stream containers outside the selected revision bounds
- Valid NChannel process colorants are distinguished from spot colorants only after their process mapping is qualified
- Direct DeviceN process colors retain the CMYK output-intent exception in PDF/A-1/2/3
- Content checks inspect the normal appearance state streams of buttons, including their own named resources
Version 4.9.1
Fixed
- CMS structure checks reject certificates whose inner and outer signature algorithm identifiers use different object identifiers, while preserving open algorithm parameters
- PDF/A-1/2/3 color checks follow selected DeviceN default alternates and detect cyclic defaults, preserving the CMYK output-intent process-colorant exception
- PDF/A-4 color checks use the explicit resources of Forms, patterns, appearances and Type3 glyphs instead of borrowing outer default color spaces
Version 4.9.0
Added
- Signature source audits support cross-reference streams, hybrid references and mixed historical chains with bounded complete Flate and ASCIIHex decoding and supported TIFF/PNG predictors
- PDF/A-2, PDF/A-3 and PDF/A-4 preflight checks present legal-attestation dictionaries and signature seed legal-attestation structure, preserving optional values and explicit incomplete results
Fixed
- Signature seed dictionaries are saved as required indirect objects and remain readable after saving and reopening, including referenced members and array elements
- Reading seed constraints preserves pending replacements and cached edits instead of reverting to old on-disk values
Version 4.8.0
Added
- PDF/A-2 and PDF/A-3 signature preflight checks exact Contents token ownership and supported plaintext cross-reference revisions, including stable historical signatures and directly nested fields
- Unsupported cross-reference encodings, ambiguous source identities and exhausted source-work limits produce explicit incomplete results
Fixed
- PDF/A-2 and PDF/A-3 Forms and Type3 fonts no longer borrow page default color spaces when their required explicit resource context is absent; glyphs retain their parent font resources
Version 4.7.0
Added
- A bounded CMS signature structure audit checks complete fields, basic DER encoding, signer identity and the embedded certificate framework without conflating structural validity with trust
- PDF/A-2 and PDF/A-3 preflight uses the deeper CMS audit and preserves unsupported encoding choices and exhausted budgets as incomplete results
Fixed
- Extractable signer metadata no longer allows truncated certificate or signature structures to pass the declared PDF/A CMS checks
Version 4.6.1
Fixed
- PDF/A-2 and PDF/A-3 preflight rejects indirect entry values in byte-range signature dictionaries, including unsupported encodings, while preserving permitted references inside descendant dictionaries
- An unspecified signature encoding now produces an incomplete result instead of a false structure violation
- PDF/A-1 widgets require appearances even for point rectangles; later PDF/A parts retain their permitted point-rectangle exemption
Version 4.6.0
Added
- PDF/A preflight checks the structure, input and output dimensions, parameters and required sample data of all four tint function types
- Calculator tint functions are checked for permitted numeric and operator syntax, with explicit incomplete results when decoding or traversal limits prevent a decision
Version 4.5.1
Fixed
- PDF/A preflight validates optional calibrated-color parameters, component ranges and exact Indexed palette lengths, including decoded palette streams
- Shared Form content is audited in each page and color-profile context, preventing missed transparency requirements and ICC profile reuse findings
- Palette decoding failures retain explicit incomplete results within the shared color-audit byte and traversal limits
Version 4.5.0
Added
- PDF/A preflight validates color-space families, supported definition shapes, nested bases and alternates, and default color-space component compatibility
- Color audits report explicit incomplete results when decoding, parsing or traversal cannot finish within published limits
Fixed
- Color-space resource names are resolved only where the PDF format permits them; image and nested definitions no longer inherit illegal resource aliases
- Inline image color-space arrays, permitted abbreviations and escaped content resource names are recognized without treating ordinary resource names as built-in abbreviations
- A default color-space entry no longer counts as device-independent merely because it exists
Version 4.4.1
Fixed
- PDF/A preflight checks directly nested form widgets for appearance and annotation-flag requirements, retaining inherited button types through deep field trees
- Form appearance-generation settings must be absent or Boolean false; malformed values no longer pass silently
- A tiny nonzero annotation rectangle no longer receives the appearance exemption reserved for an exact point
- Valid indirect annotation flags are resolved before inspection
Version 4.4.0
Added
- PDF/A-2 and PDF/A-3 preflight checks recognized public-key signature byte ranges, hexadecimal signature data, a single CMS signer and a matching embedded signing certificate
- Structured validation reports distinguish incomplete signature checks from conformance failures, with warning findings and a separate incomplete-check count
Fixed
- Signature verification accepts the implicit zero padding of a final odd hexadecimal digit
- Signature byte-range offsets retain exact integer values and reject fractional numbers instead of rounding them
- PDF binary file-header markers remain byte-exact across source code pages in normal, Direct Access and QDF output
- PDF/A coverage selectors now match the actual PDF/A-2 and PDF/A-3 writer mode numbers
Version 4.3.2
Added
- PDF/A preflight checks actions on nonterminal and nested form fields and reports malformed, cyclic, shared or excessively deep field hierarchies with explicit audit limits
Security
- Document loading bounds field traversal and inherited-property lookup so cyclic or excessively deep form structures cannot overflow the call stack
Version 4.3.1
Fixed
- Revision analysis no longer releases parsed objects twice, which could return zero revisions or cause an access violation with Free Pascal
- Non-Windows builds compile transparency-group rendering again after recent rendering changes
- Native backend capability reports now identify the instance edition and show whether each capability is included, separately from implementation coverage and optional runtime availability
- Capability descriptions now reflect multi-channel color conversion, proofing, transparency-group blending and directory-backed revocation retrieval already supported by the library
Version 4.3.0
Changed
- The library now comes in three editions that build on each other: Single (the standard edition), Small Business and Enterprise. The Small Business edition adds document comparison and revision analysis, e-invoice business-rule validation, Bates numbering and PDF/VCR data merge; the Enterprise edition includes every Small Business feature and keeps its own features
- Document comparison and revision analysis are Small Business features: CompareWith, CompareDocumentTextsWith, ComparePageTextsWith, CompareDocumentVisualsWith, CompareRenderedPagesWith, CompareFileVisuals, AnalyzeModifications with its finding accessors, the GetDocumentRevision methods, GetSignatureRevisionIndex and ExtractDocumentRevision
- E-invoice business-rule validation (ValidateInvoiceBusinessRules and its BuiltIn, WithPackage and WithTools variants, the invoice rule package methods and GetBuiltInInvoiceRuleCatalog) moves from the Enterprise edition to the Small Business edition; Factur-X and UBL invoice generation and ValidateFacturXInvoice remain in every edition
- Bates numbering (AddBatesNumbering) and PDF/VCR data merge (ExecuteVCRDataMerge, ExecuteVCRDataMergeCurrent and the DLL and ActiveX ExecuteVCRDataMergeEx) are Small Business features; creating and checking PDF/VCR templates and reading their manifest remain in every edition
- In the Single edition these methods keep their signatures and report LastErrorCode 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED); Delphi, C++Builder and Lazarus code creates TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise, which now descends from it. DLL and ActiveX exports and the type library are unchanged; each edition ships its own DLL and ActiveX build
- The visual comparison records (TPDFVisualCompareOptions, TPDFVisualCompareResult, TPDFVisualBitmap and related types) and PLDefaultVisualCompareOptions move to the new unit PDFlibVisualCompareTypes, available in every edition; code that used them through PDFlibVisualCompare adds that unit
- New SmallBusinessLab samples for Delphi, C++Builder and Lazarus show document comparison, invoice business-rule validation, Bates numbering and PDF/VCR data merge; build scripts and the Lazarus package PDFlibPasLazSmallBusiness accept the Small Business edition
Version 4.2.1
Fixed
- Trial builds now mark signatures, document timestamps, DSS and long-term validation output: these incremental updates bypassed the page watermark of full saves, so each one now appends (losLab PDF Library TRIAL VERSION) to the document Producer, keeping the existing document information
- The trial edition includes the Enterprise features, so these outputs were the ones a trial could produce without any trial marking
Version 4.2.0
Changed
- Certificate-based (public-key) encryption is an Enterprise feature: EncryptPublicKey and AddPublicKeyRecipientFromFile, AddPublicKeyRecipientFromPFX and AddPublicKeyRecipientFromStore report LastErrorCode 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED) in the standard edition
- Opening certificate-encrypted documents stays in every edition: SetPublicKeyDecryptionPFX, SetPublicKeyDecryptionStore and ClearPublicKeyDecryptionCredential work as before
- The recipient envelope builder moves to the Enterprise unit PDFlibEntPubSec, which the Enterprise edition links in; DLL and ActiveX exports are unchanged
Version 4.1.0
Changed
- PAdES long-term validation and timestamping are Enterprise features: Document Security Store processes, LTV and LTA promotion, signature and document timestamps, the timestamp server settings, and OCSP, CRL and LDAP revocation retrieval
- Signature validation and EU Trusted Lists are Enterprise features: TPDFlibSignatureVerifier, trust sources, the EU trusted-list loader and the signature modification verdict methods (GetSignatureModificationVerdict, GetSignatureModificationDetail, GetSignatureEffectiveMDPLevel)
- Signing, signature fields, seed values, EnumSignatures and the signature inspection methods (contents hash, embedded certificates, certificate chains) remain in every edition
- In the standard edition these methods keep their signatures and report LastErrorCode 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED); DLL and ActiveX exports are unchanged
- TPDFlibSignatureVerifier, TPDFlibSignatureTrustSource, TPDFlibDSSProcess, TPDFlibSignatureTimeStampProcess and the verification report types move from PDFlibDigitalSign to the Enterprise unit PDFlibEntSignVerify; code that uses them adds that unit
- The certificate path helpers (key identifiers, issuer search, chain building) move to the new PDFlibCertChain unit, available in every edition; PDFlibRevocationSources keeps the revocation URL and OCSP helpers
Version 4.0.0
Changed
- The library now comes in a standard edition and an Enterprise edition. Compliance validation and preflight reports (PDF/A, PDF/UA and Arlington checks, validation pipelines, preflight and structured validation reports, PDF/A conversion), secure redaction (ApplyRedactions, RedactRegion) and e-invoice business-rule validation are Enterprise features
- PDF/A, PDF/UA and PDF/X generation, redaction annotations, SanitizeDocument, Factur-X and UBL invoice generation and ValidateFacturXInvoice remain in every edition
- In the standard edition the Enterprise methods keep their signatures: they return 0, an empty string or False and set LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED). DLL and ActiveX exports, their ordinals and the type library are unchanged
- Enterprise applications create the library as TPDFlibEnterprise from the new PDFlibEnterprise unit instead of TPDFlib; the Enterprise DLL and ActiveX builds do this internally, so their callers change nothing
- The PKCS#11 and Cloud Signature Consortium signing clients (PDFlibPKCS11, PDFlibCSC) and the invoice business-rule validator (PDFlibInvoiceValidation) are Enterprise units. The invoice data model and validation report types move to the new PDFlibInvoice unit, available in every edition; code that uses those types adds PDFlibInvoice to its uses clause
- TPDFlibSignatureVerifier.SetNativeOCSPRequestPKCS11 accepts any TPDFlibExternalSigningKey, the hardware signing key type that TPDFlibPKCS11Client now derives from; existing calls compile unchanged
Added
- PDFlibPasLazEnterprise.lpk, the Enterprise Lazarus package, which replaces PDFlibPasLaz in Enterprise installations
- The library, DLL and ActiveX build scripts take an enterprise argument that builds the Enterprise edition; Enterprise DLL and ActiveX binaries are written to the Enterprise subfolder under their usual file names
Version 3.730.79
Fixed
- Axial and radial shadings in CalGray, CalRGB and ICCBased colour spaces are now colour managed when rendered, using the space's gamma, matrix and white point or its ICC profile, instead of reading the values as device colour
Version 3.730.78
Fixed
- Mesh shadings (types 4 to 7) in DeviceN spaces with more than four colorants are now rendered; they were rejected and left blank
Version 3.730.77
Fixed
- Separation colours with a CalGray alternate, and DeviceN colours with a DeviceGray or CalGray alternate, now render in their tint instead of black
Version 3.730.76
Fixed
- Images marked /Interpolate true are now drawn smoothed when rendering even with smooth images switched off, as the image's author asked
Version 3.730.75
Fixed
- Soft masks whose transparency group is in CMYK now use the backdrop colour given in /BC correctly; it was read as RGB, which turned a white CMYK backdrop black and hid the masked content
Version 3.730.74
Fixed
- Rendering now follows the rule that the Separation colorant None marks nothing: fills and strokes in such a colour space leave the page unchanged instead of being painted in the alternate colour
Version 3.730.73
Added
- DrawMicroQRCode draws Micro QR Codes (M1 to M4) with error correction levels L, M and Q, choosing the smallest symbol that holds the text in numeric, alphanumeric or byte mode
Version 3.730.72
Added
- PNG images loaded with colour management (options 7 and 8) now honour the sRGB, gAMA and cHRM chunks when no ICC profile is embedded, using the sRGB profile or a CalRGB/CalGray colour space instead of plain device colour
Version 3.730.71
Added
- SVG filter effects are now drawn: elements with feGaussianBlur, feOffset, feFlood, feColorMatrix, feComposite and feMerge (for example drop shadows, blurs and desaturation) are rendered as images with soft-mask transparency instead of being drawn without their filter
Version 3.730.70
Fixed
- A PDF/R document can now be saved more than once: saving no longer leaves the current page with a second content stream that failed the PDF/R checks on the next save
Version 3.730.69
Added
- Markdown text now supports reference-style links ([text][label], [text][] and [label] with [label]: url definitions) and footnotes, which become superscript numbers with the notes listed at the end
Version 3.730.68
Fixed
- AddPDFA3AssociatedFileFromString now accepts documents in PDF/A-4f mode, which permits associated files of any format just as PDF/A-3 does
Version 3.730.67
Fixed
- SVG masks are now drawn as luminance soft masks instead of hard clips, so grey levels, gradients and opacity in a mask let the masked content through in proportion
Version 3.730.66
Fixed
- ML-DSA signatures and keys are now identified by the FIPS 204 object identifiers (id-ml-dsa-44, -65 and -87); earlier releases wrote identifiers that belong to DSA, so other validators could not recognise the signatures. Certificates and signatures written by earlier releases still open and verify
Version 3.730.65
Fixed
- On Windows, certificate chains that involve Ed25519, Ed448, ML-DSA or SM2 certificates are now built and checked by the library against the configured trust anchors, including validity periods, CA constraints and DSS CRLs, instead of failing in the Windows chain engine with an unknown result
Version 3.730.64
Fixed
- Without a platform shaping engine, text that mixes right-to-left and left-to-right writing is now split by the Unicode bidirectional algorithm and each run is shaped in its own direction, so numbers and embedded English keep their order; characters the selected font lacks come from fallback fonts already added to the document, and vertical writing uses the selected font instead of falling back to horizontal text
Version 3.730.63
Added
- AutoTagPages tags pages that have no marked content: lines of text become paragraphs and size-based headings under a Document element, other drawing is marked as artifacts, and the parent tree, tab order and tagged flag are set
Version 3.730.62
Added
- ConvertToPDFR replaces the selected document with a PDF/R copy made of one JPEG raster per page at a chosen resolution, keeping the original when the conversion fails
Version 3.730.61
Added
- ConvertToPDFE turns an opened document into a PDF/E-1 engineering document: it removes XFA forms and alternate presentations, embeds fonts, adds the PDF/E identification, output intent and lifecycle metadata and checks the result, with GetPDFEConversionReport explaining the outcome
Version 3.730.60
Added
- ConvertToPDFX prepares an opened document for print exchange as PDF/X-1a, PDF/X-3, PDF/X-4 or PDF/X-6: it sets the printing condition from a press profile, embeds fonts, adds missing trim boxes, colour-manages device RGB for the parts that allow it and checks the result, with GetPDFXConversionReport listing the changes and any remaining issues
Version 3.730.59
Fixed
- Copying, extracting and splitting pages of a tagged document now keeps the structure of the copied pages: their structure elements, role map and annotation links come along and the parent tree is rebuilt, so the result stays tagged
Version 3.730.58
Fixed
- SVG text placed with textPath now follows its path, character by character, instead of being dropped
- SVG text can now be stroked or outlined and takes underline, overline and line-through decoration
- A nested svg element now places, clips and scales its content by its own viewport and viewBox, switch draws only its first matching child, and images honour preserveAspectRatio
Version 3.730.57
Fixed
- SVG linear and radial gradients with opaque stops are now drawn as smooth PDF shadings instead of visible colour bands
- SVG pattern fills now size their tiles in fractions of the shape by default, start the tiling at the pattern's x and y, and apply patternTransform and patternContentUnits, so patterns no longer collapse into tiny repeated tiles
Version 3.730.56
Added
- HTML text now honours CSS font-family: a font family can be registered by passing its name as the FontSet argument of SetHTMLNormalFont, SetHTMLBoldFont, SetHTMLItalicFont and SetHTMLBoldItalicFont, and the generic serif, sans-serif and monospace families map to the standard Times, Helvetica and Courier faces
- Bold and italic text, from CSS or from b, strong, i and em, now uses the bold and italic faces of the font family in use instead of falling back to the default faces
Changed
- A FontSet name other than Default in the HTML font setters now registers a font family and no longer replaces the default HTML font
Version 3.730.55
Added
- HTML text boxes now honour page-break-before, page-break-after, break-before and break-after, ending the box at the element and returning the rest as the continuation
- HTML styling now applies the margin shorthand and left margin, text-indent, letter-spacing, list-style-type with alphabetic, roman and no markers, and dashed or dotted borders, all of which were previously ignored
Version 3.730.54
Fixed
- Arabic, Hebrew, Indic and other complex-script text in DrawHTMLText, DrawMarkdownText, DrawSVG and the text box functions is now shaped like DrawText output: letters join, right-to-left runs read in order, combining marks sit on their bases, and the text extracts back to its source characters
Version 3.730.53
Fixed
- Transparency groups now start from the colours, line widths and other graphics state in force where they are painted, instead of black and the defaults
- Knockout transparency groups now let each filled or stroked shape replace what the group drew under it rather than mix with it
- Non-isolated transparency groups with a group opacity now blend their contents with the page behind them, so blend modes inside the group see the real backdrop
- A clipping path set before a transparency group is painted now limits the group, which could previously spill outside it
Version 3.730.52
Fixed
- Pages that use soft masks, blend modes or isolated and knockout transparency groups now look the same when rendered to a device context, a tile, a printer or a metafile as they do in bitmap rendering; previously these outputs drew such content opaque
- FlattenTransparency, which rasterises through the tile renderer, now keeps the composited appearance of transparent content instead of flattening it to its opaque look
Version 3.730.51
Fixed
- Historical signature validation now builds a proof-of-existence chain: each timestamp's authority must be valid at the time proven by the next newer timestamp, newest first, so an expired timestamp authority with no later renewal no longer vouches for itself
- A signer certificate revoked for key compromise or CA compromise is no longer accepted by moving validation back to an earlier proof time
- The historical validation report gains the signer's claimed signing time and flags signing times later than their timestamps, timestamps out of revision order, and document timestamps that could not be proven
Version 3.730.50
Fixed
- EU trusted-list qualification is now evaluated both at the verification time and when the signer certificate was issued; a certificate counts as qualified only if the service granted that status at both times, and the qualification report gains the issuance time and the status found then
Version 3.730.49
Added
- CompareDocumentTextsWith compares the text of two whole documents word by word or line by line, across page boundaries, and returns a JSON report of each differing run with the pages it starts on and the text on both sides
Version 3.730.48
Added
- PDF portfolios can now organise their attachments in folders: AddCollectionFolder creates a folder path such as Contracts/2026 and returns its ID, and SetCollectionItemFolder moves an embedded file into a folder or back to the top level; files keep answering to their plain names in the other portfolio functions
Version 3.730.47
Fixed
- Copying, extracting and splitting pages now carries the named destinations that point at the copied pages, renaming any that clash with a name already in the target document and updating the copied links to match, and keeps each copied page's page label instead of renumbering it from 1
Version 3.730.46
Fixed
- PAdES baseline classification now checks that the signing-certificate attribute names the actual signer certificate, requires each level to build on the one below, counts B-LT only when the DSS holds revocation data rather than certificates alone, and grants B-LTA only for a document timestamp beyond the one that may already serve as B-T; the historical validation report gains a SigningCertificateStatus field
Version 3.730.45
Added
- HTML styling now supports the child combinator (ul > li) and the :first-child, :last-child, :only-child and :nth-child() pseudo-classes, including odd, even and an+b arguments; rules with pseudo-classes that have no meaning in a static document, such as :hover, are ignored instead of discarded with the rest of the stylesheet
Version 3.730.44
Fixed
- Text extraction with right-to-left reordering keeps numbers in reading order, including Arabic-Indic digits and dates such as 12/05, no longer reverses Greek, Cyrillic, CJK and other left-to-right scripts, and leaves the space between a right-to-left word and left-to-right text where it belongs
Version 3.730.43
Fixed
- MergeDocument and page copying no longer let a form's field resource font replace a different font of the same name in the target form; the incoming font is renamed and its fields' default appearances follow the new name, so both forms keep their fonts when appearances are regenerated
Version 3.730.42
Fixed
- LinearizeFile now reports failure when the linearization parameter dictionary does not fit the space reserved for it, instead of writing a file with blanks where the dictionary belongs
Version 3.730.41
Fixed
- The built-in renderer now resolves the base colour space of uncoloured tiling patterns given by resource name or inline array, so hatching in Separation, DeviceN, ICC-based, indexed or Lab colour renders in its tint instead of a guessed gray or RGB colour
Version 3.730.40
Fixed
- Direct Access rendering of encrypted documents now decrypts explicit image masks and JBIG2 global segment streams, so masked scans and JBIG2 images that share global data no longer render garbled or missing
Version 3.730.39
Fixed
- DeletePages now removes form fields whose widgets were only on the deleted pages, so the form no longer reports fields that no page shows
- DeletePages removes named destinations that pointed at the deleted pages
- DeletePages renumbers page labels so the remaining pages keep the labels they showed before
Version 3.730.38
Added
- DeleteOptionalContentGroupEx deletes a layer and either removes the content it controls, including bound XObjects and annotations, or keeps that content as ordinary page content; deleting a layer that was hidden by default no longer has to reveal it
Version 3.730.37
Fixed
- The built-in renderer no longer draws annotations that belong to a hidden optional content layer
- The built-in renderer applies an annotation's constant opacity (CA), so semi-transparent markup and stamps no longer render fully opaque
- Printing through the Cairo and PDFium printer paths now follows the annotation Print flag like GDI printing
Version 3.730.36
Fixed
- Copying, extracting and splitting pages, and merging documents, now carry the layers (optional content groups) the pages use together with their default state; content in a layer that was hidden by default no longer becomes visible in the result
- A link or form widget on a copied page that pointed at a page left behind now gets a null target instead of a reference to the target document's first object
Version 3.730.35
Changed
- ConvertToPDFA now removes additional-actions entries and the action types PDF/A forbids from pages, annotations and form fields, keeping navigation actions
- ConvertToPDFA regenerates form field appearances and repairs annotation appearances before clearing NeedAppearances, and embeds missing fonts from the matching installed faces
- ConvertToPDFA removes hidden annotations instead of making them visible, and writes a PDF 2.0 header when converting to PDF/A-4
- When a conversion does not conform, the report now lists every remaining issue instead of only the first
Version 3.730.34
Fixed
- EmbedMissingFonts and EmbedFontProgram no longer embed the substitute font Windows picks for a family that is not installed; the font stays unembedded instead of receiving a program whose glyphs and widths differ from the original
- Bold and italic variants named in the BaseFont, such as Arial,Bold or Arial-BoldMT, now embed the matching installed face instead of the regular one
- A CIDFontType0 font no longer receives a TrueType program labelled as compact font format; only an OpenType CFF program is embedded there, as FontFile3 /OpenType
Version 3.730.33
Fixed
- DrawImage and DrawImageMatrix now apply the PDF/A and PDF/X colour gates that fill colours already had, so an RGB photo in a PDF/X-1a document or a CMYK JPEG in a PDF/A document with an RGB output intent is refused with error 601 instead of producing a non-conforming file
Version 3.730.32
Fixed
- PDF/X-1a, PDF/X-3 and PDF/X-4 documents no longer get the bundled sRGB profile labelled as a four-component CMYK output profile, which external preflight tools reject; load the CMYK profile of the print condition with LoadOutputIntentProfile
- PDF/X preflight now checks that the embedded output profile's colour space matches its component count, so such a mislabelled profile is no longer accepted
- LoadOutputIntentProfile refuses a profile whose colour space differs from the requested one
Version 3.730.31
Fixed
- Flattening annotations and form fields now places each appearance by its BBox and Matrix, so appearances whose box does not start at the origin, such as those written by many third-party editors, and widgets rotated with the page no longer shift, stretch or get cut off
- Annotations and widgets flagged Hidden or NoView are no longer drawn into the page when flattened
- FlattenFormField generates a missing appearance before flattening, and keeps a field that holds a value but has no appearance instead of deleting it and reporting success
Version 3.730.30
Fixed
- The built-in renderer draws a zero line width as the thinnest device line, one pixel wide, instead of one user unit that grew with the transformation; hairlines in scaled CAD drawings no longer turn into thick bars
- Line widths above 1000 user units are no longer replaced by 1, so drawings in very small user units keep their line weights
Version 3.730.29
Fixed
- HTML and SVG style sheets no longer lose every rule that follows an @media, @supports, @page or @font-face block; the parser now follows brace nesting
- Rules inside @media blocks that select print (print, all, or a query without a media type) and inside @supports blocks now apply, while @media screen rules are skipped
Version 3.730.28
Fixed
- The built-in renderer now collects the glyph outlines of text clipping modes 4 to 7 across a whole text object and adds their union to the clip at the end of the object, so multi-line text used as a mask shows the content behind every line instead of nothing
Version 3.730.27
Fixed
- The built-in renderer now applies the constant fill opacity (ca) to images and inline images; a semi-transparent watermark image drawn on Windows was painted fully opaque, and on other platforms took its opacity from whatever had been filled before it
Version 3.730.26
Added
- Signing a seeded signature field now enforces the /MDP permission level, a required /LockDocument, and the certificate policy (OID) and subject name (SubjectDN) constraints; fields that required the policy or subject-name constraints could not be signed before
Fixed
- A seed-value issuer constraint now accepts a signing certificate issued indirectly by a listed CA, walking the chain the signing identity carries, instead of only a direct issuer
- A field that requires a named appearance (AppearanceFilter) is refused with a message naming it instead of a generic unsupported-constraint error
Version 3.730.25
Added
- SetSignProcessIgnorePermissions lets a signing process knowingly sign where an earlier certification or field lock forbids it
Changed
- Signing now stops with result 17 when an existing signature certifies the document at permission level 1 or locks the field about to be signed, instead of silently producing a document whose earlier signature reads as modified; document time stamps remain allowed at every level
- GetSignProcessSeedValueError names the earlier signature that forbids the new one
Version 3.730.24
Fixed
- GetSignatureModificationVerdict applies a field lock only to the updates made after the signature that set it, so filling a field before it was locked is no longer reported as a violation
- Countersigning a document that carries a field lock no longer turns the earlier signature's verdict into "undetermined"; the new signature's bookkeeping is attributed to its own field and judged against the lock
Version 3.730.23
Changed
- Redaction now overwrites only the covered pixels of an image stored without compression or with Flate, LZW, RunLength or ASCII filters, instead of removing the whole image; a scanned page or screenshot keeps everything outside the region
- Images in other encodings, such as JPEG, JPEG 2000, JBIG2 and CCITT, are still removed whole when they meet the region
- An image that another page also draws is redacted through a private copy, so the other pages keep the original
Version 3.730.22
Security
- ApplyRedactions now redacts each quadrilateral of a /QuadPoints redaction instead of its whole bounding rectangle, so text between the marked lines is no longer removed
- Redaction now removes annotations under the region and clears the value of form fields whose widgets are there; earlier releases left them, including their text and field values, in the saved file
Fixed
- Redacting a Form XObject that other pages also draw no longer removes the covered content from those pages; the redacted page draws a private copy
- RedactRegion with Options 0 draws its black box once on top of the remaining content instead of underneath it on every content layer
Version 3.730.21
Security
- RedactRegion and ApplyRedactions now measure text glyph by glyph from the page fonts, honoring the full text matrix, line leading, character and word spacing, horizontal scaling and composite-font CMaps; earlier releases estimated text extents from the character count and ignored the text matrix scale and line moves, so text set with a unit font size and a scaled text matrix, or reached through T*, could survive under the black box and remain extractable
- Inline images and shadings painted into a redacted region are now removed; earlier releases left them in the content stream
Changed
- Redaction removes only the glyphs inside the region and keeps the rest of the string at its original position, instead of deleting every string that touched the region
- Text whose font cannot be measured is removed whenever a generous one-em-per-byte estimate reaches the region
Version 3.730.20
Security
- Certificate-encrypted (public-key) documents addressed to EC or SM2 recipients are now protected by the recipient private key: EC recipients use an RFC 5753 ECDH key agreement with AES-256 key wrap, and SM2 recipients use GB/T 32918.4 SM2 public-key encryption; earlier releases wrapped the file key for these recipients in a way that anyone holding the public certificate could reverse when the envelope was built by the cross-platform path, which is used for SM2 recipients on Windows and for every recipient on macOS and Linux
- Content keys, IVs and RSA padding for certificate encryption now come from the system secure random source instead of being derived from the document seed
Fixed
- The cross-platform certificate decryption path now opens envelopes for EC and SM2 recipient keys, including RFC 5753 envelopes written by other CMS tools such as OpenSSL; previously it accepted RSA keys only
- Corrected a curve coefficient of the built-in SM2 curve; SM2 signing and verification were unaffected, while SM2 encryption and public-point validation now succeed
Version 3.730.19
Added
- PDF/UA validation now reports artifacts nested inside tagged content (rule
10084) and tagged content nested inside artifacts (rule10085), for both PDF/UA-1 and PDF/UA-2 (ISO 14289-1 §7.1) - The nesting check follows Form XObjects: a form that contains tagged content and is painted inside an artifact, or contains artifacts and is painted inside tagged content, is reported as well
- The PDF/UA-2 coverage report lists the new artifact-nesting check, and names the classification of content as real content or artifact as a human-review item
Version 3.730.18
Added
- PKCS#11 tokens can now produce RSA-PSS signatures: the token client signs a digest with RSA-PSS, using MGF1 over the same hash and a salt as long as the digest
- Signed native OCSP requests can now use a token key whose certificate is an RSASSA-PSS certificate; such requests are signed with SHA-256, MGF1 with SHA-256 and a 32-byte salt
Changed
- Token discovery now accepts RSASSA-PSS certificates paired with RSA keys, and such a key refuses PKCS #1 v1.5 signatures
- A token RSASSA-PSS certificate whose parameters require another digest or a longer salt is rejected before the token is asked to sign an OCSP request
Version 3.730.17
Added
- Native OCSP requests on Linux and macOS can now be signed with a key on a hardware token: TPDFlibSignatureVerifier.SetNativeOCSPRequestPKCS11 takes a configured PKCS #11 client and the CA certificates to send, and RSA, ECDSA and Ed25519 or Ed448 keys sign the request without leaving the token
- Token-signed requests follow the same profile as PFX identities: SHA-256 (or plain EdDSA), the requestor name taken from the certificate subject, the signer and CA certificates, and the existing nonce, GET/POST and certificate validity and key usage checks
- TPDFlibPKCS11Client.SignEdDSA signs a message with an Ed25519 or Ed448 token key
Version 3.730.16
Fixed
- The PKCS #11 client now works with token modules on 64-bit Linux and macOS: token, session, object and length values use the platform's C unsigned long width there, where they were read as 32-bit values and corrupted slot lists and attribute reads
- Identity discovery on Linux and macOS no longer rejects every token certificate as invalid; the certificate is parsed directly instead of through a Windows-only certificate store, with unchanged results on Windows
- Tokens holding Ed25519 or Ed448 certificates with EdDSA keys are now discovered, and a certificate whose key type differs from the token key is still rejected
Version 3.730.15
Added
- Text search now finds words whose letters change font, such as a word with one bold or italic letter: adjacent text blocks that touch on the same baseline are matched as one word, while blocks separated by a gap stay separate words
- Such a hit belongs to the block where it starts, its MatchText runs through the block where it ends and its rectangle covers all of those blocks; matches inside a single block are reported exactly as before
- Exact text replacement can replace these words as a whole, and soAcrossLines searches no longer insert a space between blocks that continue one word
Version 3.730.14
Fixed
- Exact text replacement no longer rewrites glyphs inside marked content that carries ActualText, or whose structure element (or one of its ancestors) carries ActualText; that ActualText states what the content reads as and would have gone stale, so such matches are now rejected with a diagnostic and the page stays unchanged
- The check also covers Forms shown inside such marked content and property lists referenced through the Properties resource, while other marked content such as Lang-only spans keeps being edited as before
Version 3.730.13
Changed
- When replacement text needs a character-collection CID that stands for a Unicode variation sequence and the substituted system font does not declare that sequence, the replacement diagnostics now name the CID and the sequence instead of only reporting a missing glyph; the base character's glyph is a different form and still does not stand in
Version 3.730.12
Fixed
- Unembedded TrueType CID fonts that use Identity-H, Identity-V or a custom CMap with an Adobe Japan1, GB1, CNS1, Korea1 or KR descendant now draw the collection's characters from the substitute font; previously their CIDs were used as glyph indices and showed unrelated glyphs
- The same fonts now qualify for exact text replacement and text-to-path output with verified glyphs; a descendant with the Adobe-Identity collection still gives no glyph meaning to a substitute font
Version 3.730.11
Fixed
- CMYK TIFF images compressed with 12-bit or arithmetic-coded JPEG whose Adobe APP14 marker declares YCCK (color transform 2) now import with correct colors: the YCbCr components are converted back to cyan, magenta and yellow and combined with the stored black component; previously the YCbCr values were embedded as if they were ink amounts
- The converted samples stay ink amounts without inversion, the same rule as other TIFF CMYK JPEG data and as readers apply to 8-bit YCCK DCTDecode data
- Application segments in shared JPEGTables still never change the color transform of an image block
Version 3.730.10
Fixed
- CompressImages now applies to TIFF images whose samples are stored uncompressed in the PDF, which includes every TIFF that the library decodes before embedding: 12-bit, lossless and arithmetic-coded JPEG, floating-point and 32-bit samples, CIELab, YCbCr outside JPEG, separate planes and fax data that is converted to plain samples
- With CompressImages enabled these image streams, and the soft masks made from TIFF alpha channels, are Flate-compressed; previously they were always written uncompressed whatever the setting, while the samples themselves are unchanged
- Without CompressImages the output stays as before, matching BMP images
Version 3.730.9
Fixed
- Old-style JPEG TIFF images (Compression 6) with grayscale or RGB samples whose strips hold bare entropy-coded data now import correctly: the strips are rebuilt as complete JPEG streams with the shared tables, as for YCbCr images; previously such strips were embedded unchanged and displayed as a blank image
- Grayscale and RGB old-style JPEG with table offset fields now import as well, and RGB samples keep their values without a YCbCr color transform
Version 3.730.8
Fixed
- Classic strip TIFF images whose Compression value the library does not implement, such as PixarLog (32909), SGILog (34676 or 34677), JBIG (9) or ZSTD (50000), are now rejected with an error that names the compression value; previously 8-bit chunky images of this kind were accepted and could import as a blank image
- Such files now report an invalid TIFF and AddImageFromFile, AddImageFromStream and AddImageFromString return 0 without adding an image
Version 3.730.6
Fixed
- TIFF images with 12-bit JPEG compression (SOF1, SOF2, SOF9 or SOF10) in RGB, CMYK or YCbCr now import as release notes 3.721.0 and 3.723.0 describe; until now only 12-bit grayscale passed the color-model checks and color images failed with an unsupported sample layout error
- 12-bit RGB and CMYK samples are decoded to 16-bit image data like 12-bit grayscale, which needs PDF 1.5; CMYK stays as ink amounts without inversion even when the JPEG data carries an Adobe APP14 marker
- 12-bit YCbCr is converted to RGB with the JFIF equations from the JPEG frame's own sampling factors, matching decoded 8-bit arithmetic-coded YCbCr, so the TIFF YCbCrCoefficients, YCbCrSubSampling and ReferenceBlackWhite fields do not change the colors
- The decoded-size limits for 12-bit JPEG TIFF images now count the 16-bit samples that decoding produces
- Separate 8-bit or 16-bit RGB or CMYK planes stored as lossless JPEG (SOF3), one single-component frame per plane, import with their samples interleaved losslessly; 12-bit and arithmetic-coded JPEG in separate planes still produce an explicit error
Version 3.730.5
Added
- When an installed variable font substitutes for an unembedded font, the font descriptor now selects its axis coordinates: FontWeight sets the weight axis, FontStretch the width axis, a nonzero ItalicAngle the slant axis and the Italic flag the italic axis, so a semibold or condensed font is no longer drawn from the default instance
- A face name or Fontconfig match that names a non-default instance still takes precedence; values are clamped to the axes the font declares, and rendering, text-to-path output and exact text replacement all use the same instance
Version 3.730.4
Changed
- When replacement text needs a character-collection CID that stands for several Unicode characters and the substituted system font cannot draw that sequence exactly, the replacement diagnostics now name the CID, its Unicode sequence and the reason, such as a combining mark the font does not cover, instead of only reporting a missing glyph
Version 3.730.3
Added
- Unembedded text drawn with a named instance of an installed variable font, such as a Windows face like "Bahnschrift SemiBold" or a bold request that Fontconfig answers with a variable font on Linux and macOS, now uses that instance's outlines instead of the default instance
- Variable fonts expose their named instances (names, coordinates, default flag), and a named instance can be found by its full or PostScript name and turned into a static font
Version 3.730.2
Fixed
- Instantiating a variable font no longer fails with a range-check error in applications built with range or overflow checking enabled; the font table checksums now wrap as the OpenType format requires
Version 3.730.1
Added
- Exact Unicode replacement also edits a tagged Form shown inside a Form that several pages share, as long as each Form on the path is shown once on the edited page; the enclosing Forms are copied for that page and the other pages keep the originals
Version 3.730.0
Added
- Exact Unicode replacement can now edit text inside a tagged Form XObject that several pages share: the edited page gets its own copy of the Form, linked into the structure tree under a new parent tree key, while the other pages keep showing the original
- The shared case requires the page to show the Form once directly and every marked-content or object reference of the Form to name its page; Forms shown twice on one page or nested in a shared Form are still rejected with a specific reason
Version 3.729.9
Changed
- The native backend capability report now has 23 entries: barcode recognition and skew analysis are listed, the probe report states whether the OpenType shaping engine library loads, and the Freshest CRL entry reflects LDAP and directory-name retrieval
Version 3.729.8
Added
- Freshest CRL advertisements that name only their CRL issuer, or a name relative to the CRL issuer, are now retrieved through the directory server set in NativeCRLDirectoryURL, completing directory resolution for every distribution point name form
Version 3.729.7
Added
- Freshest CRL advertisements in a CRL or certificate that name only a directory entry are now retrieved through the directory server set in NativeCRLDirectoryURL, so delta CRL coverage published only in a directory can satisfy a required Freshest policy
Version 3.729.6
Added
- Native CRL checking resolves distribution points that give a name relative to the CRL issuer (RFC 5280 nameRelativeToCRLIssuer) through the configured directory server, appending the relative name to the CRL issuer or certificate issuer name
Version 3.729.5
Fixed
- Installed font lookup on Apple silicon Macs with Free Pascal builds no longer fails with a floating-point division-by-zero error raised from inside Fontconfig, which broke font embedding by family name and native text drawing
Version 3.729.4
Fixed
- Free Pascal builds for macOS now load the OpenType shaping engine library (libPDFlibOpenType.dylib); they looked for the Linux library name, so complex scripts fell back to the font-only shaping path
Version 3.729.3
Added
- Barcode recognition on a page or page region (DetectPageBarcodesJSON) now works on Linux and macOS, using the built-in recognizer for linear symbols and Data Matrix
- Skew analysis and correction (AnalyzePageSkewJSON, DeskewPage) now work on Linux and macOS
Version 3.729.2
Fixed
- The built-in barcode recognizer, used when the external recognition engine is not installed, now reads the 24-bit page scans it is given; it previously accepted only 32-bit pixels and silently returned no barcodes
Version 3.729.1
Fixed
- Converting a loaded 8-bit RGB or RGBA PNG to a bitmap with the PNG reader now produces the image pixels on Delphi, Free Pascal for Windows and Delphi Linux64; it previously copied the compressed, filtered PNG data and swapped the red and blue channels
Version 3.729.0
Added
- Delphi Linux64 target: the library compiles with the RAD Studio Linux64 compiler and uses the same native backend as the Free Pascal Linux build, with Cairo rendering, Fontconfig font matching, OpenSSL signing and encryption, and libcurl networking
- JPEG images are decoded and encoded on Delphi Linux64 through libjpeg-turbo, including CMYK and YCCK images and the JFIF resolution
- XMP metadata on Delphi Linux64 is parsed and written with the system libxml2, accepting both current and older library versions
- Library units for Delphi Linux64 can be built with the new Linux64 library build scripts, in release and trial configurations
Changed
- On Delphi Linux64, libcurl, libxml2 and libjpeg-turbo are loaded when first needed, so a missing library disables only the feature that depends on it
- The PDFium rendering host and the printer page redirect report that they need Windows when used on Linux
Version 3.728.10
Fixed
- SetTempPath now accepts existing directories on Linux: it appended a Windows backslash to the path on every non-Windows target except macOS, so the directory check failed and the previous temporary folder was kept
Version 3.728.9
Fixed
- Error-diffusion dithering no longer truncates its row pointers to 32 bits on 64-bit Linux, macOS and other non-Windows 64-bit targets, which could corrupt the dithered image or crash when the working buffers sit above the 4 GB address boundary
Version 3.728.8
Fixed
- The library compiles again: versions 3.728.6 and 3.728.7 contained a stray statement end in the PDF/A checks that stopped every compiler from building it
Version 3.728.7
Fixed
- Validation reports (CreateValidationReport) now give a rule name, standard and clause for every PDF/A issue the checks can raise, including the file-structure, metadata, document-rule and PDF/A-4 issues 00085 to 00125 that previously appeared with empty rule metadata
- The 00080 message now states the actual rule: a CIDSet or CharSet has to list every glyph present in the embedded font program
Version 3.728.6
Added
- PDF/A-4f validation now requires the document name dictionary to contain an EmbeddedFiles name tree (ISO 19005-4 6.9), reported as issue 00125
Version 3.728.5
Fixed
- PDF/A validation of a file whose XMP metadata cannot be parsed, such as an encrypted document opened without its key, now returns the issue list (encryption, missing identification, malformed XMP) instead of raising an exception on Linux and macOS
Version 3.728.4
Fixed
- PDF/A validation no longer treats the /Alternate colour space of an embedded ICC profile as device colour in use, so files that paint only with ICCBased colour are not reported as needing an OutputIntent (00007)
Version 3.728.3
Fixed
- PDF/A validation no longer reports a stream Length mismatch (00107) for files whose dictionaries contain a name ending in "stream", such as an embedded file subtype /application#2Foctet-stream
Version 3.728.2
Added
- On Windows, ICCBased colors and images with two- or five-to-eight-channel nCLR profiles now render through their profile when LittleCMS (liblcms2-2.dll) can be loaded, instead of falling back to the alternate color space
- A CMYK, gray, Lab or other non-RGB render target profile on Windows is now used as a proofing space through LittleCMS, converting colors into it and showing them through sRGB; without the library the previous Windows Color System behavior remains
Version 3.728.1
Fixed
- 32-bit Windows applications no longer crash when LittleCMS reports an error, for example while reading a damaged ICC profile; the error callback now uses the calling convention the library expects
Version 3.728.0
Added
- TPDFlibSignatureVerifier.NativeCRLDirectoryURL names a directory server (ldap://host[:port]) that online verification on Linux and macOS asks for CRLs whose distribution points give only a directory name instead of a URL
- The directory name, or the CRL issuer name of a point without a name of its own, is converted to an RFC 4514 entry name with escaping, and the CRL is then authenticated and applied like any other downloaded CRL
- The property is empty by default, so such distribution points stay unresolved unless a server is configured; directory-only Freshest advertisements are not resolved this way
Version 3.727.4
Added
- Native bitmap export on Linux and macOS now writes 1-, 4- and 8-bit indexed BMP files in addition to 24- and 32-bit ones, so bi-level, VGA-palette and grayscale bitmaps can be saved and reloaded
- Indexed files carry the same default color tables as on Windows: black and white at 1 bit, the VGA table at 4 bits, and a gray ramp or color cube at 8 bits
Version 3.727.3
Fixed
- On Linux and macOS, loading a BMP into a bitmap that already holds pixels of another depth (for example a bi-level image into a color bitmap) no longer fails with an unsupported conversion error; the decoded image simply replaces the earlier pixels
Version 3.727.2
Fixed
- Layout text extraction (GetPageText options 3 to 11 and text blocks) no longer outputs stray symbols for shaped complex-script text: glyphs that an embedded CID font maps to no text in its ToUnicode CMap, such as the extra glyphs of a Devanagari cluster, now produce no character
- Codes that are missing from a ToUnicode CMap without such an embedded glyph keep their existing replacement character and unmapped flags
Version 3.727.1
Added
- Native OCSP request signing on Linux and macOS now accepts Ed25519 and Ed448 request identities; the request is signed directly over its encoding as RFC 8410 defines, where such identities were previously rejected
Version 3.727.0
Added
- Online signer-chain verification on Linux and macOS now downloads a missing intermediate CA certificate from the caIssuers addresses of the embedded and supplied certificates, so signatures whose DSS or CMS omits the intermediate still verify
- Issuer addresses may be HTTP(S) or LDAP and may serve a DER certificate or a certificate-only PKCS #7 bundle; retrieval is bounded to eight requests, 4 MiB and four rounds
- Downloaded certificates only complete the path: trust still has to end at a configured anchor, and cache-only and trust-only verification never download issuers
Version 3.726.2
Added
- LDAP retrieval of CRLs and CA certificates now follows referrals and search references to other ldap:// servers, up to four hops, keeping the original attributes, scope and filter
- A referral that points back to a server and entry already asked is reported instead of being followed again, and all hops share one byte budget
Version 3.726.1
Added
- Native delta CRL retrieval on Linux and macOS now follows LDAP (ldap://) Freshest CRL locations as well as HTTP(S) ones, from both the certificate and an authenticated complete CRL
- A directory-served delta CRL is authenticated and applied exactly like one fetched over HTTP(S); when an LDAP location fails, the next advertised location is tried within the same request budget
Version 3.726.0
Added
- Linux x64 builds now ship the OpenType shaping engine library, so DrawText and GetTextWidth give complex scripts full OpenType shaping there: Indic reordering with reph and conjunct forms, Arabic joining and mark positioning
- The library has no C++ runtime dependency and needs glibc 2.38 or later; it is found through the PDFLIB_OPENTYPE_ENGINE directory, next to the executable, or in Lib/thirdparty/OpenType, and without it the built-in portable shaping still applies
- Its output was compared glyph for glyph with the system shaping library for Devanagari, Bengali, Tamil, Arabic, Thai and Myanmar text
Version 3.725.3
Fixed
- Plain text extraction (GetPageText option 0 and 2) no longer loses the rest of a TJ array after a large positioning gap in a two-byte (CID) font; the inserted word space used to shift every following character code
- A backward move that a later forward move repays, as used to place an Indic reph or other mark, is no longer reported as a word gap
Version 3.725.2
Fixed
- TrueType fonts whose glyphs are built from many components (some Arabic and Indic families use more than thirty per glyph) load without exhausting memory
- A composite glyph whose component list runs past the end of its glyph data now stops at that boundary instead of reading into the next glyph
Version 3.725.1
Fixed
- Shaped text that reuses one glyph in clusters with different source characters (such as a Devanagari conjunct appearing in two words) now extracts each word with its own text instead of repeating the first word's characters
- The extra CIDs that carry the alternative text map back to the same glyph, so the drawn output and the embedded font subset are unchanged
Version 3.725.0
Added
- ICC component conversion through LittleCMS now accepts N-channel (2CLR to FCLR) profiles as source or target, following the CMM percentage encoding for five or more channels
- Portable ICC display transforms accept two- and five-to-eight-component nCLR sources, so ICCBased colors and images with such profiles render through their profile when LittleCMS is available
- A non-RGB render target profile (GRAY, CMYK, CMY, Lab, XYZ or nCLR) set with SetRenderTargetICC now works on Linux and macOS as a proofing space: colors are converted into it and then shown through sRGB
Version 3.724.0
Added
- TIFF images with progressive 12-bit JPEG (SOF2) and progressive arithmetic-coded JPEG (SOF10) now import: DC and AC first and refinement scans are decoded into 8-bit or 16-bit samples, with subsampled YCbCr converted to RGB
- Hierarchical JPEG and arithmetic-coded lossless JPEG still produce explicit errors
Version 3.723.0
Added
- Decoded 12-bit and arithmetic-coded JPEG TIFF images now accept subsampled components and YCbCr samples: subsampled planes are replicated to full resolution and YCbCr is converted to RGB with the JFIF equations
Version 3.722.0
Added
- TIFF images compressed with sequential arithmetic-coded JPEG (SOF9) now import with 8-bit or 12-bit precision, including arithmetic conditioning tables and restart intervals; the blocks are decoded to 8-bit or 16-bit samples
- Arithmetic-coded strips are recognized by their frame marker, so classic TIFF files reach the decoder instead of being embedded as JPEG data that readers cannot display
Version 3.721.0
Added
- TIFF images with 12-bit JPEG compression (extended sequential Huffman, SOF1) now import: the blocks are dequantized and inverse transformed into 16-bit samples, including 16-bit quantization tables and restart intervals
- Every component must be sampled 1x1 and the samples must be chunky grayscale, RGB or CMYK; 12-bit YCbCr and progressive or arithmetic-coded 12-bit data produce explicit errors
Version 3.720.0
Added
- On Linux and macOS, unembedded family fonts now accept the single-byte code-page suffixes ({437}, {850}, {852}, {874} and {1250} to {1258}): the codes are described as /Differences over WinAnsiEncoding with a matching ToUnicode map, and their widths are measured from the installed face
- Double-byte code pages still produce an error for unembedded fonts on these platforms
Version 3.719.0
Added
- On Linux and macOS, AddTrueTypeFont with embedding off now references an installed family as a simple TrueType font with WinAnsiEncoding and ToUnicode, measuring its widths and descriptor metrics from the face Fontconfig selects
- The [Bold], [Italic] and [BoldItalic] suffixes select the matching face; code-page variants and faces without a Unicode cmap still produce an error on these platforms
Version 3.718.0
Added
- TIFF images compressed with Huffman lossless JPEG (SOF3) now import: all seven predictors, point transforms and row-aligned restart intervals are decoded to 8-bit or 16-bit samples
- The JPEG precision must match BitsPerSample and every component must be sampled 1x1; YCbCr lossless data and other precisions produce explicit errors
Version 3.717.0
Added
- CRLs and CA certificates published in an LDAP directory (ldap:// URLs in CRL distribution points and authority information access) can now be retrieved for PAdES long-term validation, FetchRevocationMaterial and the AddPAdESDSS*FromURL functions
- Native signature validation with online CRL retrieval also reads ldap:// distribution points on Linux and macOS
- Retrieval uses an anonymous LDAPv3 bind and one search taken from the RFC 4516 URL (base, scope, attributes and a presence or equality filter), with the configured timeout and an 8 MB response cap; LDAPS, referrals, compound filters and critical URL extensions are not supported
Version 3.716.0
Added
- TIFF images with unsigned or signed 32-bit integer samples now import; signed values are offset by half their range and the most significant 16 bits are kept
- Horizontal prediction (Predictor 2) with LZW or Deflate now also covers 32-bit samples, wrapping each difference modulo 2^32
Version 3.715.0
Added
- TIFF images with Modified Huffman compression (compression 2, and 32771 with rows aligned to 16-bit words) now import
- Group 3 and Group 4 TIFF images whose T4Options or T6Options allow uncompressed mode now import, including rows that switch into the ITU-T T.4/T.6 uncompressed mode
- These fax profiles are decoded and embedded as uncompressed bilevel images, keeping the PhotometricInterpretation of the source; reserved option bits still produce explicit errors
Version 3.714.0
Added
- BigTIFF images and classic TIFF images that need normalization now accept JPEG-compressed CMYK samples (PhotometricInterpretation 5)
Fixed
- JPEG-compressed CMYK TIFF strips are no longer inverted: TIFF CMYK samples are ink amounts, so they are embedded without an inverted Decode array whether or not an Adobe APP14 marker is present
- Standalone four-component JPEG files keep the inverted Adobe CMYK convention
Version 3.713.1
Fixed
- On Windows, rendering or extracting CMYK JPEG images that have no Decode array no longer fails: the built-in JPEG decoder now reads the image data correctly
- Damaged JPEG data handled by the built-in Windows decoder now produces an error instead of undefined behaviour
Version 3.713.0
Added
- Old-style JPEG TIFF images (compression 6) whose tables come from the JPEGQTables, JPEGDCTables and JPEGACTables offsets or from a tables-only JPEGInterchangeFormat stream now import; each strip of bare entropy-coded data is decoded on its own with the stored tables, restart interval and YCbCr subsampling
- Lossless, tiled and separate-plane old-style JPEG still produce explicit errors
Version 3.712.0
Added
- On Linux and macOS, CFF-flavoured OpenType fonts (.otf, and CFF faces of .ttc/.otc collections) can be embedded by family name and through AddTrueTypeFontFromFile and AddOpenTypeFontFromFile; the CFF outlines are embedded as FontFile3 after the OS/2 embedding-rights checks
Version 3.711.1
Fixed
- Fonts with more than 32767 horizontal metrics, such as the Noto CJK families, report their real glyph widths instead of a default width, which fixes text measurement, layout and embedded widths for them
Version 3.711.0
Added
- On Linux and macOS, embedding a family font by name accepts a TrueType face of an installed font collection (TTC): the face Fontconfig selects is rebuilt as a standalone TrueType program and embedded with its metrics and widths
Version 3.710.0
Added
- PDF/A validation compares the widths of embedded Type 1 programs (FontFile) with the font dictionary Widths for the glyphs content shows, reporting differences under 00079
Version 3.709.0
Added
- PDF/UA-1 validation reports a Form XObject whose content carries marked-content identifiers but is painted more than once (10083)
Fixed
- The PDF/UA widget description check reads TU from the form field: a separate widget of a field with several kids no longer satisfies the check with its own TU entry
Version 3.708.0
Added
- PDF/UA-2 validation reports Widget annotations without a Contents description (10082)
- PDF/UA-2 validation reports structure elements whose type is placed in the PDF 2.0 standard structure namespace without being one of its standard types, even when a role map would lead to a standard type (10055)
Version 3.707.0
Added
- PDF/UA-1 and PDF/UA-2 validation reports annotations outside the structure tree (10079), Link annotations not nested within a Link element (10080) and other annotations not nested within an Annot element (10081); Popup, hidden, Widget and PrinterMark annotations are excluded and role maps are followed
- PDF/UA and PDF/A-2 and later validation report a Type 1 CFF subset whose CharSet lists a glyph that the embedded program does not contain
Version 3.706.0
Changed
- PDF/A validation only checks Form, Image and PostScript XObjects that content actually paints; XObjects that are merely listed in a resource dictionary, and objects only they reference, are ignored
Fixed
- PDF/A and PDF/UA font checks read embedded Type 1 programs (FontFile) correctly, including their built-in encoding, so CharSet completeness and glyph checks apply to them
- A Type 1 font without ToUnicode is exempt when every glyph that content shows has an Adobe Glyph List name, including names from its built-in encoding
- The CIDSet check for CIDFontType2 fonts only requires glyphs that have outline data, so subsets with empty glyph slots pass
- A CIDFontType2 font without CIDToGIDMap that content only draws invisibly is no longer reported
Version 3.705.1
Fixed
- The PDF/A-4 check for an ICCBased CMYK colour space repeating the output intent profile compares profiles by their Profile ID, computing the ID when it is zero, so profiles that differ only in a stored or omitted ID are treated as identical and profiles with different IDs as different
- The same check uses a page-level output intent, where present, instead of the document output intent
Version 3.705.0
Added
- PDF/A-2a and PDF/A-3a validation reports 00124 when content shows a character that ToUnicode maps into a Unicode Private Use Area without an ActualText, either in the enclosing marked content or on the owning structure element or one of its ancestors
Version 3.704.0
Added
- PDF/A validation checks the CharSet of Type 1 subsets embedded as CFF (FontFile3): every glyph that content shows and the program defines must be listed
Fixed
- PDF/A and PDF/UA validation treat a font descriptor whose FontFile, FontFile2 or FontFile3 entry resolves to null or a missing object as not embedded
- Fonts that content only draws in text rendering mode 3 (invisible) are no longer reported as not embedded
Version 3.703.0
Added
- PDF/A validation compares the widths of embedded CFF fonts (Type1C simple fonts and CIDFontType0C fonts with an Identity encoding) with the font program for the glyphs content shows, reporting differences under 00079
Fixed
- PDF/A and PDF/UA font width, glyph presence and subset checks ignore text drawn in rendering mode 3 (invisible), which shows no glyphs
Version 3.702.0
Added
- PDF/A validation reports 00123 when an embedded font program lacks a glyph that content shows: a glyph name missing from a Type 1 or CFF program, a CID missing from a CID-keyed CFF font, a CIDFontType2 glyph index beyond the font, or an incomplete two-byte code with an Identity encoding
Fixed
- The PDF/A CIDSet completeness check for CIDFontType0 fonts reads each glyph's CID from the CFF charset instead of treating glyph indexes as CIDs
Version 3.701.2
Fixed
- Simple fonts with MacExpertEncoding map their codes to the MacExpert glyph names (for example code 32 to space) instead of unrelated standard names, which fixes rendering and glyph checks for such fonts
Version 3.701.1
Fixed
- Embedded CFF fonts whose Top DICT carries a PostScript string, common in subset fonts from Adobe applications, load again for rendering and PDF/A font checks instead of being rejected
Version 3.701.0
Added
- TIFF import reads old-style JPEG (compression 6) images whose JPEGInterchangeFormat field points at a complete JPEG stream, which covers many older scanner and camera files
- Old-style JPEG layouts that store only table offsets, or whose interchange stream holds only tables, report specific errors
Fixed
- TIFF files whose XResolution, YResolution or ResolutionUnit fields use an invalid data type no longer fail to import; those fields are ignored
Version 3.700.0
Added
- TIFF import accepts up to sixteen extra channels, such as alpha followed by spot or mask channels: the first channel can still become a soft mask and unspecified channels are dropped, in chunky or separate-plane layouts
- TIFF images whose alpha channel is not the first extra channel report a specific error
Version 3.699.0
Added
- TIFF import accepts one extra channel after YCbCr samples without chroma subsampling: unassociated alpha becomes a soft mask and an unspecified channel is dropped, in chunky or separate-plane layouts
- Subsampled YCbCr with extra channels and YCbCr with associated (premultiplied) alpha report specific errors
Version 3.698.0
Added
- TIFF import converts YCbCr images without chroma subsampling that use horizontal prediction or separate color planes
- Subsampled YCbCr TIFF images with prediction or separate planes report a specific error, since their data units define no predictor row or plane layout
Version 3.697.2
Fixed
- Embedded encoding CMaps whose codespaces of the same byte length overlap, such as a local range repeating part of an inherited predefined CMap, are now accepted as the union of their codes instead of being rejected as ambiguous; codespaces of different lengths with a shared prefix are still rejected
- An embedded CMap whose body usecmap operator names the CMap given by a UseCMap stream is now accepted instead of being reported as inconsistent inheritance
Version 3.697.1
Changed
- Text replacement reports a specific reason when it meets a reference XObject (a Form XObject with /Ref), naming whether the target page lives in an embedded file or an external document, instead of a combined geometry-or-reference message
- Unresolved Form XObjects and Forms with an unverified Matrix or BBox are now reported with separate messages
Version 3.697.0
Added
- Text replacement inside tagged Form XObjects (StructParent or StructParents) when the Form is shown exactly once: the edited copy takes over the structure tree's marked-content and object references, so tagged text stays attached to its structure element
- Tagged Forms that are shared, invoked more than once or reached through shared resources are still rejected with a specific reason and leave the document unchanged
Version 3.696.1
Fixed
- CIELab and ICCLab TIFF images with an embedded Lab-space ICC profile import as a Lab color space instead of being rejected
Version 3.696.0
Added
- ICC component transforms with LittleCMS 2 accept CMY, Lab and XYZ profiles as sources and targets; Lab components map the unit range to L* 0 to 100 and a*, b* -128 to 127, and XYZ components to 0 to 1.99997
Version 3.695.0
Added
- DrawText and GetTextWidth draw and measure supplementary-plane characters with a TrueType font loaded from a file or an embedded family font by shaping them with the font's own program and showing them through an Identity-H companion font, so they are no longer dropped and extract as the original characters
- On Linux and macOS, where no platform shaping engine is available, DrawText and GetTextWidth shape Arabic, Hebrew, Indic and other complex scripts with the GSUB and GPOS lookups of the selected font's embedded TrueType program
- The native backend capability report lists supplementary-plane text and complex shaping as partially supported
Version 3.694.0
Added
- TIFF and BigTIFF import accepts 16-bit (half precision) and 64-bit (double precision) floating-point samples, also with the floating-point predictor
- Floating-point TIFF samples are scaled from their SMinSampleValue to SMaxSampleValue range, shared or per sample, instead of always assuming 0 to 1; an empty range is rejected
Fixed
- WhitePoint and PrimaryChromaticities fields no longer make BigTIFF files and TIFF files that need conversion fail with an invalid data type error
Version 3.693.1
Fixed
- The built-in renderer honors the Matte entry of image soft masks, undoing the premultiplication of the image colors, so premultiplied images such as TIFF files with associated alpha no longer render too dark at partial transparency
Version 3.693.0
Added
- TIFF and BigTIFF import converts 8-bit YCbCr images that are not JPEG-compressed to RGB, decoding their data units with 1, 2 or 4 times horizontal and vertical chroma subsampling and applying the YCbCrCoefficients and ReferenceBlackWhite fields
Version 3.692.0
Added
- TIFF and BigTIFF import accepts 8-bit and 16-bit CIELab and ICCLab samples as a Lab color space, with the white point taken from the WhitePoint field or defaulting to D65
Fixed
- TIFF import reports an explicit error for photometric interpretations it cannot convert instead of importing the samples with the wrong colors
Version 3.691.0
Added
- TIFF import without an ICC profile maps WhitePoint and PrimaryChromaticities to a CalGray or CalRGB color space; missing values default to the D65 white point and ITU-R BT.709 primaries, and the gamma follows the TransferFunction or defaults to 2.2
- Malformed WhitePoint, PrimaryChromaticities and TransferFunction fields, including chromaticities outside the valid range or collinear primaries, are rejected with explicit errors
Version 3.690.0
Added
- TIFF and BigTIFF import accepts signed 8-bit and 16-bit grayscale, RGB and CMYK samples, offsetting them by half their range
- TIFF and BigTIFF import accepts 32-bit IEEE floating-point grayscale, RGB and CMYK samples, in chunky or separate planes, uncompressed or with LZW, Deflate or PackBits and the floating-point predictor; values in the nominal 0 to 1 range become 16-bit samples, values outside it are clamped and NaN becomes 0
- Separate-plane TIFF images may have five planes, so CMYK with alpha imports in planar layout
Version 3.689.0
Added
- TIFF and BigTIFF import accepts one extra channel after unsigned 8-bit or 16-bit grayscale, RGB or CMYK samples, in chunky or separate planes and every supported codec: unassociated alpha becomes a soft mask, associated (premultiplied) alpha becomes a soft mask with a black Matte, and an unspecified extra channel is dropped
- Images imported with an alpha channel raise the required PDF version to 1.4
Version 3.688.1
Fixed
- Arlington validation evaluates fn:FontHasLatinChars from the font descriptor flags and CharSet, so CapHeight requirements are checked instead of being reported as unsupported
Version 3.688.0
Added
- PDF/UA validation reports shown form field widgets without a TU entry on the field or an Alt on their Form structure element (PDF/UA-2 also accepts Contents)
- PDF/UA-1 validation reports documents that use both H and numbered H1 to H6 headings
- PDF/UA-2 validation reports tables whose header cells have no Scope while data cells do not name their headers, and lists whose items have labels but set ListNumbering to None
Version 3.687.0
Added
- PDF/UA validation reports tables whose rows, with their RowSpan and ColSpan attributes, do not form a regular grid
Fixed
- PDF/UA validation reports text that shows CID 0, the .notdef glyph, of a CFF-based CIDFont through an Identity CMap
- PDF/UA-2 validation resolves role and namespace mapping before checking that MathML math elements are children of a Formula element
Version 3.686.0
Added
- PDF/UA-1 validation reports annotations in the structure tree, other than widgets, links, popups and printer marks, that have neither Contents nor an Alt on their structure element, unless they are hidden or lie outside the crop box
- PDF/UA validation reports printer mark annotations included in the structure tree and PDF/UA identification properties declared with a prefix other than pdfuaid
- PDF/UA-1 validation reports file attachments with an empty F or UF entry; PDF/UA-2 validation requires Desc on embedded file specifications and AFRelationship on file attachment specifications
- PDF/UA-2 validation reports Form elements with more than one widget, outline items and GoTo actions without structure destinations, MathML math elements outside a Formula element, and hidden or invisible annotations in the structure tree
Fixed
- PDF/UA validation finds media clip data dictionaries nested directly inside rendition actions and requires a non-empty alternate text in their Alt array
- PDF/UA validation recognises dynamic XFA forms whose dynamicRender element contains white space inside its tags
- PDF/UA-1 validation reads dc:title from the metadata packet itself rather than accepting a title taken from other sources
Version 3.685.0
Added
- PDF/UA validation checks Type 0 fonts (CIDSystemInfo agreement between CMap and CIDFont, embedded or predefined CMaps, UseCMap and WMode) and ToUnicode values U+0000, U+FEFF and U+FFFE, reported as 10066
- PDF/UA-1 validation requires Formula elements, like Figure elements, to carry an ActualText entry or a non-empty Alt
- PDF/UA-2 validation checks Lang values in marked-content property lists, and reports Link structure elements whose Link annotations target different locations
Fixed
- PDF/UA validation accepts an ActualText entry, even an empty one, as the alternate description of Figure elements
- PDF/UA-1 table header checks accept header cells without Scope when the data cells name their headers, and no longer report Headers values that name a missing ID
- PDF/UA-2 validation no longer requires a Contents entry on every Link annotation
Version 3.684.0
Added
- PDF/UA validation determines the natural language of text from the catalog Lang, the structure tree and marked-content property lists, and reports text, Alt, ActualText and E entries, outline titles, the XMP title and form fields whose language cannot be determined
- PDF/UA validation checks Lang values in marked-content property lists
- PDF/UA-1 validation checks the children of tables, table sections, rows, lists, list items and tables of contents: allowed element types, at most one caption, header and footer, caption position, and a body section when a header or footer is present
Fixed
- PDF/UA font checks only examine fonts that content uses to show text, so fonts that are only listed in resources, such as form default resources, are no longer reported, and CIDFonts are checked through their Type 0 font
- PDF/UA-1 validation no longer requires a catalog Lang when the structure tree or marked content gives the language, no longer requires the ListNumbering attribute on every list, and treats only the PDF 1.7 standard structure types as standard in role map checks
- PDF/UA language tag checks accept primary subtags of one to eight letters
Version 3.683.1
Fixed
- PDF/A-2 and later validation accepts non-symbolic TrueType fonts whose encoding adds Differences that only name Adobe Glyph List glyphs over a WinAnsi or MacRoman base encoding
Version 3.683.0
Added
- PDF/A validation reports Type 3 glyphs whose d0 or d1 width differs from the font Widths entry
Fixed
- PDF/A-4 validation no longer requires ToUnicode for fonts outside the Unicode exemptions; PDF/A-4 only restricts the values a ToUnicode CMap maps to
- PDF/A level A and U validation exempts Type 1 fonts that use their built-in encoding when the CharSet names only standard Latin or Symbol glyphs
- PDF/A-4 validation accepts an empty Name in optional content configurations, and PDF/A-1 validation no longer compares CIDSystemInfo Supplement values
Version 3.682.2
Fixed
- PDF/A-4 validation accepts JavaScript actions and additional actions, reporting only the document triggers WC, WS, DS, WP and DP, the page triggers O and C, and the annotation triggers PO, PC and PV; widget annotations may carry additional actions but still no A entry
- PDF/A-4 validation accepts any PDF 2.n header version, and PDF/A-1 validation no longer reports the header version, which ISO 19005-1 does not restrict
- PDF/A-4 validation accepts a page-level PDF/A output intent in place of a document-level one when it matches the device colour the file uses
Version 3.682.1
Fixed
- PDF/A validation requires all output intents with a destination profile to reference the same indirect profile object; separate copies of one profile are reported
- PDF/A-2 and PDF/A-3 validation reports ICCBased CMYK colour painted with overprint mode 1 and overprinting on, as PDF/A-4 validation already did
- PDF/A validation treats page content that paints a path before setting a colour as using DeviceGray, which needs an output intent or a DefaultGray colour space
Version 3.682.0
Added
- PDF/A validation checks optional content configurations: unique Name values, no AS key, and an Order array that lists every optional content group (PDF/A-2 and later)
- PDF/A validation reports the AlternatePresentations name tree, PresSteps in pages and NeedsRendering in the catalog (PDF/A-2 and later), and annotation subtypes that ISO 32000 does not define
- PDF/A validation checks embedded files: F and UF in file specifications (PDF/A-3 and PDF/A-4), MIME type syntax of the stream Subtype, and that a base PDF/A-4 file embeds only conforming PDF/A documents
- PDF/A-2 and later validation reports colorant, font, structure type and role map names that are not valid UTF-8
- PDF/A level A validation checks that MarkInfo sets Marked to true, that non-standard structure types are role mapped without circular mappings, and that Lang values in the catalog, structure elements and marked content are valid language tags
- PDF/A-2 and later validation checks JPEG2000 header boxes: the number of components, the bit depth, and the colour specification boxes of images without a ColorSpace entry
- PDF/A-4 validation reports Private Use Area characters in ActualText, the trailer Info key without a catalog PieceInfo entry, and document information entries other than ModDate
Fixed
- PDF/A validation reports empty file identifiers in the trailer ID, data after the last end-of-file marker, and inline image filter names that ISO 32000 does not list
Version 3.681.2
Fixed
- PDF/A validation checks the cross-reference tables of every revision of an incrementally updated file, not only the last one, including a single EOL marker after the xref keyword
- PDF/A validation checks hexadecimal strings inside content streams for invalid characters and an odd number of digits (6.1.6)
Version 3.681.1
Fixed
- PDF/A ToUnicode checks no longer report the CIDFont inside a Type 0 font, and also exempt non-symbolic TrueType fonts and Type 1 and Type 3 fonts whose encoding differences only name Adobe Glyph List glyphs
- Subset fonts without CharSet or CIDSet are reported only for PDF/A-1; from PDF/A-2 on these entries are optional
Version 3.681.0
Added
- PDF/A validation checks the file structure: the header version and the binary comment line after it, cross-reference subsection formatting (and no cross-reference streams in PDF/A-1), hexadecimal strings, stream and endstream keywords against the stream Length, and a trailer ID made of two strings (6.1)
- PDF/A validation checks Type 0 fonts: their CMap is embedded or predefined, an embedded CMap only uses predefined CMaps and its WMode matches its program, and the CIDFont CIDSystemInfo is compatible with the CMap; ToUnicode maps to U+0000, U+FEFF or U+FFFE are reported for PDF/A levels A and U and PDF/A-4 (6.2.11.3, 6.2.11.7.2)
- PDF/A validation reports inline images with LZW compression, interpolation or a non-standard rendering intent, and image XObjects with a non-standard rendering intent
- PDF/A-1 validation reports widget annotations without an appearance dictionary (ISO 19005-1 6.9)
Version 3.680.0
Added
- PDF/A validation checks output intents: all entries share one destination profile, DestOutputProfileRef is not used, and the ICC header names an output or display device class, an RGB, CMYK or Gray data space and a version the part allows (6.2.3)
- PDF/A-2 and later report Separation colour spaces that share a name but differ in alternate space or tint transform (compared by content), and DeviceN spot colorants missing from the Colorants dictionary (6.2.4.4)
- PDF/A validation checks halftones and graphics states: no HTP or HTO key, standard RI values, halftone types 1 and 5 only, no HalftoneName, and a TransferFunction present exactly for the non-process colorants of a type 5 halftone (6.2.5)
- PDF/A-4 validation reports ICCBased CMYK colour painted with overprint mode 1 and the matching overprint flag on, and ICCBased CMYK colour spaces used for rendering whose profile repeats the output intent or page group profile (ISO 19005-4 6.2.4.2)
Version 3.679.0
Added
- PDF/A-2, PDF/A-3 and PDF/A-4 validation reports pages that render transparency, including inside forms, Type 3 glyphs, annotation appearances and images with soft masks, when neither the page group defines a colour space nor the file has a PDF/A output intent (ISO 19005-2 6.2.10, ISO 19005-4 6.2.9), and blend modes that ISO 32000 does not define
- PDF/A validation reports content stream operators that ISO 32000 does not define (also inside BX/EX), non-standard ri rendering intents, and named resources that a content stream uses without defining them in its own resource dictionary, including resources only inherited from the page tree or from an invoking page or form (6.2.2)
- PDF/A validation checks indirect object syntax: single spaces in "N G obj" and EOL markers around the object header and the endobj keyword (ISO 19005-1 6.1.8, ISO 19005-2 6.1.9, ISO 19005-4 6.1.8)
Fixed
- XMP entity decoding and packet header detection no longer depend on the system code page, so non-ASCII metadata is read correctly on every Windows locale
Version 3.678.0
Added
- PDF/A-1 validation checks that every document information entry (Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate) has an equivalent XMP property, comparing dates as instants across time zones (ISO 19005-1 6.7.3)
- PDF/A validation reports implementation limits: integers outside the 32-bit range, PDF/A-1 real numbers above 32767, over-long strings and names, graphics states nested more than 28 levels along invoked forms, too many DeviceN colorants, CIDs above 65535 and, from PDF/A-2 on, page boundaries smaller than 3 or larger than 14400 units (ISO 19005-1 6.1.12, ISO 19005-2 6.1.13)
- PDF/A-2, PDF/A-3 and PDF/A-4 validation reports permissions dictionaries with keys other than UR3 and DocMDP and signature references that use DigestLocation, DigestMethod or DigestValue (6.1.12), and PDF/A-4 validation reports a catalog Version that is not of the form 2.n
- GetPDFAReadValidationCoverageJSON lists the new checks
Fixed
- An empty OutputIntents array, or output intents without a PDF/A entry, are no longer reported when the file uses no device-dependent colour
Version 3.677.0
Changed
- PDF/A device-colour checks now follow what content actually renders: content streams of pages, form XObjects, annotation appearances, tiling and shading patterns, Type 3 glyphs and soft masks are read with their own resources, and colour spaces that resources only define are no longer counted
- A device colour space counts as calibrated when the current resources set the matching Default colour space or, from PDF/A-2 on, when the page group or an isolated nested transparency group blends in a calibrated space of the same family (ICCBased or CalRGB for DeviceRGB, ICCBased for DeviceCMYK); DeviceGray always needs DefaultGray or an OutputIntent
Fixed
- PDF/A font width checks compare only the glyphs that content shows, so subset fonts whose unused codes carry zero widths are no longer reported (ISO 19005-1 6.3.6, ISO 19005-2 6.2.11.5)
Version 3.676.0
Added
- PDF/A-2, PDF/A-3 and PDF/A-4 validation reports annotations other than Popup and Link that lack an appearance dictionary with a normal appearance (ISO 19005-2 6.3.3); point annotations with neither width nor height are exempt
- A widget annotation of a button field must use an appearance subdictionary and any other annotation an appearance stream, with the field type read through merged or parent field dictionaries
- The ToggleNoView annotation flag is now reported like Hidden, Invisible and NoView, and PDF/A-4 reports file attachment annotations unless the file conforms to PDF/A-4f
Changed
- A missing OutputIntent is reported only when the file actually uses a device-dependent colour space (DeviceRGB, DeviceCMYK or DeviceGray, including colour operators and cs/CS selections in content streams) without a matching Default colour space; files that use only calibrated colour no longer fail
Fixed
- Annotation dictionaries without the optional Type entry are now included in PDF/A annotation checks
Version 3.675.0
Added
- PDF/A validation now checks every XMP property against the predefined schemas of the XMP specification that the PDF/A part references (2004 for PDF/A-1, 2005 for PDF/A-2 and PDF/A-3) and against extension schemas declared in the packet, including value types, structures, arrays and language alternatives (ISO 19005-1 6.7.2 and 6.7.9, ISO 19005-2 6.6.2.3)
- The PDF/A extension schema container is validated itself: required pdfaSchema, pdfaProperty, pdfaType and pdfaField fields, property categories, declared value types and the mandatory prefixes (ISO 19005-1 6.7.8, ISO 19005-2 6.6.2.3.2 and 6.6.2.3.3)
- The XMP packet header and PDF/A identification schema are checked for every part: no bytes or encoding header attributes, UTF-8 for PDF/A-4, the pdfaid prefix, valid conformance values and a four-digit pdfaid:rev for PDF/A-4
- GetPDFAReadValidationCoverageJSON lists the new XMP schema and identification checks
Fixed
- XMP metadata stored as UTF-16 or UTF-32 is now read correctly, so PDF/A identification is no longer reported missing for such files
Version 3.674.0
Added
- Arlington model validation now evaluates the model's predicates in the Required, IndirectReference, PossibleValues and SpecialCase columns, including value comparisons, arithmetic, version and presence tests, bit masks, array, string and stream lengths, and name-tree and key-map membership; a predicate whose keys are missing is reported as indeterminable rather than as a failure
- Name and number trees are validated leaf by leaf against their linked definitions, required inheritable entries are resolved through the Parent chain, the catalog Version entry sets the checked PDF version, and a cross-reference stream trailer is validated against the XRefStream definition
- Against the published Arlington model, unsupported rule instances over a 156-file sample corpus fell from about 43,000 to about 500; only the font Latin-character predicate remains reported as unsupported
Fixed
- Arlington validation no longer hangs on documents whose structure tree links elements back to their parents, and large documents no longer slow down quadratically while coverage is recorded
- Linked definitions are now chosen by their discriminating values (such as Subtype, ShadingType or the colour space family), so fonts, images, shadings, colour spaces and destinations are no longer validated against the wrong definition
- Widget annotations merged with their field dictionary no longer report field keys as undefined, and objects reached through the generic universal definitions are no longer checked for unknown keys
Version 3.673.1
Changed
- The built-in rule catalog now lists the XRechnung 3.0.2 and Peppol BIS Billing 3.0 rule groups, and XRechnung temporary rules (BR-TMP-*) are reported in the profile category
- Built-in Peppol BIS Billing 3.0 validation now matches the official 3.0.20 rule set across core, common, code-list and national rules for UBL invoices and credit notes
Fixed
- Validating invoices with large embedded attachments no longer takes minutes: a UBL invoice of about 1 MB with base64 attachments now validates in milliseconds, with or without the built-in XML Schema check
- BR-06 and BR-07 on UBL documents now require the Seller and Buyer names in PartyLegalEntity/RegistrationName as EN 16931 defines them, instead of accepting a trading name in PartyName
Version 3.673.0
Added
- Pure Pascal ICC v2 and v4 color profile evaluator (
PLPureICCTransformComponents) supporting matrix/TRC (XYZ,curv,para) and multidimensional CLUT tags (mft1,mft2,mAB,mBA) with ISO 18619 PCS XYZ black point compensation when no external CMM library is installed - CxF/X-4 spectral reflectance integration (
IntegrateCxFReflectanceSpectrumandExtractCxFSpectralColor) over 380–730 nm at 10 nm intervals under CIE D50/D65 illuminants and 1931 2° / 1964 10° standard observers to CIE XYZ, CIELAB and Bradford-adapted sRGB
Changed
- Transparency groups whose
/CSis a 3-componentICCBasedRGB profile, a 4-componentICCBasedCMYK profile,DeviceCMYKor a named entry in the/ColorSpaceresource dictionary now blend in their declared group color space (including two-pass 4-channel subtractive CMYK offscreen composition) and convert back to sRGB and any enclosing parent group space TPDFIndexedColorSpacenow resolves palette entries over/Lab,/ICCBased,/DeviceGray,/CalGrayand/Separationbase color spaces in addition to/DeviceRGBand/DeviceCMYK
Version 3.672.0
Added
- Built-in EN 16931 code-list validation now covers all remaining EN 16931 1.3.16 code lists on both Factur-X CII and OASIS UBL 2.1 invoices and credit notes (BR-CL-01 to BR-CL-26), including UN/ECE Recommendation 20/21 unit codes (BR-CL-23), allowance and charge reason codes (BR-CL-19, BR-CL-20), item classification schemes (BR-CL-13), ICD identifier schemes (BR-CL-10, BR-CL-11, BR-CL-21), EAS electronic address schemes (BR-CL-25), VAT exemption reason codes (BR-CL-22) and MIME codes (BR-CL-24)
- Built-in XRechnung 3.0.2 CIUS and extension validation (BR-DE-1 to BR-DE-31 and BR-DEX-01 to BR-DEX-14) for both CII and UBL documents, and built-in Peppol BIS Billing 3.0 (3.0.20) core, common, code-list and national validation (PEPPOL-EN16931-*, NO-R-*, DK-R-*, IT-R-*, SE-R-*, GR-R-*, IS-R-*, NL-R-*, DE-R-*) for UBL invoices and credit notes
- Built-in XML Schema 1.0 validator now enforces simple-type facets (length, minLength, maxLength, totalDigits, fractionDigits, minInclusive, maxInclusive, minExclusive, maxExclusive and regular-expression pattern), xs:list and xs:union simple types, and xs:unique, xs:key and xs:keyref identity constraints
Version 3.671.0
Added
- Invoice rule packages: a directory with a rulepackage.xml manifest that names the standard, version, schema and Schematron stylesheet and records the SHA-256 of every file. ValidateInvoiceBusinessRulesWithPackage checks every file before validation and again when a validator reads it, can pin the manifest digest, and stops with an integrity issue when a file is missing, changed, unlisted or outside the package directory
- CreateInvoiceRulePackage writes the manifest for a directory of rules and GetInvoiceRulePackageInfo verifies a package and returns its digest and files; both are also exported from the DLL
- Built-in XML Schema validation: the schema stage validates invoices against the supplied CII or UBL schema without xmllint, reporting misplaced, missing and unexpected elements, invalid values such as dates and decimals, enumeration violations, missing or unknown attributes and duplicate IDs with their element paths. It runs when no xmllint is configured and on every platform
- Validation reports include the rule package that was used and its verification result, and issues about rule integrity have the category integrity
Changed
- FullConformance now also requires a verified rule package and no uncovered rule areas in any requested stage, so loose rule files no longer count as full conformance
Version 3.670.0
Added
- The built-in invoice validator now checks a much larger part of the EN 16931 business rules for Factur-X CII and UBL 2.1 invoices, using the rule IDs of the EN 16931 validation artefacts 1.3.16: mandatory business terms, document and VAT category calculations, the VAT category rules for S, Z, E, AE, K, G, O, L and M, code lists for type, currency, country, payment means and VAT category codes, and two-decimal amounts
- Validation reports now show what was actually checked: each stage reports its coverage (subset for the built-in rules, rulePackage when an external engine ran a rule package) and the rule areas it left out, each issue carries a category such as schema, calculation, vat, codelist or profile, and FullConformance is true only when every requested stage ran a rule package. The JSON report includes these fields
- New GetBuiltInInvoiceRuleCatalog (DLGetBuiltInInvoiceRuleCatalog, DLGetBuiltInInvoiceRuleCatalogA) returns the rules the built-in validator checks, their EN 16931 counterparts and the rule areas it leaves to a rule package
- Factur-X MINIMUM and BASIC WL documents, and XRechnung and Peppol documents, get an informational note when only part of their profile rules is checked natively
Fixed
- Intra-community supply (K) rules are reported as BR-IC instead of BR-K, the standard-rate rate check BR-S-05 is applied to invoice lines rather than the VAT breakdown, and VAT category and invoice total checks use the official tolerances instead of a fixed 0.02
Version 3.669.0
Added
- The ActiveX control adds the IPDFlibrary5 interface (type library 3.6, now the default dispatch interface) with OptimizeEmbeddedFonts, GetLastFontOptimizationJSON, the AddActionNext* action-chain methods, GetActionNextCount, AddLinkToHideField, AddLinkToImportData, AddLinkToNamedAction, AddLinkToNamedDestination, SetFormFieldAction, LoadOutputIntentProfile, SetPDFA3DefaultAFRelationship, DAOpenFileWithEncryptionKey, DAGetEncryptionKeyValidation and SetMemoryBudget; existing interfaces are unchanged
- CoPDFlibrary.CreateDocumentTools returns the new interface in the Pascal binding
Version 3.668.0
Changed
- Transparency groups whose /CS is DeviceGray, CalGray or a gray ICC profile, given as a name, an array or an indirect object, now blend in gray as the PDF specification requires: the built-in renderer converts the group content to the gray of that space and composites the result in color, matching other viewers. Previously such groups were blended and shown in full color
Version 3.667.2
Fixed
- Under the default recovery policy, an object whose cross-reference offset does not point at its header is now found by scanning the file and read from its actual position; an object defined nowhere in the file reads as null. Damaged files of this kind previously loaded but could not be saved: SaveToFile returned 0 without an error code
Version 3.667.1
Fixed
- An empty stream rewritten with compression, such as an empty content layer after ConvertTextToPaths, was saved as a zero-length FlateDecode stream that some viewers report as truncated; empty streams are now written without a filter
Version 3.667.0
Changed
- Text drawn with a Type 3 font in a clipping rendering mode (4 to 7) no longer counts as a text clip in content graphics-state reports, because Type 3 glyphs add nothing to the clipping path (ISO 32000-2 9.3.6)
- ConvertTextToPaths converts Type 3 text in rendering modes 4 to 7 instead of failing with error 507: modes 4 to 6 draw the glyph descriptions and mode 7 draws nothing; clipping modes with other fonts still fail
Version 3.666.0
Added
- TrueType composite glyphs whose components are attached by matching points, including a phantom point of the attached glyph, now render and convert to outlines in place; glyph outline extraction no longer reports them as unsupported
Fixed
- The built-in renderer applied neither a uniform component scale nor a scaled component offset in TrueType composite glyphs, so such accents and parts could be drawn at the wrong size or position
Version 3.665.1
Fixed
- A document whose cross-reference table lists an object as in use at offset 0, a common writer error, loaded but could not be saved: SaveToFile returned 0 and left an empty file. Such an entry now reads as a null object, as the PDF specification treats a reference to a missing object, and the document saves normally
Version 3.665.0
Added
- OptimizeEmbeddedFonts and SubsetEmbeddedFonts re-subset embedded simple TrueType fonts on every platform without the Windows font package API: each code in use keeps every glyph a viewer could select for it through the cmap subtables, the encoding glyph names and the post table, and only the outlines of other glyphs are removed, so pages render exactly as before
Fixed
- OptimizeEmbeddedFonts read each part of a page /Contents array on its own, so text drawn in one part with a font selected in an earlier part was not counted and its glyphs could be removed; the parts are now read as one stream, and a stream that shows text before selecting a font keeps all its fonts
- A font program shared by several font dictionaries is no longer re-subset for only one of them; it is reported as shared-program and left unchanged
- SubsetEmbeddedFonts no longer counts every code against every font, maps codes 128-255 through the font encoding instead of treating them as Unicode, and gives each rewritten font its own subset tag
Version 3.664.0
Added
- OptimizeEmbeddedFonts now also re-subsets composite fonts with bare CFF programs (FontFile3 /CIDFontType0C), which stay bare CFF, and fonts that use a predefined CMap such as UniJIS-UCS2-H or an embedded CMap stream; content strings are decoded through the CMap to find the CIDs in use
Fixed
- OptimizeEmbeddedFonts selects glyphs of CIDFontType0 fonts through the CFF charset and checks that every CID in use still selects the same glyph, so a CID-keyed OpenType program whose charset is not the identity is no longer subset by CID number
- OptimizeEmbeddedFonts rebuilds an existing /CIDSet to list the CIDs the smaller font program still contains, as PDF/A requires
Version 3.663.2
Fixed
- Text drawn through the shaping path (DrawShapedText, DrawOpenTypeText, complex scripts and automatic font fallback, which DrawText uses when the selected font cannot encode a character) was squeezed together: each glyph advanced by its width minus its full shaped advance again, so letters overlapped in every viewer. Glyphs are now positioned exactly at their shaped advances
Version 3.663.1
Fixed
- The built-in renderer could drop text on Windows systems that use a multi-byte ANSI code page such as Chinese, Japanese or Korean: a text string written with raw bytes 128-255 (for example accented Latin letters, the euro sign or two-byte CIDs) could swallow the closing parenthesis, so the rest of the content stream was skipped and pages rendered blank or with missing glyphs. Content streams are now read as raw bytes on every system code page
Version 3.663.0
Added
- OptimizeEmbeddedFonts re-subsets embedded composite (Type0) TrueType and OpenType fonts to the glyphs the document text uses, keeping glyph IDs so pages render and extract text exactly as before; option 1 also shrinks fonts that are already subsets, for example after pages are deleted
- GetLastFontOptimizationJSON reports each composite font with its outcome, the number of codes in use and the program size before and after
- The DLL exports DLOptimizeEmbeddedFonts and DLGetLastFontOptimizationJSON
Version 3.662.0
Added
- HTML tables size columns without a width from their content, following the CSS automatic table layout: short columns stay narrow, long text gets the remaining room before it wraps, and cells spanning several columns widen the columns they cover
- HTML tables that set border-spacing, without border-collapse:collapse, separate their cells by that spacing
Fixed
- HTML text no longer stops responding and exhausts memory when a single character does not fit the available width, as in a very narrow table column
Changed
- The HTML tag appendix now documents rowspan, explicit and automatic column widths, repeated header rows, border handling and nested tables as implemented
Version 3.661.0
Added
- ExecuteFormFieldTriggerScript runs a field focus, blur, mouse or page-visibility JavaScript action, ExecutePageScript runs a page open or close action, and ExecuteDocumentScript runs the document open action or a will-close, save or print action, all in the bounded form-script runtime with event.type and event.name set; field values the script assigns are written to the document
- ExecuteFormFieldScriptJSON runs a field value event from plain arguments and returns the result and event state as JSON
- The DLL and the new ActiveX IPDFlibrary4 interface (type library 3.5) expose the form-script runtime: script execution, the event triggers, limits, diagnostics, host action mode, recalculation and the calculation graph
Fixed
- Form scripts no longer treat a quoted string such as "-" or "+" as an operator, so expressions like event.value + "-" + name evaluate correctly
Version 3.660.0
Added
- Form scripts can create dates with new Date() and numeric new Date(...) arguments, read them with getFullYear, getMonth, getDate, getDay, getHours, getMinutes, getSeconds and getTime, compare and subtract them, and format and read them with util.printd and util.scand using the Acrobat date field codes
- AFNumber_Keystroke, AFPercent_Keystroke, AFDate_KeystrokeEx, AFTime_Keystroke, AFSpecial_Keystroke and the new AFSpecial_KeystrokeEx mask helper validate keystrokes: while typing they check the value the keystroke would produce, and at commit or during validation they check the complete value
Fixed
- AFNumber_Format separator styles 1 and 2 now produce 1234.56 and 1.234,56 as documented instead of the reverse, and AFPercent_Format now applies its separator style
- AFDate_FormatEx and AFTime_Format read and display values with the Acrobat field codes, so mm means month and MM minutes, instead of depending on the system date settings; an empty value stays empty
Version 3.659.0
Added
- The bounded form-script runtime supports more helpers found in real forms: AFMergeChange(event), util.printf with %d, %f, %s and %x and the ,0 to ,4 separator styles, Math.pow, Math.sqrt, a global getField(...), and the string and number members length, toFixed, toString, toUpperCase, toLowerCase, trim, indexOf, charAt, substring and substr
- SetFormScriptHostActionMode and GetFormScriptHostActionMode choose how host actions such as app.alert, app.beep, app.launchURL, app.mailMsg, this.print, this.submitForm, this.mailDoc, this.resetForm and getField(...).setFocus are treated; they are never performed by the library
- In the default reject mode a host action still makes the script unsupported; in defer mode each action and its evaluated arguments, including object literals such as {cMsg: "Text"}, are recorded and the script continues, up to 64 requests per execution
- GetFormScriptDiagnostics reports the host action mode, the hostRequests the script reached and an unsupportedReason of hostAction, hostResult or dynamicExecution
Changed
- Dynamic code such as eval, new Function and app.setTimeOut, and host calls whose answer is needed such as app.response, remain unsupported in both modes and are now identified in the diagnostics
Version 3.658.0
Added
- The ActiveX library adds the IPDFlibrary3 interface with SetCairoFileName, SetPDFiumFileName, SelectedRenderer and GetRenderCapabilities, so Automation clients can configure and check the Cairo and PDFium renderers; it is the default interface of type library version 3.4, and IPDFlibrary and IPDFlibrary2 are unchanged
Changed
- RenderPageToDCClip and RenderPageRegionToFile now render with PDFium when it is selected, applying the clip rectangle on the device context instead of switching to the built-in renderer
- DARenderPageToDC now renders with PDFium when it is selected, including unsaved Direct Access edits, and returns 0 when PDFium cannot render instead of reporting success
Version 3.657.0
Added
- Tile rendering (RenderPageTileToStream, RenderPageTileToFile, RenderPageTilesToFiles and RenderPageTiledToStream) now draws with the Cairo or PDFium renderer when one is selected; PDFium tiles render one at a time from a single parsed copy of the document
- RenderPageLayerToStream and the related layer functions now render through Cairo when it is selected, keeping the transparent annotation and form layers
Changed
- RenderXFAPageToStream and the other XFA page rendering functions now use the selected renderer, render scale, crop type and JPEG quality, as already documented
- RenderPagesToFilesParallel now configures every worker with the selected renderer, render scale, crop type and JPEG quality; a PDFium selection renders on a single worker because PDFium is not thread-safe, and an unavailable renderer library renders no pages instead of falling back silently
- FlattenTransparency rasterizes pages through the selected renderer, because it renders through the tile path
Version 3.656.1
Fixed
- RenderPageToDCClip now applies the clip rectangle when the Cairo renderer is selected instead of drawing the whole page
- The RenderPageToDCClip clip rectangle now moves with the SetRenderDCOffset offset, as documented, so it keeps selecting the same part of the page
- RenderPageRegionToFile now renders the requested region into the bitmap for regions that do not start at the top-left corner of the page; previously such regions produced a blank or wrong image with the built-in and Cairo renderers
Version 3.656.0
Added
- GetRenderCapabilities returns a JSON matrix of rendering and printing operations, showing for each one how the built-in, Cairo and PDFium renderers handle it, whether it is Windows-only and whether the DLL, ActiveX and macOS dylib facades export it
- The report lists the formats each renderer accepts and can optionally load the configured Cairo and PDFium libraries to confirm they are available before rendering
- DLGetRenderCapabilities and DLGetRenderCapabilitiesA expose the report through the DLL
Version 3.655.0
Added
- RenderPageToMemory now renders through the Cairo renderer, filling the caller buffer with the whole page in 24-bit or opaque 32-bit pixels
- Cairo memory rendering re-renders pages that are smaller than the target buffer at a higher resolution before resampling, so enlarged buffers stay sharp
Changed
- RenderPageToMemory reports a LastRenderError message when the default renderer is selected instead of failing silently
Version 3.654.0
Added
- Compatible DLL and versioned ActiveX extension methods expose signature seed legal attestations, metafile diagnostics and complete file-based PDF/VCR merge arguments
- IPDFlibrary2 extends Automation while retaining the legacy interface IID, method order, dispatch identifiers and existing DLL export ordinals
- ExecuteVCRDataMergeCurrent merges the selected template into a new selected document while keeping the original document available
Fixed
- Legacy DLL and ActiveX VCR merge calls now execute the current-document merge contract, and DataBar variant zero forwards to the supported encoder while other variants fail explicitly
- Canonical measurement documentation identifies absolute Right and Top coordinates behind the legacy Width and Height parameter labels
Version 3.653.0
Added
- Native certificate Freshest CRL discovery accepts reason flags and distinguished-name CRL issuers, associates locations with the authenticated complete CRL issuer and validates canonical distribution-point names
- Native revocation qualification covers direct and indirect reason partitions, relative and full distinguished-name scopes, and compatible delta coverage
Fixed
- Complete-CRL selection excludes delta candidates, so an orphan or differently scoped delta cannot establish complete coverage or incorrectly revoke a certificate
- Malformed trailing names, duplicate or unordered fields, invalid reason flags and forbidden CRL-source fields cannot initiate partial Freshest retrieval
Version 3.652.0
Added
- Native signer-chain and timestamp verification can resolve auxiliary CRL signer revocation through independent CRL or OCSP evidence with path-only, preferred and required policies
- Missing auxiliary status joins the existing bounded online scheduler and follows configured OCSP method, nonce and request-signing policies
- Document and timestamp reports expose separate auxiliary signer checked, good, revoked and unknown counts, and native capability reports identify this policy
Fixed
- Authenticated auxiliary revocation invalidates the affected CRL without misclassifying the document certificate as revoked
- Self-dependent, circular and over-depth auxiliary proofs cannot establish good signer status, including when the outer policy permits unresolved status
Version 3.651.0
Added
- NativeFreshestCRLMode selects disabled, preferred or required online Freshest CRL retrieval, with preferred retrieval enabled by default on the native route
- Authenticated certificate and complete-CRL URI/fullName advertisements can refresh cached coverage using the existing shared HTTP request, time and byte budgets
- Native backend reports identify Freshest discovery and retrieval support separately
Fixed
- Current complete-CRL coverage cannot cause online verification to skip configured advertised delta retrieval, and invalid base signatures or scopes cannot initiate that retrieval
- Required Freshest coverage remains unresolved for unavailable or invalid updates even when independent OCSP covers the document certificate
- Current-time retrieval can advance with transport while fixed historical time and downloaded-evidence non-persistence remain intact
- A newer delta cannot erase authenticated permanent revocation from a still-current compatible earlier delta
Version 3.650.0
Added
- Native revocation verification combines explicitly supplied compatible complete and delta CRLs, including indirect CRLs and delegated OCSP responder status, without requiring Freshest CRL advertisement
- Delta selection uses full-width CRL numbers and the latest compatible current update independently of evidence ordering
- Native backend reports expose delta CRL support and its retrieval boundary
Fixed
- A current authenticated delta can update an expired base only after base signature, scope, path and remaining validity checks succeed
- Hold release cannot erase permanent revocation or unsupported critical base extensions, and conflicting current updates cannot produce an order-dependent pass
- Native delta verification policy remains isolated across concurrent verification calls
Version 3.649.0
Added
- Native signer-chain and timestamp revocation verification accepts complete indirect CRLs with validated signing paths, cRLSign usage, distribution-point scope and issuer-aware revoked entries
- Delegated OCSP responders can use indirect CRLs for their own status while retaining independent issuer authorization and revoked-response rejection
- Native backend reports expose partial indirect CRL support and its qualification boundaries
Fixed
- CRLs issued outside the document certificate path remain available to scope-aware verification without promoting their signing certificates to trust anchors
- Different trusted roots, wrong issuers, out-of-scope CRLs and invalid signer credentials cannot establish indirect coverage
Version 3.648.0
Added
- Native delegated OCSP responders can establish their own revocation status from independently authenticated cached or fetched OCSP evidence, including bounded nested delegation
- Responder status queries share signer-chain and timestamp transport policies, optional nonce and PFX request signing, and existing request, time and byte limits
- Backend capability reports expose independent responder-status support
Fixed
- Responder revocation invalidates its response even when good CRLs or nocheck are also present, without misclassifying the document signer as revoked
- Circular or self-supporting status evidence cannot establish responder trust, and missing cached-response dependencies are resolved before repeating document-certificate queries
Version 3.647.0
Added
- Native signer-chain and timestamp OCSP requests can use an explicitly loaded PFX request-signing identity with SHA-256, requestorName and public certificate-chain inclusion
- Request identities persist across document opening and trust-anchor clearing, with explicit inspection and clearing methods and transactional replacement
- OCSPRequestSigningError reports local request-signing failures separately from certificate-chain and timestamp status
- Backend capability reports identify OCSP nonce and request-signing support through separate capability identifiers
Fixed
- Configured request-signing failures cannot silently produce unsigned OCSP requests or add document trust anchors
- Randomized request signatures retain one encoded request across transport fallback, and timestamp request credentials use current-time validity independently of historical evidence time
Version 3.646.0
Added
- NativeOCSPNonceMode selects disabled, preferred or required nonce matching for native signer-chain and timestamp OCSP requests
- Enabled requests use 32-byte CSPRNG nonces and reuse their exact request identity across responder URLs and GET/POST fallback within one verification call
Fixed
- Malformed, duplicate, critical or oversized OCSP nonce values cannot establish supplied or fetched certificate coverage
- Nonce matching never bypasses response signature, certificate identity, trust or freshness checks, and invalid replies retain bounded CRL fallback
Version 3.645.0
Added
- Native signer-chain and timestamp revocation verification consumes selected-signer CMS archival CRL/OCSP evidence with the same trust, identity and time checks as DSS material
- Signer-chain reports expose archival presence, CRL/OCSP/custom inventory and extraction errors separately from DSS counts
- Complete and Basic OCSP response encodings are supported in the archival attribute, with bounded parsing of optional custom entries
Fixed
- Archival evidence cannot inflate DSS validated response counts or consume another CMS signer's material
- Malformed archival syntax remains unresolved without masking independently authenticated revoked DSS evidence
Version 3.644.0
Added
- Native signature and document timestamps validate TSA revocation with cached DSS/VRI CRLs and OCSP or bounded online retrieval at the timestamp generation time
- DSS intermediate certificates complete native TSA chains without becoming trust anchors, and NativeOCSPHTTPMethod also controls timestamp OCSP transport
Fixed
- Native timestamps require ESS signing-certificate binding, including certificate hashes, optional issuer/serial values and additional chain identifiers
- Invalid ESS bindings stop before revocation retrieval, conflicting revoked evidence retains priority, and future responses cannot establish historical TSA status
Version 3.643.0
Added
- NativeOCSPHTTPMethod selects preferred or forced GET/POST transport for native signer-chain revocation checks
- OCSP GET requests encode bounded request bytes in the URL path while retaining query parameters and escaping base64 reserved characters
- Preference modes support method-rejection fallback within the existing shared request and response budgets
Fixed
- OCSP and CRL GET requests sharing a URL remain distinct when their Accept headers select different evidence
- GET URL construction accepts the exact supported length boundary and rejects an oversized expanded URL
Version 3.642.0
Added
- Native online revocation retrieves issuer and delegated OCSP responses with bounded HTTP(S) POST, exact request identity and CRL fallback
- OCSP and CRL retrieval share cache-first coverage, request and response budgets, and independent cached evidence accounting
Fixed
- Default current-time verification follows network elapsed time and rechecks base trust, while explicitly requested historical times remain fixed
- Fetched OCSP responses do not inflate DSS inventory or cached validation counts and are not retained for subsequent verification
- Recognized OCSP error statuses report unresolved evidence separately from malformed response structures
Version 3.641.0
Added
- Native cached OCSP validates directly authorized delegated responders with OCSPSigning usage, issuer signatures and their own CRL status or valid nocheck extension
- Responder certificates can be supplied in DSS material without becoming trust anchors
- Validated CRL and OCSP evidence combines per non-anchor certificate to complete signer-chain revocation coverage
Changed
- Online CRL retrieval fills missing coverage and rechecks cached delegated responses after new evidence arrives
- Unusable or revoked responder certificates discard their responses without being confused with revoked document signers
Version 3.640.0
Added
- Native signer-chain validation consumes cached issuer-signed OCSP responses with exact certificate attribution, signature verification and requested-time freshness checks
- Complete good OCSP coverage can establish non-anchor revocation success, with separate authenticated-response counts, status, reason and freshness reports
- Native capability reports expose the scoped cached OCSP implementation and its remaining delegation and online boundaries
Fixed
- Authenticated revoked evidence takes priority over good OCSP or CRL evidence regardless of response ordering
- A missing CRL for an earlier certificate no longer hides applicable revoked evidence for a later intermediate CA
Version 3.639.0
Added
- Native signer-chain validation supports cached direct complete CRLs for every non-anchor certificate at the requested verification time
- Native online revocation checks use cached CRLs first, then bounded HTTP(S) distribution-point retrieval after base trust succeeds
- DSS certificates can complete native intermediate chains without becoming trusted roots
Changed
- Native reports distinguish confirmed revocation from unresolved evidence and expose partial CRL and online retrieval capability coverage
Version 3.638.0
Added
- Native PFX signing preserves CAdES commitment and signature-policy values, and Adobe archival revocation values for ordinary detached signatures
- The native attribute path supports compatible RSA, RSA-PSS and ECDSA identities with bounded DER structure checks and complete authenticated attribute values
Fixed
- Standard PAdES signing processes reject nonempty Reason values when commitment or policy attributes are configured, and omit empty Reason entries
- Custom signed attributes remain authenticated through PAdES attribute re-signing and SHA-3 RSA-PSS CMS construction
Version 3.637.0
Added
- Native PFX signing supports detached RSA-PSS with SHA-1, SHA-2 and SHA-3 digests, matching MGF1 digests and digest-length salts
- Compatible constrained RSA-PSS keys retain their required scheme and constraints, while incompatible keys, digests and attached profiles fail explicitly
Fixed
- PAdES attribute signing retains the selected PSS parameters after removing signing-time
- RSA-PSS verification accepts standard omitted SHA-1 defaults and rejects duplicated, malformed or inconsistent parameters
- SHA-3 PSS digest identifiers omit parameters as required, and native CMS construction handles providers unable to generate that algorithm identifier
Version 3.636.0
Added
- GetNativeBackendCapabilities returns machine-readable native implementation coverage, target identity and explicit unsupported feature boundaries
- Optional ICC runtime probing distinguishes untested, available and unavailable dependencies without implying document or platform certification
Version 3.635.0
Added
- ICC component conversion preserves complete GRAY, RGB and CMYK output tuples through an optional LittleCMS 2 runtime, including all nine conversion directions and bounded multi-batch processing
- Native non-Windows ICC display transforms support compatible grayscale, RGB and CMYK sources with RGB destinations when LittleCMS is available
Fixed
- Changing an ICC transform's rendering intent retains its target profile and black-point compensation
- Windows ICC transforms apply the selected rendering intent to both source and destination profiles
- Native rendering starts with RelativeColorimetric intent and retains the current intent when an unrecognized name is encountered
- Declared ICC destination lengths cannot read beyond the supplied profile bytes
Version 3.634.0
Added
- Classic TIFF and BigTIFF import preserve compatible embedded grayscale, RGB and CMYK ICC profiles through explicit ICCBased image color spaces
- Profile binding covers selected pages, palettes, JPEG, separate color planes, complete 16-bit samples, padded tiles and all eight orientations
- Imported profiles include matching alternate device color spaces and request a compatible PDF version when version selection is unlocked
Fixed
- Malformed or incompatible ICC headers and tag-data ranges reject before changing the public image collection
- Profile-bearing Group 4 single-strip TIFF writer round trips retain the original profile bytes
Version 3.633.0
Added
- Classic TIFF and BigTIFF import support unsigned 8-bit chunky PackBits CMYK and reversed-fill grayscale or RGB strips and tiles
- Reversed-fill packed 1-, 2- and 4-bit grayscale preserves independent row padding and complete padded tile edges
Fixed
- Classic PackBits strips receive bounded payload validation before insertion, including complete packet expansion and selected-page isolation
- Malformed PackBits literal and repeated packets reject without changing the public image collection
Version 3.632.0
Added
- Classic TIFF and BigTIFF strips and tiles honor all eight Orientation values without resampling embedded pixels or reducing source precision
- Quarter turns exchange image dimensions and horizontal/vertical resolution, including selected pages and padded tile edges
Fixed
- TIFF container resolution takes precedence over density stored inside JPEG image blocks
- Native Windows rendering preserves edge pixels in orthogonal mirrored and rotated images, including indexed bilevel images
- Malformed Orientation fields reject before changing the image collection, while unaffected selected pages retain their source identity
Version 3.631.0
Added
- Classic TIFF and BigTIFF palette import supports unsigned 1-, 2-, 4-, 8- and 16-bit indices with compatible uncompressed, LZW, Deflate or PackBits strips and tiles, both byte orders and both fill orders
- High-precision palette colors and 16-bit indices expand to complete 16-bit RGB samples, including every entry in a 65536-color table, before PDF byte-order conversion
- Exactly byte-representable palettes retain compact Indexed output when their indices fit within 8 bits
Fixed
- Palette import no longer discards low color-component bits when an 8-bit PDF lookup table cannot represent the source colors exactly
- Expanded RGB dimensions, padded tile storage and combined index-plus-color decoding work are bounded before image insertion
- Classic palette strips receive bounded table and payload validation instead of bypassing these checks
- Win64 decompression distinguishes tiny successful outputs from zlib errors, preserving five-byte image rows and rejecting corrupt streams without runaway buffer growth
Version 3.630.0
Added
- Classic TIFF and BigTIFF import preserve unsigned 16-bit grayscale, RGB and CMYK samples across chunky or separate strips and tiles, both byte orders, both fill orders and compatible uncompressed, LZW, Deflate or PackBits storage
- Per-component horizontal prediction restores complete 16-bit values before PDF byte-order conversion, retaining low-bit precision, padded edges, partial strips and selected-page identity
Fixed
- 16-bit TIFF imports automatically require PDF 1.5 even when the image is composed from several strips or tiles
- Native CMYK bitmap rendering handles 16-bit image samples on its 8-bit display surface
- Unsupported classic TIFF sample depths cannot bypass bounded validation and fall back to an incorrectly reduced bitmap
Version 3.629.0
Added
- Classic TIFF and BigTIFF separate unsigned 8-bit RGB or CMYK planes support strip and tile import with uncompressed, LZW, Deflate or PackBits storage and both fill orders
- Each plane restores its horizontal predictor before lossless interleaving, with bounded per-block processing, complete padded tiles, final partial strips and selected-page decoding
- Compatible single-component separate-plane layouts retain their original packed samples and codecs
Changed
- BigTIFF import accepts word-aligned directories and external metadata from existing writers while preserving eight-byte header offsets and all range, cycle and resource checks
Fixed
- Classic strip TIFF with an invalid PlanarConfiguration no longer bypasses bounded layout validation and inserts an incorrectly interpreted image
- Malformed separate-plane counts, ranges, sample formats, predictors and compressed blocks reject before changing the public image collection
Version 3.628.0
Added
- BigTIFF and classic tiled TIFF LZW import require an initial ClearCode, complete EOI in the final encoded byte and exact bounded decoded size before image insertion
Fixed
- TIFF LZW preflight rejects extra bytes and concatenated streams while preserving all values of the unused bits in the final EOI byte
- Reusing an LZW decoder with an invalid initial code size clears the previous explicit-EOI observation
Version 3.627.0
Added
- BigTIFF and classic tiled TIFF import validate complete 8-bit sequential and progressive Huffman JPEG scans, coding tables, restart sequences, refinement state and EOI termination before image insertion
- JPEG entropy validation participates in the shared decoded-work budget and bounds progressive coefficient storage and scan work with explicit errors for unqualified coding processes
Fixed
- Truncated JPEG entropy, invalid runs or tables, inconsistent scans, missing restart markers, bad alignment padding and trailing payload bytes no longer pass TIFF frame-header checks
- TIFF shared JPEG tables retain reusable quantization and Huffman definitions without carrying global restart, arithmetic-conditioning or application metadata into image blocks
- JPEG image blocks cannot redefine shared tables or inherit local tables from a previous block
Version 3.626.0
Added
- BigTIFF and classic tiled TIFF import validate complete CCITT Group 3 rows, EOL framing, mixed-mode reference rows and optional six-EOL RTC within the shared decoded-work budget
- Group 3 validation supports one-dimensional and mixed two-dimensional data, both fill orders and supported byte-alignment options while rejecting damaged controls, unsupported options and trailing bytes before image insertion
Fixed
- Framed Group 3 image rendering preserves mixed two-dimensional pixels when either EOL or EOL/tag sequences are byte aligned, including tiled and single-strip TIFF output
Version 3.625.0
Added
- BigTIFF and classic tiled TIFF import validate complete CCITT Group 4 rows, legal transitions, EOFB termination and zero terminal padding within the shared decoded-work budget
- Unsupported Group 4 extension or reserved options and malformed, truncated or trailing payload data reject before image insertion
Fixed
- Single-strip TIFF output retains CCITT decode parameters and LZW or Deflate predictor settings, preserving image pixels through PDF generation and rendering
- Strict Group 4 decoding handles narrow rows, maximum-width changing elements and wide packed-buffer bit positions without relying on tolerant image recovery
Version 3.624.0
Added
- BigTIFF and classic tiled TIFF import validate bounded LZW and Deflate pixel payloads before adding images, including exact decoded sizes and required compression termination
- Compressed-payload validation has a cumulative decoded-work budget while selected-page import avoids decoding skipped pages
Fixed
- Invalid LZW codes, missing end markers, truncated Deflate streams, failed checksums and incorrect expansion sizes reject explicitly during image import
- Strict Deflate validation consistently requires one complete zlib stream with no trailing input across supported backend implementations
Version 3.623.0
Added
- Bounded tiled TIFF and BigTIFF import supports multipage selection, single-tile images and padded right and bottom edges with compatible uncompressed, LZW, Deflate, PackBits, JPEG and CCITT data
- Tile validation checks layout consistency, source ranges, padded decoded-size budgets and JPEG frame dimensions before image import
Fixed
- TIFF image composition retains complete tile dimensions and clips edge padding without stretching pixels; LZW and Deflate predictors use the encoded tile width and sample depth
- Native grayscale CCITT rendering uses explicit black and white samples and honors the combined BlackIs1 and Decode settings
Version 3.622.0
Added
- Bounded BigTIFF strip import supports little-endian and big-endian directories, 64-bit offsets and counts, inline field values, resolution and multipage selection
- Supported chunky unsigned 1-, 2-, 4- and 8-bit sample layouts use the existing TIFF image codecs with explicit format and resource-limit errors
Fixed
- TIFF PackBits import removes no-op packets before producing PDF RunLength data and writes a proper end-of-data marker
- TIFF stream reads reject oversized and truncated input before decoding, and parser reloads clear previous JPEG-table and source-format state
Version 3.621.0
Added
- Static CFF2 fonts without a variation-axis table support OpenType import, resolved CFF1 export and qualified external glyph selection
- Static CFF2 sources retain zero variation axes while supported variable CFF2 fonts keep their original axis-selection behavior
Fixed
- CFF2 conversion splits long line and curve operations into CFF1 operations within its operand-stack limit while preserving glyph geometry and glyph order
- Static CFF2 qualification rejects variation stores, variable metrics and variation operators that lack the required axis metadata
Version 3.620.0
Added
- Supported external CFF2 default instances can supply verified Unicode and character-collection substitution glyphs through a static CFF1 view
- Native CFF2 default-source rendering shares that verified outline view while retaining original font bytes, selected TTC face and parser reload checks
Fixed
- A generated static Identity charset does not establish an original CFF2 font's CID collection or authorize unqualified Identity substitutions
Version 3.619.0
Added
- Qualified external TrueType and CFF1 collection sources support multiple positioned glyphs for one CID, including combining marks and both horizontal and vertical shaping advances
- Rendering and text-to-path conversion retain each glyph position while PDF widths, vertical origins and character spacing apply once per original source character
- Whole-character exact replacement retains following anchors and shared Form ownership for supported multi-glyph collection sequences
Changed
- The native OpenType provider exposes an optional two-dimensional shaping interface while retaining its existing shaping and subsetting ABI
Version 3.618.0
Added
- Qualified external TrueType and CFF1 character-collection sources support multiple Unicode scalars that the native OpenType engine resolves to one unpositioned glyph
- Single-glyph collection sequences retain original PDF CID metrics, whole-source-character replacement, shared Form anchors and text-to-path output
Fixed
- Collection sequence shaping uses the same selected base Unicode cmap as glyph qualification, including fonts whose encoding-record priorities differ
Version 3.617.0
Added
- Qualified external TrueType and CFF1 sources support Unicode variation sequences declared in OpenType cmap format 14, including default and explicit alternate glyphs
- Supported Adobe character-collection mappings retain base characters and variation selectors for external Type 2 and Type 0 substitution glyph selection
- Variation sequences associated with one source character retain PDF CID metrics, exact source checks, whole-glyph replacement and text-to-path behavior
Version 3.616.1
Fixed
- TrueType glyph qualification accepts valid odd byte offsets in long loca tables during rendering, exact replacement and text-to-path conversion
- Short loca scaling, monotonicity, table bounds and used glyph-record validation remain enforced for embedded and qualified external sources
Version 3.616.0
Added
- External Type 0 CIDFonts support qualified CID-keyed CFF1 programs from the bound character collection, selecting glyphs through their actual CFF charset
- Type 0 substitution sources can use verified single-scalar Adobe character-collection mappings with TrueType or CFF1 outlines, including custom Encoding CMaps
- Qualified Type 0 sources support rendering, exact replacement and text-to-path conversion with independent PDF CID metrics and retained source checks
Fixed
- Windows Type 0 font loading retains selected sfnt programs for custom CMaps without a CMapName and can request PostScript outlines when a family has multiple installed formats
- External CID notdef selection retains the selected glyph CID separately from the original metric CID; unavailable collection mappings cannot authorize exact edits
Version 3.615.0
Added
- CFF1 glyphs support full affine FontMatrix transforms, including rotation, shear, nonuniform scaling and translation, with per-glyph CID Font DICT selection
- Effective matrices are composed from declared Top DICT and Font DICT values and retained with bounded source validation
Fixed
- CFF glyph matrices remain tied to the selected root glyph across decoded-program cache reuse, seac component lookup and font reloads
- CFF glyph transforms preserve PDF text widths, spacing, text rise and vertical origins during rendering, exact replacement and text-to-path conversion
- Loading CFF data from PDF streams preserves binary font bytes through a memory stream
Version 3.614.0
Added
- Qualified external Type 2 fonts support OpenType/CFF1 substitution programs, including selected CFF collection faces, while retaining original PDF CID metrics
- Name-keyed and CID-keyed CFF1 substitutions use verified Unicode glyph indices, bounded CharStrings validation and native decoder source checks
Fixed
- CFF scalar font-matrix scaling is applied to glyph geometry without changing PDF text advances, spacing, rise or vertical origins
- Native sfnt drawing discards CFF decoder caches after parser reloads and checks the selected CharStrings identity before drawing
- Text-to-path conversion retains additional precision for fractional glyph coordinates
Version 3.613.0
Added
- Qualified external TrueType glyph sources support selected TTC faces and native sfnt data blocks with collection offset biases while preserving original CID metrics
- Windows native CJK fonts with supported named Unicode CMaps can retain owned TrueType programs for verified rendering, text-to-path conversion and exact replacement
Fixed
- Collection qualification checks requested and selected face state, original container bytes and offset bias before committing staged text replacements
- Reloading a standalone font resets the parser's actual selected collection face
Version 3.612.0
Added
- Qualified external TrueType fonts can translate supported traditional predefined CMaps through bundled character-collection Unicode resources before selecting actual font glyphs
- Single-scalar mappings in Adobe Japan1, GB1, CNS1 and Korea1 collections support exact replacement with original CID widths, source-byte spacing and vertical metrics
Fixed
- External glyph translation derives its character selector from original code bytes and width instead of trusting the decoded metric CID or ToUnicode text
- Multi-scalar collection mappings remain explicit fallback cases and cannot authorize exact replacement by truncating their text
Version 3.611.0
Added
- Supported external Type 2 CIDFonts with predefined Unicode CMaps select actual glyph indices from the loaded standalone TrueType program while retaining original CID metrics
- Qualified external fonts support exact horizontal and vertical replacement with font-program, parser-state and cache-identity checks before commit
Fixed
- Qualified external glyph selection ignores CIDToGIDMap entries and does not treat ToUnicode extraction mappings as font glyph indices
- Missing external glyphs use the known notdef glyph for display and remain ineligible for exact replacement
- Native TrueType shape caches are invalidated when their parser reloads a font program
Version 3.610.0
Added
- Verified composite-font decoding binds the effective Encoding CMap to the descendant CIDFont character collection using Registry and Ordering, with universal compatibility for Identity-H and Identity-V
- Descendant CIDSystemInfo values require complete bounded ASCII collection names and a non-negative integral Supplement, whose value does not restrict collection compatibility
Fixed
- Incompatible character collections reject verified text measurement and exact replacements with a concrete diagnostic
- Supported embedded native rendering and text-to-path conversion reject incompatible collections without retrying legacy decoding
- Bound descendant metadata and indirect references participate in transaction source checks and retained-byte accounting, and failed cached bindings cannot silently adopt changed metadata
Version 3.609.0
Added
- Verified Encoding CMaps check declared CMapName and CIDSystemInfo values against their stream dictionaries, including bounded names, ASCII collection strings and integral supplements
- Inherited CMaps require compatible Registry and Ordering values while allowing different supplement numbers
Fixed
- Staged exact replacements detect changed metadata values, equivalent metadata-object replacements, stream-dictionary replacements and indirect-reference identity changes
- Unknown dictionary scopes cannot install a CMap writing mode, and body usecmap references must precede mapping sections
- Canonical CMap prologs and envelopes are checked without executing PostScript, while existing declarative mapping fragments remain supported
Version 3.608.0
Added
- Supported native embedded fonts recover invalid Encoding CMap input through CID zero using the longest matching byte prefix and the shortest code length for ties
- Decoded invalid codes retain actual source bytes and expected code lengths, and text extraction reports invalid-code and fallback flags while preserving available ToUnicode text
Fixed
- Truncated multibyte codes ending in byte 20 do not receive single-byte word spacing during rendering, measurement or outline conversion
- Encoding CMap decoding shares a bounded work budget across an operand, and qualified native rendering and outline conversion cannot bypass that limit through legacy decoding
Version 3.607.0
Added
- Native embedded CFF and TrueType fonts consult explicit notdef mappings when a normal CID has no glyph, then use the CID-zero glyph if needed
- Valid codes without a mapping can use CID zero when the embedded font provides a known fallback glyph
Fixed
- Glyph substitution retains the original character code, Unicode mapping, spacing and CID widths instead of applying the substitute glyph's metrics
- Resolved TrueType mappings to GID zero no longer draw an unrelated glyph with the original CID number
- Text-to-path conversion uses resolved embedded glyphs and source code lengths, including mixed-width composite fonts, word spacing and vertical origin placement
Version 3.606.1
Added
- Declarative Encoding CMaps accept usefont when it selects the sole PDF descendant font, zero
Fixed
- Encoding CMap sections enforce the specified maximum of 100 entries while retaining support for multiple sections
- Normal and explicit notdef mappings must remain inside the combined one-to-four-byte codespace domains, including inherited domains and disjoint byte ranges
- Invalid mapping domains cannot authorize exact Unicode replacements, and four-byte domain checks do not expand potentially billions of character codes
Version 3.606.0
Added
- Exact Unicode replacement qualifies embedded CIDFontType0 CFF1 glyphs, including additional vertical Encoding CMaps, raw CFF streams, and OpenType CFF programs
- Used CFF glyphs are checked through bounded charsets, FDSelect and Type 2 programs, including local and global subroutines, operand stacks, masks, arithmetic, and component names
Fixed
- Missing CFF CIDs no longer fall back to unrelated glyph indices, and predefined CFF charsets select the correct glyph names and charstrings
- Native CFF reloads clear prior glyph caches and retain source identity for transaction checks; changed font programs, descriptors, or rasterizers prevent staged replacements from committing
- Native Type 2 index and roll operators use the specified stack order and bounded rotation
Version 3.605.0
Added
- Exact Unicode replacement supports additional vertical Encoding CMaps when their used CIDs resolve to verified glyphs in an embedded TrueType program
- Composite replacements retain font descriptors, embedded program bytes and dictionaries, CIDToGIDMap sources, and used native glyph-cache mappings for checks before commit
Fixed
- Embedded TrueType edits reject missing CID mappings, notdef and out-of-range glyph indices, malformed glyph records, cyclic components, and invalid font-table bounds
- Native glyph-cache checks compare the parser's actual source bytes and detect changed glyph maps or rasterizers during staging
Version 3.604.0
Added
- Exact Unicode replacement retains and rechecks ToUnicode roots, inherited CMap streams, UseCMap names and references, and stream dictionaries before committing selected page or Form changes
- Simple-font mapping checks cover base encodings, Differences arrays and glyph names, font identity, and symbolic-font flags used to establish the Unicode mapping
Fixed
- Staged replacements reject Unicode source changes even when replacement objects contain identical values or encoded stream contents
- Unicode mapping snapshots share the transaction source budget and enforce bounds on source records, names, arrays, reference depth, and decoded inherited CMap data
Version 3.603.0
Added
- Staged vertical composite replacements recheck DW2 and W2 references, array structure, and real-valued metrics before committing selected page or Form changes
- Retained vertical metric sources and indexes share the existing transaction source-planning budget
Fixed
- Native vertical metrics use bounded indexed W2 ranges with deterministic first-declaration precedence for overlapping entries
- Vertical rendering and text metrics share signed, fractional advances and origin vectors, including default origins derived from real horizontal widths
- Metric source checks detect indirect null entries whose resolved targets change before commit
Version 3.602.0
Fixed
- Native composite-font rendering, extraction, and exact replacement preserve fractional DW and W widths and following-text anchors
- Overlapping CID width declarations use the first specification, including mixed array and range forms
- Malformed and oversized CID width ranges are checked before compatibility-table expansion
Added
- Staged composite replacements revalidate Encoding CMap bytes, font descendant references, and horizontal-width references and values before committing selected page or Form changes
- Retained composite CMap and width-source planning data participates in the transaction source budget
Version 3.601.0
Added
- Native Type0 rendering, extraction, and content analysis decode one-to-four-byte character codes through supported Encoding CMaps, including predefined resources and stream inheritance
- Verified WMode declarations control text movement independently of custom CMap name suffixes
Fixed
- Composite-font glyph selection, widths, Unicode lookup, and source locations retain the separate character code, CID, and encoded byte length
- Word spacing applies only to single-byte code 20 in mixed-length composite fonts
- Font-encoded content strings retain leading FE FF bytes without Unicode text-string conversion
Version 3.600.1
Fixed
- Free Pascal Win64 builds compile vector EMF path-state and text-justification handling with the native GDI declarations
Version 3.600.0
Added
- Exact Unicode replacement supports Type3 fonts with verified Widths, FontMatrix, Differences mappings, and d0 or d1 character-procedure metrics
- Type3 glyph programs are captured within source-planning limits and revalidated before selected page or Form changes are committed
- Known Type3 glyph-name mappings preserve complete ligatures and supplementary characters without ToUnicode, while private names require explicit mappings
Fixed
- Type3 rendering and extraction apply matrix-transformed horizontal advance, text spacing, rise, and horizontal scaling consistently across text-showing operators
- Rotated, sheared, negative, translated, and zero-component Type3 matrices preserve following-text anchors through replacement, deletion, and encrypted save/reload
- Type3 content strings preserve leading FE FF font codes without Unicode BOM conversion
- Invalid byte-code bounds no longer reach simple-font width array indexing
- Native stream rendering returns failure with the retained renderer error before encoding a partial bitmap
Version 3.599.0
Added
- Exact Unicode replacement supports Identity-V text with verified mappings and vertical metrics, retaining following-text anchors in page streams and selected shared Form invocations
- Vertical replacement preserves TJ offsets, spacing, text rise, deletion, and encrypted save/reload, with explicit rejection of unverified vertical encodings and incompatible replacement writing modes
Fixed
- Vertical font metrics retain real-valued DW2 and both W2 forms, including consecutive CID arrays, glyph position vectors, and default origins from real-valued W and DW widths
- Malformed or overlapping vertical metrics no longer authorize exact advance measurement
- Native rendering and extraction preserve vertical cursor movement independently of horizontal scaling
- Vertical TJ adjustments include an empty string so viewers retain the writing direction for standalone numeric offsets
Version 3.598.0
Added
- Exact Unicode replacement edits selected invocations of nested shared Forms, copying their invocation chains while preserving sibling calls and pages
- Form replacement preserves inherited font selection across resource-name collisions, following text anchors, and encrypted save/reload
- Nested replacement captures bounded source snapshots and validates invocation identity and source content before committing page changes
Fixed
- Legacy Forms and Type3 glyphs without Resources resolve named resources from the page, and edited Form copies include explicit effective resources
Version 3.597.0
Added
- Unicode extraction and exact content replacement resolve ToUnicode inheritance from embedded base streams and five bundled Adobe mapping resources, preserving child overrides and the shared base
- Inherited CMap parsing applies shared byte, mapping, Unicode, codespace, and depth limits, with explicit cycle and unsupported-name diagnostics
Fixed
- Verified multi-byte codespaces use per-byte bounds, accepting disjoint rectangular ranges while rejecting character codes outside the corresponding byte ranges
- Unicode text extraction uses the same verified inherited mapping as exact replacement, including saved and encrypted documents
- Zero-valued double-byte character codes retain their full source ranges so following character locations do not drift
- Long mixed-width character strings retain all source codes across decoding buffer boundaries
Version 3.596.0
Added
- GetLastMetafileDiagnostics returns bounded JSON reports for vector, raster, and failed metafile imports, including record indices, unsupported features, and conversion errors
- Text paths retain glyph outlines from ANSI, Unicode, multiple-text, and compact text records for deferred painting and clipping
Fixed
- EMF pattern brushes retain literal DIB colors, monochrome colors, hatch foregrounds, transparent backgrounds, device origins, and saved color state
- Pattern resources allocate once, release owned bitmaps, and store bitmap tiles as image objects with independent opacity masks
- Pattern bitmap bounds and text-record arrays are validated before decoding, and failed imports preserve diagnostic details
Version 3.595.0
Added
- Windows vector EMF import applies calibrated RGB and embedded or local-file RGB input profiles, output device profiles, and target-profile proofing
- EMF color management retains its state across saved device contexts, presents RGB and CMYK output profiles in display RGB, and manages decoded RGB bitmap rows
- Color profile records validate their declared lengths, Unicode names, and data limits; remote profile references are rejected
Fixed
- EMF import starts with ICM disabled, honors query and externally managed modes, and defers source-color changes while target proofing is active
Version 3.594.1
Added
- Vector EMF import applies text justification to ANSI and Unicode text, including native advance rounding, explicit character advances, saved device contexts, and current-position updates
Fixed
- Failed metafile imports release newly created document fonts and native measurement resources, and malformed text strings and advance arrays are rejected before access
- Path replacement discards staged geometry, and multi-polyline paths retain empty-segment compatibility without duplicating or prematurely painting figures
Version 3.594.0
Added
- Vector EMF import applies excluded and offset clips, combined rectangle regions, clipping paths, meta regions, and PaintRgn fills with the selected brush
Fixed
- Saved EMF device contexts restore drawing and clipping state, including operations that expand or replace a previous clip
- Shapes inside EMF path brackets remain unpainted until a path operation uses them, and curved clipping paths follow the playback coordinate mapping
- Failed EMF record conversion reports the record number and reason instead of silently continuing with incomplete output
Version 3.593.2
Fixed
- Page normalization keeps annotation coordinates, normal and interactive appearances, form widgets, signature widgets, and upright annotations aligned with rotated or offset page content
- Normalizing one page preserves appearance streams and content arrays shared with other pages, and malformed annotation geometry is rejected before page normalization begins
- Direct Access saves handle sources without an Info dictionary, and normalization content layers retain correct encryption after save and reload
Version 3.593.1
Fixed
- Direct Access string, stream, single-file, and page-range image output now honor the selected PDFium or Cairo renderer, include pending edits, and keep the source handle open
- Failed Direct Access image rendering reports its error and preserves existing output instead of returning empty data or creating an empty file
- PDFium applies inherited page rotation once so rotated raster output retains the correct dimensions and orientation
Version 3.593.0
Added
- Added dynamic
<occur>repeating subform expansion against multi-record datasets and<barcode>,<imageEdit>, and<dateTimeEdit>UI control metadata extraction inLib\PDFlibXFA.pas - Extended the safe AcroForm JavaScript engine in
Lib\PDFlibFormScript.paswith line and block comment skipping (//and/* ... */), local variable declarations (var,let,const), the ternary conditional operator (? :), reverse field writebacks viathis.getField("...").value = ..., and built-in keystroke validators (AFNumber_Keystroke,AFPercent_Keystroke,AFDate_KeystrokeEx,AFTime_Keystroke, andAFSpecial_Keystroke) - Enhanced vector appearance synthesis in
Lib\PDFlibAnnotAppearance.pasfor/Subtype /FileAttachment(supporting/Name /Paperclipand/PushPinicons),/Subtype /Sound(speaker cone with acoustic wave arcs), and/Subtype /Caretannotations - Added
TPDFlibAttachmentPanel(withSaveAttachmentToFile) for embedded document attachments andvmDrawInk,vmDrawSquare, andvmDrawCircleviewer modes inLib\PDFlibViewer.pas - Exported
DLExecuteVCRDataMerge/DLExecuteVCRDataMergeAandDLDrawGS1DataBar/DLDrawGS1DataBarAacrossDLL\PDFlibDllFunctions.pas,DLL\PDFlibDLLExports.inc,Dylib\PDFlibDylib.dpr, andOCX\PDFlibAX.ridl/OCX\PDFlibActiveX.pas
Version 3.592.0
Added
- Added pure-Pascal CMS
EnvelopedDataconstruction and decryption helpers (PLBuildPurePubSecEnvelopeandPLDecryptPurePubSecEnvelope) inLib\PDFlibModernSign.pasand wired them intoLib\PDFlibPubSec.pasfor cross-platform/Filter /Adobe.PubSeccertificate encryption (/adbe.pkcs7.s3,/adbe.pkcs7.s4,/adbe.pkcs7.s5), including RSA PKCS#1 v1.5 key transport, ECDH key agreement, SM2/SM4 envelope wrapping, and Revision 6SM3StreamRangefile key derivation - Added PKCS#12/PFX
AuthSafeprivate-key extraction, PBES2HMAC-SM3PRF derivation, andSM4-CBC(1.2.156.10197.1.104.2) private-key decryption toPLDecryptPKCS8PrivateKeyinLib\PDFlibModernSign.pas, plusAdobe.PubSecmetadata reporting inTSmartPDFInfo.GetEncryption(Lib\PDFlibSmartAccess.pas) - Added pure-Pascal
Ed25519(1.3.101.112) andEd448(1.3.101.113) XML-DSig verification inLib\PDFlibEUTSL.pas, POSIX/FPC dynamic module loading andCKM_RSA_PKCS_PSS/CKM_EDDSA/CKM_SM2mechanisms inLib\PDFlibPKCS11.pas, andListCredentials,SendOTP, andRefreshOAuthTokeninTPDFlibCSCClient(Lib\PDFlibCSC.pas) - Added vertical OpenType variation table support (
VVARvertical advance deltas andMVARvertical tagsvasc/vdsc/vlgp/vcrs/vcrn/vcof) viaApplyVerticalVariationsinLib\PDFlibVariableFont.pasand Indic/Khmer syllable pre-base matra and virama reordering viaPLReorderSyllableGlyphsinLib\PDFlibOpenTypeFallback.pas - Added pure-Pascal
VP8Llossless WebP header/ARGB decoding fallback (PLDecodePureWebPVP8L) inLib\PDFlibImage.pas, 16-bit/32-bit sample extraction and planar configuration (pcPlanar) support inLib\PDFlibTIFF.pas, and JBIG2 Symbol Dictionary (Segment Type 0) generation inLib\PDFlibJBIG2Enc.pas
Version 3.591.0
Added
- Added SVG compound, descendant, and child CSS selector matching with specificity ordering,
<pattern>tiling fills,stroke="url(#...)"gradient strokes,<symbol viewBox>scaling,<mask>clipping, and<textPath>layout inLib\PDFlibSVG.pas, plus CSSmix-blend-modeand stroked text export inLib\PDFlibSVGExport.pas - Added inline
<svg>and<math>rendering,<pre><code>monospace shaded boxes,<blockquote>quote bars, and block-level CSS padding/border/background inLib\PDFlibHTMLRender.pas, nested blockquotes and LaTeX math forwarding inLib\PDFlibMarkdown.pas, and\mathsf,\mathtt, and\ointcontour integral rendering inLib\PDFlibFormula.pas - Added
DrawGS1DataBar(Barcode = 11) inLib\PDFlibBarcode.pasandLib\PDFlibrary.pas, built-in EAN-13/UPC-A/EAN-8 and DataMatrix decoding across platforms inLib\PDFlibBarcodeReader.pas, and multi-column layout segmentation plus extended Latin-1 template recognition inLib\PDFlibOCRNative.pas
Version 3.590.0
Added
- Added
ExecuteVCRDataMergeandPDFlibPDFVCR.ExecuteVCRDataMergeto execute ISO 16613-1 (PDF/VCR-1) variable content replacement templates against key-value or JSON field maps by rewriting matchingGTS_Replacementmarked-content sequences (/Span << /MCID ... >> BDC ... EMC) inside page content streams
Changed
- Completed read-side PDF/A-1/2/3/4 compliance verification in
PDFlibPDFA.pasandPDFlibValidationReport.paswith glyph width consistency checks against embedded font programs (00079), subset/CIDSetand/CharSetglyph coverage verification (00080), non-symbolic TrueType(3,1)/(1,0)cmapsubtable validation (00081), content-stream.notdefglyph reference detection (00082), transparency group/CScolor space validation (00083), and PDF/A-2 embedded file PDF/A header compliance checks (00084), bringingGetPDFAReadValidationCoverageJSONunverified rules to zero - Completed read-side PDF/UA-1 and PDF/UA-2 compliance verification in
PDFlibPDFUA.pasandPDFlibValidationReport.paswith untagged top-level page content operator detection outsideBDC/BMCmarked content (10064),<TH>/Scopeand<TD>/HeadersID array validation for complex tables (10065), MathML 3.0 structure tag name verification, and updatedGetWCAGMappingJSON/GetPDFUAReadValidationCoverageJSON - Enhanced PDF/X, PDF/E, and PDF/VT compliance validators (
PDFlibPDFX.pas,PDFlibPDFE.pas,PDFlibPDFVT.pas) to enforce/Info/Trappedstrictly as/Trueor/False, reject pages carrying both/TrimBoxand/ArtBoxwhile accepting/ArtBox-only pages, accept PDF 1.4–1.6 in PDF/E-1 and auditType0DescendantFontsand implicit font dictionaries, and validate XObject/GTS_Scopeenumerations and cross-object/GTS_XIDuniqueness - Expanded the built-in electronic invoice validator in
PDFlibInvoiceValidation.paswith line-levelAllowanceChargeandBasisQuantity/BaseQuantitynet amount calculations,BR-CO-17VAT category tax rounding checks, Peppol BIS Billing 3.0 rules (PEPPOL-EN16931-R001,PEPPOL-EN16931-R010,PEPPOL-EN16931-R020), and German XRechnung national rules (BR-DE-1,BR-DE-2,BR-DE-15) - Extended the Arlington PDF Model validator in
PDFlibArlington.pasto support scoped key paths (parent::,catalog::,trailer::) and predicatesfn:RequiredValue,fn:InNameTree, andfn:InKeyMap
Version 3.589.1
Fixed
- SM2 and SM3 signatures now use the registered GM/T 0006 object identifiers: CMS SignerInfos write
1.2.156.10197.1.401for SM3 and1.2.156.10197.1.501for SM2-with-SM3, and RFC 3161 timestamp requests created with SM3 use1.2.156.10197.1.401; earlier versions wrote an unregistered1.2.156.101.1arc that third-party validators do not recognize SetSignProcessSM2IdentityandPLValidateSM2Identitynow accept GM/T 0015 SM2 certificates that carryid-ecPublicKeywith the SM2 curve parameter1.2.156.10197.1.301, as well as certificates that put the SM2 OID in the algorithm field- Signatures produced by earlier versions with the old identifiers still verify
Version 3.589.0
Added
- Added
TPDFlibViewer.AutoExecuteFormScriptsto automatically run field validation (/V) and dependent calculation chains (/CviaRecalculateFormFields) during interactive and programmatic form edits (TPDFlibViewer.SetFormFieldValueAndRefresh), and addedTPDFlibThumbnailBar.ThumbDPI(clamped to4..144, default9) for configurable HiDPI page miniature rendering (TPDFlibThumbnailBar) - Added XFA
<draw>vector shape extraction and rendering for<value><line>(includingslope="/"and<edge thickness="..."><color value="R,G,B"/>) and<value><rect>(including stroke and<fill><color value="R,G,B"/>) inPDFlibXFA.pasand static XFA page rendering (RenderXFAPageToStream,RenderXFAPageToString, andRenderXFAPageToFile)
Changed
- Enhanced structured XHTML (
ExtractStructuredPage/ExtractStructuredDocumentwithPDF_STRUCTURED_TEXT_XHTML) and Markdown (ExportPageMarkdown/ExportDocumentMarkdown/SaveMarkdownToStream/SaveMarkdownToFile) exports to preserve page/Linkannotations as inline hyperlinks (<a href="...">and[text](uri)) and embed extracted page images as inline Base64 PNG Data URIs (<img src="data:image/png;base64,..."/>and) - Enhanced
DrawMarkdownTextandDrawMarkdownTextBoxto render inline code spans and fenced code blocks in monospaceCourier(via<font face="Courier">inPDFlibHTMLRender.pas) and enclose fenced code blocks in a full-width bordered, shaded container
Version 3.588.0
Added
- Added ISO 32000-2 geospatial viewport creation and bidirectional page/geographic coordinate transformation (
AddPageGeoViewport,PagePointToLatLon,LatLonToPagePoint, and WGS 84 ↔ Web MercatorEPSG:3857projection helpersPLLonLatToWebMercator/PLWebMercatorToLonLatinPDFlibGeospatial.pas) - Added measurement line annotation creation (
AddMeasureLineAnnotation) and automatic appearance synthesis for/IT /LineDimension,/PolyLineDimension, and/PolygonDimensionmeasurement annotations with leader lines (/LL,/LLE,/LLO) and/Measurescale ratio labels inPDFlibAnnotAppearance.pas - Added pure-Pascal Factur-X / ZUGFeRD EN 16931 CrossIndustryInvoice (CII D16B) and OASIS UBL 2.1 electronic invoice XML generation (
GenerateInvoiceXML,PLBuildFacturXCIIXML,PLBuildUBL21InvoiceXML, andPLBuildInvoiceXMLSimpleinPDFlibInvoiceValidation.pas)
Changed
- Enhanced annotation appearance synthesis in
PDFlibAnnotAppearance.pasto render dashed border patterns (/BS << /S /D /D [...] >>and 4-element/Borderdash arrays), cloudy border scallops (/BE << /S /C /I ... >>onSquare,Circle, andPolygonannotations), and per-annotation/CA//caopacity via/ExtGState /GS0across all geometry and markup subtypes - Expanded the built-in EN 16931 / Peppol BIS 3.0 invoice validator in
PDFlibInvoiceValidation.paswith ISO 8601 / format-102 calendar date validation, document-level allowance and charge sum checks (BR-CO-11,BR-CO-12), and VAT category rate, tax amount, and exemption reason rules (BR-S-05,BR-S-09,BR-Z-09,BR-E-09,BR-E-10,BR-AE-09,BR-AE-10) - Extended the Arlington PDF Model validator in
PDFlibArlington.pasto evaluate numeric metric functions (fn:ArrayLength,fn:StringLength,fn:StreamLength,fn:RectWidth,fn:RectHeight), relational operators (>=,<=,>,<), bitmask predicates (fn:BitSet,fn:BitClear,fn:BitsSet,fn:BitsClear),fn:IsMeaningful, andfn:DefaultValue
Version 3.587.0
Added
- Added native Excel OpenXML (
.xlsx) table export (SaveTablesXLSXToStream,SaveTablesXLSXToFile, andTPDFXLSXBuilderinPDFlibDOCXExport.pas) with multi-sheet generation, multi-page table continuation appending, numeric vs inline-string cell typing, merged cell ranges (<mergeCells>), header shading, grid borders, and column width calculation - Added ISO/IEC 24778 Aztec 2D barcode generation (
DrawAztecCodeandTPDFAztecCodeinPDFlibBarcode.pas) supporting Compact (1–4 layers) and Full-Range (1–32 layers) symbols, automatic 5-mode bit-stream latch/shift encoding, GF(16)/GF(64)/GF(256)/GF(1024)/GF(4096) Reed-Solomon error correction with bit stuffing, bullseye finder rings, and orientation marks - Added a pure-Pascal dependency-free 1D barcode scanner fallback (
PDFReadBarcodesBuiltIninPDFlibBarcodeReader.pas) supportingCode 128(Start A/B/C with Modulo-103 checksum),Code 39,EAN-13, andEAN-8across multiple scanlines whenzxing/zbarimgexternal CLI tools are unavailable
Changed
- Enhanced
SaveDOCXToStreamandSaveDOCXToFileto detect HTTP/HTTPS/mailto URLs in text runs and wrap them in<w:hyperlink r:id="rIdH...">elements with external relationship entries, emit proportional<w:tblGrid><w:gridCol w:w="..."/></w:tblGrid>column widths from table geometry, and apply header row shading (<w:shd w:val="clear" w:fill="F2F2F2"/>) - Extended
PDFlibFormula.pasLaTeX math layout withnkOverUnderBrace(\overbraceand\underbracehorizontal curly braces with optional superscript/subscript annotations),nkExtArrow(\xrightarrowand\xleftarrowstretchable arrows with optional below/above labels), math font style commands (\mathbbdouble-struck,\mathcal,\mathfrak,\mathbf/\boldsymbol,\mathit,\mathrm,\mathsf,\mathtt), and 1.35× enlarged display integral operators (\int,\iint,\iiint,\oint) - Enhanced HTML table rendering in
PDFlibHTMLRender.pasto track<thead>...</thead>header row groups and automatically repeat them at the top of continuation frames when a table splits across pages, and to compute non-uniform proportional column widths from explicitwidthattributes and cell content lengths - Enhanced the built-in native OCR engine (
PDFlibOCRNative.pas) to decode PNG-compressed page image streams (89 50 4E 47signature) alongside raw RGB/Grayscale buffers and strip long horizontal table rules and underlines prior to connected-component glyph segmentation
Version 3.586.0
Added
- Added ECDSA (
ecdsa-sha256,ecdsa-sha384,ecdsa-sha512over NIST P-256/P-384 and Brainpool P256r1/P384r1/P512r1 in both IEEE P1363 and ASN.1 DER formats),RSA-PSS(rsa-pssandrsa-MGF1), multi-reference XAdESSignedPropertiesverification, and prefixedxmlns:*Exclusive C14N canonicalization inPDFlibEUTSL.pas - Added PEM Base64 decapsulation and RFC 8018
PBES2(PBKDF2-HMAC-SHA1/SHA256/SHA384/SHA512withAES-128/192/256-CBC) encrypted PKCS#8 private key decryption viaPLDecryptPKCS8PrivateKeyacrossEd25519,Ed448,ML-DSA,SM2, andBrainpoolprivate key loaders inPDFlibModernSign.pas
Changed
- Enhanced
GetSignatureModificationVerdictandTPLRevisionMapto resolve modified widget and form field names (/Tand hierarchical/Parentchains), evaluate activeFieldMDPand/Lockconstraints (/All,/Include,/Exclude) per field, and forward document passwords when inspecting encrypted multi-revision PDFs
Version 3.585.0
Added
- Added software compositing for the 4 non-separable PDF blend modes (
Hue,Saturation,Color, andLuminosityper ISO 32000-1 §11.3.5.3) and ExtGState/BMblend-mode array fallback selection in page rendering (RenderPageToStream,RenderPageToFile, andRenderPageToDC) - Added ExtGState
/SMasksoft-mask dictionary rasterization (/S /Alphaand/S /Luminosity,/Gtransparency group Form XObject,/BCbackdrop colour, and/TRtransfer function evaluation) and isolated transparency group (/Group << /S /Transparency /I true >>) dual-backdrop alpha extraction and compositing during page rendering - Added
/Order 3Catmull-Rom cubic spline interpolation for PDF Type 0 sampled functions (ISO 32000-1 §7.10.2) across 1D, 2D, and N-dimensional sample grids - Extended OpenType colour font rendering in
TPDFTrueTypeRasterizer2to traverseCOLRv1 paint graphs (PaintColrLayers,PaintSolid, linear/radial/sweep gradient colour-stop averaging,PaintGlyph,PaintColrGlyph, 2×3 affine/translate/scale/rotate/skew transform matrices, andPaintComposite) and render OpenTypeSVGvector glyph paths
Fixed
- Fixed
TPDFType0Function.RunFunctionmulti-dimensional sample stride calculation (EScale[I] := EScale[I - 1] * FSize[I - 1]) and 32-bit sample integer overflow, and added missing/Domainand/Rangeclamping and negative/zero base guards inTPDFType2FunctionandTPDFType3Function
Version 3.584.0
Added
- Added cross-platform pure-Pascal cryptographic signature verifiers (
PLCertificatePublicKeyInfo,PLVerifyECDSAPurefor NIST P-256/P-384 and Brainpool P256r1/P384r1/P512r1 DER and P1363 signatures,PLVerifyRSAPKCS1Pure, andPLVerifyRSAPSSPureRFC 8017 §9.1.2 EMSA-PSS MGF1 verification) inPDFlibModernSign, enabling dependency-free RSA-PSS and ECDSA verification inVerifySignatureAtandVerifyAllSignaturesacross Windows and non-Windows platforms - Exported
ValidateInvoiceBusinessRulesBuiltIn,ValidateInvoiceBusinessRulesWithTools,ExportPageRTF,ExportDocumentRTF,AddRedactAnnotation, andApplyRedactions(including Unicode and ANSIAvariants) across all Windows DLL, macOS/Linux Dylib, and ActiveX (IPDFlibrary) deployment targets
Fixed
- Fixed
TPDFlibMeasureDict.SetPDU(SetMeasureDictPDU) to attach newly created/PDUunit arrays to the/Measuredictionary when no prior/PDUentry existed - Fixed
TPDFRenderer.FindGraphicsStateto read the font size from index 1 of the ExtGState/Font [fontRef size]array instead of index 0 - Fixed
CheckComplianceto continue full PDF/A compliance auditing whenOptions = 0(complete report mode) even after header/EOF syntax checks fail, return100at completion whenResultList.Count = 0, and enforce/ToUnicodeCMap checks for PDF/A-4 (ISO 19005-4 §6.2.10.3)
Version 3.583.0
Added
- Replaced Windows-only
MSXML2.DOMDocumentCOM dependencies inPDFlibXFAwith a cross-platform pure-Pascal XML DOM parser, serializer, and XPath evaluator (GetXFAFormFieldNames,GetXFAFormFieldValue,SetXFAFormFieldValue,ImportXFADatasetsXML,ExportXFADatasetsXML, andFlattenXFA), and added<exclGroup>radio-button group value resolution plus<draw>caption fallback rendering during XFA flattening - Replaced Windows-only
MSXML2.DOMDocument.6.0,cryptxml.dll, and CryptoAPI certificate context calls inTPDFlibEUTSLTrustSourcewith a cross-platform pure-Pascal ETSI TS 119 612 XML parser, Exclusive XML Canonicalization (http://www.w3.org/2001/10/xml-exc-c14n#), pure-Pascal RSA-SHA256/384/512 XML-DSig signature verification, and pure-Pascal X.509 DER Subject/Issuer/KeyUsage inspection - Extended
TPDFlibOutlineViewerwith interactive node collapse and expand methods (ItemOutlineID,ItemHasChildren,IsOutlineExpanded,SetOutlineExpanded,ToggleOutlineExpanded,ExpandAll, andCollapseAll) and extendedTPDFlibViewerwithCommitHighlightRegionsToAnnotationsto persist viewer highlight regions as standard PDF/Highlightannotations with synthesized appearance streams - Exported
SetSignProcessBrainpoolIdentity,SetSignProcessBrainpoolIdentityFromFile(Unicode and ANSIAvariants), andAddPageMeasureViewport(Unicode and ANSIAvariants) across the Windows DLL, macOS/Linux Dylib, and ActiveX (IPDFlibAX) interfaces, and added English reference documentation entries
Fixed
- Fixed non-Windows CMS signature verification (
VerifySignatureAt/VerifyAllSignatures) to route modern detached CMS signatures (Ed25519,Ed448,ML-DSA-44/65/87,SM2, andBrainpoolP-256r1/P-384r1/P-512r1) through the pure-PascalPLVerifyModernDetachedCMSverifier before falling back to OpenSSLCMS_verify
Version 3.582.0
Added
- Extended
ExportPageRTFandExportDocumentRTFwithPDF_RTF_INCLUDE_IMAGES = 4(included inPDF_RTF_DEFAULT) to embed page images as{\pict\pngblip...}blips, emit horizontal and vertical table cell merge controls (\clmgf,\clmrg,\clvmgf,\clvmrg) and header row markers (\trhdr), preserve inline cell run styling and superscript/subscript shifts (\super/\sub), format list blocks with hanging indentation (\fi-360\li720), and suppress redundant\pagebreaks across continued multi-page tables - Extended
ExportPageDOCXandExportDocumentDOCXto preserve per-span inline run styling (<w:rPr>font family, bold, italic, point size, colour, and superscript/subscript vertical alignment) inside table cells whenPDF_DOCX_PRESERVE_STYLESis enabled, and added verticalRowSpanmerge inference for geometry tables whenPDF_STRUCTURED_INFER_MERGESis enabled - Extended
DrawHTMLText,DrawHTMLTextBox, andDrawHTMLStoryto render<hr>horizontal rules (withsize,width,color, andalignattributes), multi-level nested<ul>and<ol>lists (16-level list stack preserving parent bullet styles and ordered item counters),<td rowspan="...">and<th rowspan="...">vertical cell spanning, and inline<img src="data:image/...;base64,...">Data URI images - Extended
DrawMarkdownTextandDrawMarkdownTextBoxto support multi-level indented nested lists (<ul>/<ol>) and thematic break horizontal rules (<hr>) - Extended
DrawFormula,GetFormulaWidth, andGetFormulaHeightwith matrix and piecewise environments (matrix,pmatrix,bmatrix,Bmatrix,vmatrix,Vmatrix,cases,aligned, andarray), binomial coefficients (\binom,\dbinom,\tbinom), math accents (\hat,\widehat,\bar,\overline,\vec,\overrightarrow,\tilde,\widetilde,\dot,\ddot, and\underline), variable-height\left...\rightdelimiters, and display-style limits stacked directly above and below large operators (\sum,\prod,\coprod,\bigcup,\bigcap,\lim,\max,\min,\sup, and\inf, with explicit\limitsand\nolimitscontrols)
Fixed
- Fixed
TPDFStructuredTextPage.ToRTFandTPDFStructuredTextDocument.ToRTFto free internalFontTableandColorTablestring lists and run cross-page table continuation analysis before serializing document RTF, fixedTPDFStructuredTextPage.CreateExto infer superscript and subscriptVAlignshifts across visual lines, and fixed Markdown list export (ExportPageMarkdown/ExportDocumentMarkdown) to preserve unescaped list markers (-and1.) on separate lines
Version 3.581.0
Added
- Extended
DrawDataMatrixSymbolwithEncoding = 4(ECC 200 Text mode),Encoding = 5(ANSI X12 EDI mode),Encoding = 6(EDIFACT 6-bit mode), andEncoding = 7(GS1 DataMatrix mode with leadingFNC1codeword232and(AI)/#29group separator encoding), plus full round-trip decoding for Text, X12, EDIFACT, and FNC1 modes in the built-in Data Matrix reader - Enabled pure-Pascal PDF417 2D barcode encoding and vector rendering (
DrawPDF417Symbol/DrawPDF417SymbolEx) across all platforms and non-VCL targets by removing Windows/VCL conditional gates andVcl.Graphics.TBitmapdependencies fromPDFlibPDF417 - Extended
DrawSVGandRenderSVGToPainterwith<marker>arrowhead rendering (marker-start,marker-mid,marker-end, andmarkerwithorient="auto",orient="auto-start-reverse", or fixed angles),<image>element embedding (supportingdata:image/...;base64,...URIs and local file paths),clip-rule="evenodd"(W* n),hsl()/hsla()andrgba()/#RGBA/#RRGGBBAAalpha extraction, and the complete 148-entry CSS Color Module Level 3 named colour table - Wired OpenType colour font tables (
COLR/CPALv0 multi-layer vector glyphs andsbix/CBDTembedded PNG bitmap glyphs) into the TrueType glyph rasterizer so coloured glyphs render with per-layer palette colours during page rendering - Extended
TPLPicassosoftware compositing to support all 11 separable PDF blend modes (Multiply,Screen,Overlay,Darken,Lighten,ColorDodge,ColorBurn,HardLight,SoftLight,Difference, andExclusion), wired Cairo surface tiling patterns (ptColorTile) and uncolored tiling pattern (/PaintType 2) tinting into page rendering, and extended Type 2/3 shading dictionary parsing to supportDeviceGray,CalGray,Lab, single-channelICCBased, custom/Domainintervals, and/Backgroundfill colours
Fixed
- Fixed
GetImagePageCountto return1for valid modern single-page image formats (WebP,AVIF,HEIC/HEIF, andJPEG XL) and preserved 8-bit alpha channels as PDF/SMasksoft-mask streams when importing transparent WebP images viaAddImageFromStream/AddImageFromFile
Version 3.580.0
Added
- Added
AddRedactAnnotationandApplyRedactionsfor two-phase ISO 32000-1 §12.5.6.23 redaction workflows, and extendedRedactRegionto recursively transform redaction rectangles into nested Form XObject (/Subtype /Form) coordinate spaces and scrub intersecting text, path, and image instructions inside Form XObjects without deleting the enclosingDoinvocation - Added
AddPageMeasureViewportto author ISO 32000-1 §12.9/Type /Viewportdictionaries with rectilinear/Measure(/Subtype /RL) and/NumberFormatarrays (/X,/D,/A) on the selected page - Enhanced
PLRepairAnnotationAppearance(RepairAnnotationAppearances) to emit/BM /Multiplyand/CA//caopacity/ExtGStateresources forHighlightannotations, vector line-ending arrowheads and caps (/LEstylesOpenArrow,ClosedArrow,ROpenArrow,RClosedArrow,Square,Circle,Diamond,Butt, andSlash) forLineandPolyLineannotations, predefined vector stamp streams (GetStampStream) scaled to the annotation rectangle forStampannotations, and/DAfont size/colour plus/Qalignment and repeated/OverlayTextrendering forFreeTextandRedactannotations
Fixed
- Fixed
TPDFPageTree.AddRedactAnnotationto write the standard ISO 32000-1 Table 192 boolean entry/Repeatinstead of the non-standard name/RepeatOverlay /True - Fixed
FlattenAnnotto synthesize missing/AP /Nappearance streams viaPLRepairAnnotationAppearance(and resolve appearance state subdictionaries via/AS) before flattening instead of deleting appearance-less annotations without rendering, and synchronizedTPDFPageTree.SetContentLayerTextwith the activeTPDFPainterbuffer so subsequent drawing or flattening operations do not overwrite edited content layers
Version 3.579.0
Added
- Extended the PDF/A read validator (
CheckFileCompliance/CheckCompliancePDFA) with rule00077(prohibiting page and Form XObject transparency groups/Group /S /Transparencyas well as image/SMaskand/SMaskInDatain PDF/A-1 per ISO 19005-1 §6.4) and rule00078(validating/OutputIntents/GTS_PDFA1/DestOutputProfileICC stream headers and channel counts, plus scanning page and Form XObject content streams for uncalibratedrg/RGandk/Kdevice colour operators per ISO 19005-1 §6.2.2) - Replaced the Windows-only
MSXML2.DOMDocumentCOM dependency in PDF/UA-2 XMP identification parsing with a pure-Pascal namespace-aware XML parser soCheckFilePDFUACompliance(withTargetPart = 2) runs identically across Windows, Linux, macOS, and Free Pascal - Added PDF/UA structure containment validation (rule
10063, enforcing required parent hierarchy forTR,TH,TD,THead,TBody,TFoot,LI, andLBody) across both PDF/UA-1 and PDF/UA-2, wiredFigure/Alt(10061) and BCP 47/Lang(10062) checks into PDF/UA-1, and wired encryption accessibility permission (10010), content-stream.notdefand untagged Form XObject checks (10040/10041), and media clip/CT//Altchecks (10042/10043) into PDF/UA-2 - Extended the PDF/X read validator (
CheckCompliancePDFX) to auditPDF/X-1acolour-space and content-streamrg/RGoperator restrictions,PDF/X-1aandPDF/X-3transparency prohibitions (/Group /S /Transparency,ExtGState/SMask//BM//CA//ca, and image/SMask//SMaskInData), and recursive font embedding inside Form XObjects; also updatedSetPDFXMode(1)to initialize default painter text, fill, and stroke operators toDeviceCMYK - Extended the built-in Factur-X / ZUGFeRD CII and OASIS UBL 2.1 e-invoice validator (
ValidateInvoiceBusinessRulesBuiltIn/PLCreateBuiltInInvoiceValidationProvider) with EN 16931 header monetary summation cross-checks (BR-CO-13,BR-CO-14,BR-CO-15, andBR-CO-16) and line-level net price multiplication checks (CII.Line.NetAmountandUBL.Line.NetAmount)
Version 3.578.0
Added
- Added
SetSignProcessBrainpoolIdentityandSetSignProcessBrainpoolIdentityFromFile(along withTPDFlibSigner.OpenBrainpool/OpenBrainpoolFromFileandPLValidateBrainpoolIdentity) for pure-Pascal Brainpool ECDSA (brainpoolP256r1,brainpoolP384r1, andbrainpoolP512r1per RFC 5639) detached CMS signing and verification across all platforms - Wired
SignMLDSAintoTPDFlibPKCS11Session(PL_EXTERNAL_SIGNATURE_MLDSA = 4/PDF_EXTERNAL_SIGNATURE_MLDSA = 4) so PKCS#11 v3.2 tokens advertisingCKK_ML_DSAandCKM_ML_DSAcan sign PDF signature fields throughSetSignProcessPKCS11IdentityandSetSignProcessExternalDigestSigner - Extended
EncryptandEncryptFilewithStrength = 6(andEncryptWithCertificateswithStrength = 4) for 128-bit SM4 CBC PDF standard and public-key crypt filter encryption and decryption (/CFM /SM4and/CFM /SM4V1per GB/T 32907), reportingGetEncryptionLevel = 7andSecurityInfo(10) = 17 - Updated
PLBuildModernDetachedCMSand modern signature identity loaders to split concatenated DER X.509 certificate bundles (PLSplitCertificateBundle) and embed all intermediate CA certificates into the CMSSignedData.certificatesset - Updated
ApplyLTVToSignatureandApplyLTAToSignatureto extract embedded RFC 3161 signature time-stamp tokens (id-aa-signatureTimeStampToken, OID1.2.840.113549.1.9.16.2.14) viaPLExtractCMSSignatureTimeStampTokens, collect TSA issuer and revocation material into the DSS/VRI store, and iterate across all candidate AIA, OCSP, and CRL URLs when an earlier endpoint fails
Version 3.577.0
Added
- Extended
SetTimeStampOptionsto accept digest algorithm codes5..8(SHA3-256,SHA3-384,SHA3-512, andSM3) for RFC 3161 time-stamp requests, and added pure-PascalSHA3-256,SHA3-384,SHA3-512, andSM3message-imprint digest verification for both signature time-stamp tokens and PAdES/DocTimeStampsignatures across Windows and non-Windows platforms
Fixed
- Fixed
AuditPageTree,AuditObjectReachability,AuditStreamLengths,AuditFontEmbedding, andAuditColorSpacesso page-tree/Parentobject numbers are verified against their enclosing/Pagesnode,TPDFStreamdictionaries are traversed during reachability walks withVisitedsized by the maximum object number, indirect/Lengthobjects are dereferenced before stream-length comparison, embedded fonts are resolved via/FontDescriptor(and Type 0/DescendantFonts)/FontFile//FontFile2//FontFile3entries without double-counting descendant CIDFont dictionaries, and page/stream/ColorSpaceresources are dereferenced and classified forCalGray,CalRGB,Lab, andPattern - Fixed
TPLPattern.ReadTilingDictso omitting/YStepfalls back to the pattern bounding-box height intoFYStepinstead of overwritingFXStep
Version 3.576.1
Fixed
- Fixed inline
/Span << /ActualText (...) >> BDCparsing during text extraction (SetTextExtractionOptions(20, 1)) so literal strings containing escaped parentheses (\(,\)), balanced nested parentheses,>>sequences, or escaped backslashes (\\) are no longer truncated at the first), and nestedBMC/BDC..EMCblocks inside an active/ActualTextspan no longer close the outer replacement early
Version 3.576.0
Added
- Extended the PDF/UA-2 read validator (
CheckFilePDFUACompliance/RunPDFUAValidationPipelineTaskwithTargetPart = 2) to audit font embedding,/CIDToGIDMap,/ToUnicodeCMap coverage, TrueType encoding/cmap/width rules, page annotation and form widget structure rules,FileSpec/Fand/UFkeys, optional-content/Nameand/ASconstraints, BCP 47/Langsyntax on the document catalog and structure elements (rule10062), and non-empty/Altor/ActualTextonFigurestructure elements (rule10061), updatingGetPDFUAReadValidationCoverageJSON(2) - Extended the PDF/A read validator (
CheckCompliancePDFA/CheckFileCompliance) with rule00074(/AcroForm /XFAprohibition), rule00075(rejecting non-PDF embedded file streams in basePDF/A-4when neitherPDF/A-4fnorPDF/A-4eis active), and rule00076(permitting3DandRichMediaannotations inPDF/A-4ewhile verifying required/3DDor/RichMediaContentpayloads), updatingGetPDFAReadValidationCoverageJSON
Version 3.575.1
Added
- Exposed the
v3.569.0–v3.574.0virtual-file, Type 3 stencil glyph, and PDF/E-1 authoring APIs across the ActiveX deployment surface (OCX/PDFlibAX.ridl,OCX/PDFlibAX_TLB.pas,OCX/PDFlibActiveX.pas, andOCX/PDFlibAX.tlbatdispid 73011513–73011519):GetVirtualFileToString,SetVirtualFileWriteMode,GetVirtualFileWriteMode,GlyphImageMask,SetPDFEMode,GetPDFEMode, andGetPDFEDiagnostics
Version 3.575.0
Added
DrawDataMatrixSymbolandTPDFDataMatrixnow support explicit C40 encoding (Encoding = 2, covering the C40 Basic Set, Shift 1/2/3 sets, and Upper Shift for full byte range) and Base 256 binary encoding (Encoding = 3, with 1- or 2-byte length indicators and the ISO/IEC 16022 255-state randomising algorithm), as well asSymbolSize = 30(144x144)DrawBarcode(Code 128,Barcode = 3) now accepts the ASCII Group Separator (#29) in addition to[FNC1]and explicitly emits Code 102 (FNC1) in both Subset B and Subset C- Added PKCS#7 padding and arbitrary-length SM4 block-cipher helpers in
PDFlibSM4:SM4PadPKCS7,SM4TryUnpadPKCS7,SM4UnpadPKCS7,SM4EncryptECBPKCS7,SM4DecryptECBPKCS7,SM4EncryptCBCPKCS7, andSM4DecryptCBCPKCS7
Fixed
- Bidirectional RTL text extraction (
SetTextExtractionOptions(21, 1)) and the portable OpenType RTL shaper now mirror symmetric bracket and delimiter code points per UAX #9 Rule L4, andTPDFTextFunnel.UpdateSListseals pending Bidi reordering across allGetPageTextextraction modes without duplicating leading neutral characters
Version 3.574.0
Added
- The PDF/A read validator (
CheckCompliancePDFA/CheckFileCompliance) now audits PDF/A-2, PDF/A-3, and PDF/A-4 embedded file specifications and optional-content properties (rules00069–00073:/AFassociation,/AFRelationshippresence,/EFstream/SubtypeMIME type,/OCProperties /Ddefault configuration dictionary, and non-empty/Nameon every optional-content configuration dictionary), andGetPDFAReadValidationCoverageJSONreports the expanded coverage - Added
GetPDFEMode(and DLL/Dylib exportsDLSetPDFEMode,DLGetPDFEMode,DLGetPDFEDiagnostics/DLGetPDFEDiagnosticsAat DLL indices 1742-1745) and extendedSetPDFEMode(0)to clear active PDF/E-1 authoring mode
Changed
- PDF/A-3 and PDF/A-4 writer save preparation now automatically links embedded file specifications into the document catalog
/AFarray when not already associated, andNewOptionalContentGrouppopulates a default/Name (Default)on/OCProperties /D
Version 3.573.0
Added
- The built-in OCR engine (
ConfigureNativeOCR) now bootstraps sans-serif (Helvetica-Bold), serif (Times-Bold), and monospace (Courier-Bold) glyph template families and selects the best-matching font family per line, improving recognition of serif and fixed-width printed text PLNativeOCRRecognizeBMPnow performs automatic page deskew before line segmentation by maximising horizontal ink-projection variance across candidate skew angles, andOCRPage/OCRDocumentreuse the initial BMP page render directly when native OCR is active instead of rendering each page twice
Fixed
- Fixed Otsu binarisation threshold selection on pure two-tone (
0and255) rasters so thin horizontal and vertical glyphs in serif and monospace fonts are no longer dropped during template extraction
Version 3.572.0
Added
- Added
GlyphImageMask(and DLL exportsDLGlyphImageMask/DLGlyphImageMaskAat indices 1740-1741) to embed 1-bit stencil image masks inside client-built Type 3 glyphs from hex, bit-string, or packed byte payloads BeginGlyph/EndGlyphandAddType3Glyphnow automatically infer/ToUnicodeCMap entries fromuniXXXXglyph names, single-character names, or printable character codes whenUnicodeTextis omitted, and switch the glyph header tod0per ISO 32000-1 §9.6.5 wheneverGlyphSetColoris used
Version 3.571.0
Added
DrawSVGandDrawSVGFromFilenow render multi-stoplinearGradientandradialGradientpaint servers as native clipped vector gradients withobjectBoundingBoxanduserSpaceOnUseunits,gradientTransform,spreadMethod, and template inheritance viahref/xlink:href- SVG
<text>and nested<tspan>elements now collect character runs in document order, inheritfont-family,font-size,font-weight,font-style,text-anchor, andfillcolour from CSS<style>rules and ancestor groups, support per-spanx/y/dx/dypositioning, and fall back to embedded document fonts when PDF/A or PDF/X compliance is enabled
Version 3.570.0
Added
- Template block personalization now discovers and fills standard PDFlib PPS page blocks stored under
/PieceInfo /PDFlib /Blocks(or/PieceInfo /PDFlib /Private /Blocks) dictionaries and arrays in addition toPDFlibBlock:*annotations, exposing both top-level and/Customentries throughGetBlockProperty FillTextBlocknow automatically applies block styling properties (fontname/font,fontsize/size,fillcolor/textcolor/colorin hex, RGB, CMYK, greyscale or named form,alignment/align/position, andfitmethod) and restores the caller painter state afterwards
Version 3.569.0
Added
- Writable in-memory virtual files: file-creating and file-updating entry points (
SaveToFile,ExtractFilePages,EncryptFile,DecryptFile,RenderPageToFile,ConvertToQDFand related*ToFileoperations) now write directly into the in-memory virtual file registry when targeting amem://URI, a pre-registered virtual file name, or any file name whileSetVirtualFileWriteMode(1)is active - Added
GetVirtualFileToString,GetVirtualFileToBytes,GetVirtualFileToStream,SetVirtualFileWriteModeandGetVirtualFileWriteModeto retrieve written virtual file payloads and configure the process-wide write interception policy
Version 3.568.0
Added
- The built-in electronic invoice validator (
PLCreateBuiltInInvoiceValidationProviderandValidateInvoiceBusinessRulesBuiltIn) now validates OASIS UBL 2.1InvoiceandCreditNotedocuments in addition to UN/CEFACT CrossIndustryInvoice (Factur-X / ZUGFeRD), checking the root namespace,cbc:CustomizationID, document ID, issue date, numeric type code, uppercase 3-letter currency code, supplier and customer registration/party names, line items andLineExtensionAmountsummation - A pure-Pascal namespace-aware XML DOM parser with DTD/entity prohibition replaces the Windows MSXML 6 COM dependency in
PDFlibInvoiceValidation, making the built-in validator and SVRL report parser (PLParseInvoiceSVRL) portable across all supported compilers and platforms
Fixed
ValidateInvoiceBusinessRulesandValidateInvoiceBusinessRulesBuiltInnow auto-detect the Factur-X invoice attachment or a single embedded.xmlfile whenEmbeddedFileNameis empty, and populate default rule metadata so built-in validation completes without requiring external rule-version parameters
Version 3.567.1
Added
- The DLL, ActiveX control and Dylib targets now export the 37 APIs added across v3.561.0 to v3.567.0:
CompressPageAsMRC,SuspendPage/ResumePage/IsPageSuspended/SuspendedPageCount, the virtual file registry (RegisterVirtualFile,DeleteVirtualFile,VirtualFileExists,GetVirtualFileSize,GetVirtualFileCount,DeleteAllVirtualFiles), typed object-path queries (GetObjectPathNumber,GetObjectPathStream,GetObjectPathStreamLength), the client font builder (BeginFont,EndFont,BeginGlyph,EndGlyphand the eightGlyph*operators), the template block suite (AddBlock,GetBlockCount,GetBlockName,GetBlockType,GetBlockProperty,GetBlockRect,FillTextBlock,FillImageBlock,FillPDFBlock), andConfigureNativeOCR/ClearNativeOCR - The DLL adds 51 exports at indices 1685-1735 (including ANSI
*Avariants for string parameters), the ActiveX type library adds dispids 73011476-73011512 onIPDFlibraryandIPDFlibraryDisp, and the reference pages document the ActiveX and DLL signatures
Version 3.567.0
Added
- Built-in OCR recognition:
ConfigureNativeOCRenables a pure-Pascal template-matching engine forOCRPageandOCRDocument, so clean machine-printed scans become searchable without any external tool; the template set is bootstrapped once per process from the library Helvetica rendering pipeline andClearNativeOCRdetaches the engine again - The engine binarises page rasters with an Otsu threshold, segments them into lines, glyphs and words by projection profiles, and recognises each glyph by normalised template matching with per-word confidence reported in the OCR result JSON
Version 3.566.0
Added
- Template block personalization:
AddBlockauthors a text, image or PDF block placeholder,GetBlockCount,GetBlockName,GetBlockType,GetBlockPropertyandGetBlockRectenumerate and inspect blocks on any page, andFillTextBlock,FillImageBlockandFillPDFBlockpersonalize them with fitted text, aspect-preserving images or imported pages - Blocks interoperate with existing block-enabled PDF templates through the PDFlibBlock:Text, PDFlibBlock:Image and PDFlibBlock:PDF annotation conventions; fill options can delete the placeholder after filling and stretch instead of preserving the aspect ratio
Version 3.565.0
Added
- Client font construction:
BeginFontopens a Type 3 font,BeginGlyph/EndGlyphcontribute glyphs from structured path operators (GlyphMoveTo,GlyphLineTo,GlyphCurveTo,GlyphClosePath,GlyphFill,GlyphStroke, plusGlyphSetColorandGlyphLineWidth), andEndFontreturns the font id forSelectFont
Version 3.564.0
Added
GetObjectPathNumberreturns the numeric leaf of an object path such aspages[0]/MediaBox[2]as a double with a Found flagGetObjectPathStreamandGetObjectPathStreamLengthreturn the decoded bytes and decoded byte count of a stream selected by an object path, with a caller-supplied byte cap
Changed
- Object path lookups inside page dictionaries now inherit attributes such as MediaBox, CropBox or Resources from the /Parent pages nodes, so
GetObjectByPathresolves inherited page attributes as well
Version 3.563.0
Added
- In-memory virtual files:
RegisterVirtualFile,RegisterVirtualFileFromBytesandRegisterVirtualFileFromStreamregister a buffer under a name, and every*FromFileentry point then serves that name from memory, so documents, images, fonts, media and signature material can be fed without touching the file system DeleteVirtualFile,DeleteAllVirtualFiles,VirtualFileExists,GetVirtualFileSizeandGetVirtualFileCountmanage the registry; names match case-insensitively, re-registering replaces the data, and open streams keep working after their registry entry is removed
Version 3.562.0
Added
SuspendPageandResumePagemark a page as suspended so document-level work such as templates, fonts, resources and other pages can interleave with drawing; drawing on a suspended page raises an exception,SelectPagerejects the page, and saving fails until every suspended page is resumedIsPageSuspendedandSuspendedPageCountquery the suspension state, and page inserts and deletes keep the flags aligned with the shifted page numbering
Version 3.561.0
Added
CompressPageAsMRCrebuilds a scanned page as Mixed Raster Content: a full-resolution CCITT G4 stencil mask over a downsampled JPEG background, keeping text edges crisp while the halftone background drops to a fraction of its flat-JPEG size
Version 3.560.2
Added
- The ActiveX control gains the modern signature identities at dispids 73011470-73011475:
SetSignProcessEd448Identityand its file-loading variant,SetSignProcessMLDSAIdentity,SetSignProcessSM2Identitywith its file-loading variant, andValidateInvoiceBusinessRulesBuiltIn; the type library regenerates from the updated RIDL so early- and late-bound COM clients see the new members
Version 3.560.1
Added
AddMovieAnnotationFromFileembeds a movie file and adds a/Subtype /Movieannotation with an/S /Movieactivation action (play, stop, pause or resume), closing the round-trip gap where theakMovieaction reader could parse actions the library could not author
Version 3.560.0
Added
ValidateInvoiceBusinessRulesBuiltInchecks the embedded Factur-X invoice XML with a built-in CII validator and no external tooling: the Schema stage verifies XML well-formedness and the CrossIndustryInvoice root while the Schematron stage runs a profile-tiered D16B rule subset covering guideline identification, the document header, currency, trade parties, line items and the line-total sum
Version 3.559.9
Added
SetRenderTargetICCaccepts a second argument enabling black point compensation for the target transform: every ICC lookup LUT is re-scaled per channel so the uncompensated device black lands exactly on the destination black while white stays pinned, keeping shadow separation when soft-proofing against print profiles
Version 3.559.8
Added
- Free Pascal and Lazarus builds now decode JPEG 2000 images in loaded PDFs through the statically linked OpenJPEG objects; the compile-time stub remains only for the macOS, FireMonkey and C++Builder targets, and the JPEG 2000 encoder entry documents the FPC Windows capability
Version 3.559.7
Added
DrawBarcodetype 10 draws Codabar (BS EN 798) symbols: explicit A-D start and stop letters bracket a body of digits and- $ : / . +, rendered with the rationalized 3-module wide element table cross-checked character by character against three independent reference implementations
Version 3.559.6
Added
SetSignProcessSM2Identityand its file-loading variant attach an SM2 (GB/T 32918) certificate and private scalar to a signature process; detached CMS signing then pairs the SM2-with-SM3 algorithm identifier with the SM3 digest, ZA from the default distinguishing identifier, CSPRNG nonces and DER(r, s)signatures, and the CMS verifier accepts and checks them- Digest code 8 (SM3) is now accepted by
SetSignProcessDigestAlgorithmfor signer processes, completing the SM3 timestamp chain added in v3.559.3
Version 3.559.5
Added
- SM2 elliptic curve signature primitive (GB/T 32918) as a pure Pascal unit: 256-bit prime-field arithmetic, Jacobian point operations, the SM3-based ZA derivation, and deterministic signature generation and verification on both the recommended sm2p256v1 curve and the specification's published example curve, whose fixed key, ZA, digest and signature all verify byte for byte
Version 3.559.4
Added
- SM4 block cipher support (GB/T 32907-2016) as a pure Pascal primitive in the new
PDFlibSM4unit: 32-round key schedule, single-block encrypt and decrypt, ECB and CBC wrappers; verified against the standard single-block vector, the published first round key and the one-million-iteration vector
Version 3.559.3
Added
- SM3 message digest support (GB/T 32905-2016) as a pure Pascal primitive with streaming and signature byte-range helpers, verified against the standard test vectors; digest code 8 selects SM3 for PAdES signature timestamp hashing and document timestamp token requests, and the TSA request carries the SM3 object identifier
1.2.156.101.1.401
Fixed
- Selecting a SHA-3 digest for a PAdES signature timestamp process now hashes the signature value with the chosen SHA-3 variant instead of silently falling back to SHA-256 while advertising the SHA-3 object identifier
Version 3.559.2
Added
SetPDFVTModemodes 4 to 6 author the classic ISO 16612-2:2010 editions: PDF/VT-1 over the PDF/X-4 base and PDF/VT-2 / PDF/VT-2s over the PDF/X-5pg base, with the matchingGTS_PDFVTVersionandrevidentification; the PDF/VT preflight audit accepts all four editions and verifies each edition against its required PDF/X base
Fixed
- Saving a document part hierarchy no longer fails under a PDF 1.6 conformance base: the catalog
/DPartRootkey is now recognised as a PDF 1.4 structure (ISO 16612-2:2010) instead of requiring PDF 2.0 - Two pre-existing test regressions are resolved: PDF/X mode reselection after PDF/X-1a now checks a genuinely out-of-range mode, and the invalid HTML export options probe uses an option bit that is still unassigned
Version 3.559.1
Added
TPDFlibAnnotationPanellists the current page's annotations (type with title or trimmed contents) inside the viewer, andTPDFlibLayerPanellists the optional-content groups with a visibility marker that toggles the group state and refreshes the page; both register under the losLab PDF palette
Fixed
- The 8-bit grayscale renderer now builds a 256-level gray logical palette under the classic VCL graphics path as well, and the RTL extraction reorder compiles cleanly under Delphi (anonymous dynamic array fields assign through a same-typed record)
Version 3.559.0
Added
ExportPageRTFandExportDocumentRTFextract pages or whole documents into self-contained RTF: detected headings become scaled bold headings, span-level fonts, sizes and colours ride a shared font and colour table, detected tables become bordered table rows, pages break apart, and non-ASCII text uses RTF unicode escapes; DLL exports included
Version 3.558.2
Added
DrawSVGrenderstextelements: the font-family, font-weight and font-style attributes resolve onto the Standard 14 faces (serif to Times, monospace to Courier, otherwise Helvetica, in all four variants each), with font-size, text-anchor and the fill colour honoured; text-bearing logos and icons no longer lose their labels
Version 3.558.1
Added
- Extraction option 21 (both
SetTextExtractionOptionsand the DA variant) reverses right-to-left runs into logical order: Hebrew and Arabic text and their presentation forms come out reading naturally instead of visually, embedded Latin and digit atoms keep their internal order, and the per-character geometry, offsets and flags arrays follow the reordering
Version 3.558.0
Added
ExportDocumentHTMLacceptsPDF_HTML_INCLUDE_TOC(8) to prepend a table-of-contents navigation built from the outline tree: indented entries link to the per-page anchors the export already emits, with titles HTML-escaped
Version 3.557.9
Added
- Automatic hyphenation covers six more languages: Danish, Swedish, Finnish, Polish, Czech and Hungarian, each with its vowel set, prefix and suffix break rules and language-specific consonant onset clusters
Version 3.557.8
Added
GetWCAGMappingJSONcross-references the PDF/UA audit rules to the WCAG 2.1 success criteria they evidence (Section 508 incorporates WCAG AA) and names the criteria a document-level audit cannot decide, so accessibility statements can cite what the automated check actually covers
Version 3.557.7
Added
DrawBarcoderenders Code93 (type 8, the 47-character set 0-9 A-Z hyphen period space dollar slash plus percent with both C and K check characters) and UPC-E (type 9, six zero-suppressed digits whose parity pattern and implied check digit follow the GS1 zero-suppression expansion)
Version 3.557.6
Added
- CID-keyed fonts without a ToUnicode CMap now recover the real Unicode through the embedded TrueType cmap read backwards: the CID (or the CIDToGID-mapped glyph index) resolves through a first-wins GID to code point table built lazily from FontFile2, instead of the raw CID posing as Unicode
AddActionNextTransitionappends a PDF 1.5 page-transition action with the twelve standard styles (Split through Fade) and a clamped duration; DLL export included
Version 3.557.5
Added
SetSignProcessMLDSAIdentityattaches a post-quantum ML-DSA-44/65/87 certificate plus seed to a signing process (ISO/TS 32005); the parameter set follows the certificate, the seed is re-derived for validation, and the CMS SignerInfo carries the id-ML-DSA signature algorithm while the SubFilter stays on the standard CMS profiles; DLL export included
Version 3.557.4
Added
SetPDFXModeaccepts three more ISO 15930 editions: 7 selects PDF/X-4p (external process-colour ICC profile on the PDF 1.6 base), 8 selects PDF/X-5g (OPI partial exchange) and 9 selects PDF/X-5pg; the compliance checker recognises all three editions and enforces their embedded-versus-external profile rules
Version 3.557.3
Added
GetPDFAReadValidationCoverageJSONpublishes the read-audit coverage statement for the PDF/A compliance checker: checked regions, unverified regions and limits per conformance level, mirroring the PDF/UA coverage disclosure so a passing audit can be reported as a self-check rather than a certification claim
Version 3.557.2
Added
DrawBarcoderenders EAN-8 (type 6) and UPC-A (type 7) symbols built from the same guard and parity patterns as EAN-13, with the GS1 mod-10 check digit validated before drawing
Version 3.557.1
Added
CreateSelfSignedCertificateExgenerates self-signed ECDSA certificates through the CNG Microsoft Software Key Storage Provider, mapping KeyBits 256/384/521 to the P-256/P-384/P-521 curves and signing with ecdsa-with-SHA256; DLL exports includedRenderPageToGrayscaleFilerenders a page to 8-bit grayscale using Rec. 601 luma weights; Windows writes an identity gray-ramp palette BMP, other platforms a 24-bit R=G=B BMP
Version 3.557.0
Added
- Ed448 signing identities:
SetSignProcessEd448IdentityandSetSignProcessEd448IdentityFromFileattach an id-Ed448 certificate plus 57-byte seed or unencrypted PKCS #8 key to a signing process, with matching DLL exports - One-call PAdES B-LTA promotion:
ApplyPAdESLongTermArchiveValidationandApplyPAdESLongTermArchiveValidationToStreamrun the B-LT validation-material upgrade and then append a/DocTimeStampsignature whose RFC 3161 token is fetched from the configured TSA
Fixed
SanitizeDocumentwithSANITIZE_ALLnow also removes the XMP metadata stream and /PieceInfo dictionaries; previously the XMP packet strip was left out of the combined mask- TSA timestamp requests for SHA3-384 and SHA3-512 digests were rejected with a length mismatch because the SHA-3 family fell back to the 32-byte digest length; the SHA-3 codes 5..7 now report their true 32/48/64-byte sizes
Version 3.556.0
Added
- Free Pascal 3.2.2 now builds the Windows x86_64 library, FPCUnit suite, and Lazarus demos alongside FPC 3.3.1, with source changes replacing Windows unit imports and compiler directives that FPC 3.2.2 lacks; winarm64 keeps requiring FPC 3.3.1
- The Lazarus build scripts accept an fpc=<version> argument, for example fpc=3.2.2, to select a versioned side-by-side FPC installation such as an fpcupdeluxe layout
Version 3.555.0
Added
- Windows 11 on ARM supports native Free Pascal ARM64 and Delphi ARM64EC source builds, with separate library and DLL build outputs
Changed
- Windows ARM uses system AES CBC/GCM and JPEG providers, portable compression, and an architecture-matched OpenJPEG shared library for JPEG 2000
- The Windows ARM DLL exposes named C ABI exports and positive opaque instance handles without truncating 64-bit pointers
Fixed
- Delphi ARM64EC XMP uses namespace-aware MSXML interfaces with bounded XML parsing to avoid failures in late-bound OLE calls
Version 3.554.0
Added
- Native headless support extends to Linux ARM64 and macOS x64, with architecture-matched FPC builds and Delphi Intel macOS dylibs
- The native verification tools support Linux and macOS on both x64 and ARM64
Fixed
- Intel macOS selects the correct native OpenSSL, Cairo, Fontconfig, and OpenJPEG provider locations instead of Apple silicon paths
- Delphi Intel macOS linking resolves absolute system-library and framework inputs against the selected Windows SDK cache when using LLVM LLD
Version 3.553.1
Added
- Delphi macOS ARM64 supports native XMP metadata editing and round trips, including custom properties, standards identifiers, and preservation of unrelated namespaces
Fixed
- Native Delphi macOS PFX signing and RFC 3161 time stamps select the macOS OpenSSL provider; RSA and EC PDF signatures, explicit trust chains, signature time stamps, and document time stamps are verified on ARM64
- Native XMP load/save cycles preserve a single packet envelope instead of accumulating processing instructions
Version 3.553.0
Added
- Delphi can now build the macOS ARM64 headless dynamic library, with the same 880 C entry points as the native Free Pascal build
- The Delphi macOS backend uses native fonts, Cairo rendering, OpenSSL encryption and digests, system zlib and libcurl, OpenJPEG, and ImageIO JPEG encoding and decoding
Fixed
- macOS file access, resource lookup, fixed-width binary structures, and native codec bindings now use platform-correct declarations
- Background rendering uses a portable pause event on macOS
- Delphi macOS correctly decrypts encrypted PDF strings and object streams without releasing their input buffers during decoding
Version 3.552.2
Fixed
- Restored older Delphi compiler compatibility for invoice validation and OCR providers, including Win32 and Win64 trial library builds
Version 3.552.1
Fixed
- macOS dynamic-library buffers now expose their actual data, preserve embedded zero bytes and report successful releases correctly
- Dynamic-library instance handles remain valid on 64-bit targets without truncating object addresses or reusing released handles
- Library unloading releases outstanding instances and buffers
Version 3.552.0
Added
- Native Free Pascal headless PDF generation, loading, text workflows and Cairo bitmap rendering on Linux x86_64 and macOS arm64, with system fonts and native PNG, JPEG and JPEG 2000 providers
- Native OpenSSL encryption, digests, PKCS12 signing and CMS verification, with explicit certificate trust anchors and checked verification times
- Built-in libcurl HTTP range access and RFC 3161 time-stamp workflows on native Free Pascal targets, including signature time-stamp attributes and document time-stamp verification
- Native XMP metadata parsing and writing preserve namespace-based properties and reject DTDs and oversized or deeply nested XML before DOM construction
Fixed
- Native banded bitmap rendering initializes the page transform and preserves Cairo antialiasing at band boundaries
- Shared time-stamp, validation and tagging declarations no longer require an optional PDFium build
Version 3.551.0
Added
- Exact Unicode content replacement preserves surrounding characters, existing TJ spacing and following text anchors, supports deletion and verified replacement fonts, and reports unsupported mappings before replacing selected page text
- Structured extraction follows tagged reading order, resolves semantic roles and namespaces, detects columns and page furniture, and retains empty, merged and cross-page table cells in JSON, CSV, Markdown and DOCX exports
- Optional Tesseract OCR adapters support hOCR and TSV results, orientation confidence and baselines, with explicit limits and per-stage diagnostics
- OCR text layers can skip existing text or replace only layers previously owned by the library, preserving page pixels and shared content
- New Delphi, DLL and ActiveX controls expose structured analysis options, OCR configuration and exact-replacement diagnostics
Changed
- Structured JSON uses schema version 2 with stable semantic node identifiers, reading-order sources, table spans and inference confidence
- Unicode replacement rejects incomplete mappings, partial glyph clusters and unsupported sources without guessing font bytes
Fixed
- TJ numeric spacing now applies horizontal scaling once in rendering and text geometry
- Font measurement reselects the actual resource when collections are shared and reuses direct-font analysis within each resource scope
- Content fingerprints preserve their hash values with range and overflow checks enabled
Version 3.550.0
Changed
- SVG export now preserves page paint order, nested Form content, exact clipping paths and transformed stroke geometry
Added
- Bounded native raster fallback handles unsupported paint operations when the export settings permit a backdrop snapshot
- GetLastSVGExportDiagnostics reports omitted pixels, approximations and raster fallback, including visible annotation appearances outside the page-content export
Version 3.549.0
Added
- Versioned invoice XML schema and Schematron validation accepts optional providers and returns stage completion, rule identifiers, field paths, severity, and engine diagnostics
- Embedded invoice business validation reads the selected attachment with bounded decoding and rejects missing or ambiguous filenames
- Delphi, DLL, and ActiveX can run xmllint and SaxonJ validation with explicit rule files, time limits, and output limits
Version 3.548.0
Added
- PDF/UA-2 reader checks validate identification, PDF version, namespace references, role mappings, document roots, and structure parents through explicit or automatic profile selection
- Delphi, DLL, and ActiveX APIs select a PDF/UA target within a reusable validation pipeline and expose checked, unverified, and bounded validation coverage
Changed
- Validation and preflight reports identify PDF/UA-2 independently from PDF/UA-1 and disclose that passing implemented checks does not provide full accessibility certification
Version 3.547.0
Added
- Rendered-page visual comparison with channel tolerance, ignored regions, changed areas, pixel counts, difference masks, and overlays
- Document visual comparison aligns identical page images around inserted and removed pages and reports changed or resized page pairs
- File visual comparison through Delphi, DLL, and ActiveX returns a structured JSON report
Version 3.546.0
Added
- Arlington validation coverage reports distinguish complete passes, known failures, incomplete rule support, and operation errors through Delphi, DLL, and ActiveX APIs
Fixed
- Unsupported model expressions now produce explicit diagnostics instead of silently contributing to a successful validation result
Version 3.545.0
Added
- The C# and VB.NET DLL WorkflowWorkbench examples demonstrate multipage report generation, text extraction, page splitting and merging, binary memory transfers, and explicit native resource ownership
- DocumentInspectionWorkbench now provides page inventories and configurable diagnostic severity gates across Delphi, C++Builder, and Lazarus, with generated inputs for a self-contained first run
Changed
- The C++ DLL LinkDemo now creates a complete navigation document with page links and outlines, accepts explicit DLL and output paths, verifies the saved document, and reports failures through process exit codes
- WorkflowGallery verifies its saved document and HTTP response body through round-trip checks and publishes a verification report
- The DocumentLab quick tour includes document inspection, and the native portfolios and package introduction link to a dedicated DLL workflow catalog
Fixed
- Delphi document inspection initializes per-file counters before analysis, including reports for inputs that cannot be loaded; Delphi and C++Builder write locale-independent JSON numbers
- The C++ DLL diagnostic example releases native instances before unloading the library, including its success path
Version 3.544.0
Added
- Nine native domain labs provide scenario selection, guided quick tours, per-scenario logs, and offline HTML experiences that open automatically when the lab is started without arguments
Changed
- The Delphi, C++Builder, and Lazarus example portfolios now focus on Showcase, HelloWorld, and nine labs, with Delphi retaining its interactive Reader
- Specialist demonstrations and focused tutorials are integrated as local scenario modules inside each lab, preserving their original operations without separate example projects or a common demo source directory
- Lab tours execute their own scenarios with isolated output folders and timeouts, so they no longer depend on separately built sibling example executables
- Scenario notes are linked from the domain guides, and optional Delphi report framework integrations are grouped under ContentLab
- Lazarus scan codec matrices identify encoding paths that cannot complete the generated fixture as skipped, and only publish JBIG2 measurements when the requested external encoder is available
Fixed
- Redaction scenarios now generate PDF 1.7 documents so content removal passes the required version checks
- Page-capture scenarios preserve a temporary document page while capturing the last content page, avoiding failed captures of single-page documents
- The C++Builder barcode gallery now accepts successful nonzero document and page handles instead of rejecting handles whose value is greater than one
- The Lazarus navigation scenario now reports failed PDF writes before publishing success reports, including its companion remote-target document
Version 3.543.0
Changed
- The native demo portfolio now foregrounds flagship tours and feature workbenches, with focused API tutorials collected in each platform's Miscellaneous folder
Removed
- Removed the C++Builder Reader metadata adaptation and prerequisites-only ReportBridges executable, the duplicate Lazarus TextExtract example, and the redundant Delphi AddWebLinkConsole entry; use the actual viewer, report bridge, inspection, extraction, and AddWebLink examples instead
Fixed
- The C++Builder LoggerDemo now closes its log writer before reading the completed session log and prints it as UTF-8, avoiding file-sharing errors and long-log console crashes after PDF creation
Version 3.542.0
Changed
- Showcase and AdvancedWorkflowMatrix now contain their implementation units in each Delphi, C++Builder, and Lazarus example folder, so copying a project no longer requires a common demo-unit directory
- The Showcase source guide points to its local builder while retaining the nine-page document, editable forms, switchable layers, and offline exports
Fixed
- The C++Builder workflow suite writes the complete workflow list and console report before exiting
Version 3.541.0
Added
- The nine-page Showcase includes an editable project brief and a layered floor plan, with saved form values and optional design notes
- C++Builder now includes the same flagship Showcase as Delphi and Lazarus
- Console Showcase runs create an offline experience page with full-page PNG previews, the interactive PDF, and UTF-8 text exports
Changed
- The Delphi Showcase opens with a guided preview, direct form editing, a design-note visibility control, edited-PDF saving, and image and text export actions
- All three native Showcase entries share their document builder and offline export implementation
Fixed
- Showcase table sections, annotation samples, and barcode symbols fit their intended areas, and page labels remain readable
- The Delphi Showcase writes to a user-owned output directory and handles preview, export, and save failures explicitly
Version 3.540.0
Changed
- AdvancedWorkflowMatrix shares one workflow launcher across Delphi, C++Builder, and Lazarus, runs the specialist demos with isolated outputs, supports selection and timeouts, and records missing binaries and child failures in CSV and HTML reports
- Lazarus TextExtract and ExtractText share a single read-only extraction session, accept passwords, write UTF-8 output, and retain the minimal console entry and the extraction-mode comparison
- C# ActiveX HelloWorld is a focused create-and-save starter with a headless output option, explicit COM cleanup, and clear deployment diagnostics
Fixed
- C# Table2PDF avoids an extra blank page, uses returned font IDs, and locates the DLL for its process architecture
- The Visual Basic DLL starter includes the native binding it needs to build and handles architecture-specific DLL loading
- The C++Builder report-engine guide reports missing integration and no longer presents a placeholder PDF as a real bridge result
- C++Builder Reader fails explicitly for an unreadable supplied PDF rather than substituting its generated sample
Version 3.539.53
Fixed
- The TextPaging demo stops with an error when required fonts cannot be loaded or its page limit leaves text unrendered, preventing a partial PDF from being saved and opened as a successful result
Version 3.539.52
Fixed
- The ActionNavigationMatrix console demo checks main and companion PDF writes and FDF export before reporting success, and stops with a nonzero exit code when an output operation fails
Version 3.539.51
Fixed
- Name-tree and number-tree lookups ignore reversed limits instead of hiding valid child entries in malformed PDFs
Version 3.539.50
Fixed
- Integer sorting handles the full signed range without overflowing its comparison
- Empty sorted integer and file-position lists return zero for successor queries; sparse integer membership avoids allocating every intervening range while retaining insertion order and duplicate entries
Version 3.539.49
Fixed
- PNG import rejects truncated chunks, malformed headers and palettes, unsupported interlace values, and missing or malformed end chunks before treating the image as usable
- Reloading a PNG clears previous image data and metadata while retaining reader options; metadata-only reads skip image payloads without allocating their buffers
Version 3.539.48
Fixed
- File streams honor the requested length when resized, and long file names expand to complete absolute paths
- Stream insertion preserves 64-bit lengths and cursors, rejects insertion points outside the stream before modifying data, and reports incomplete reads or writes
- Page-number file names append the number before the file extension, preserving directory names and handling names without an extension
Version 3.539.47
Fixed
- HTML text rendering and continuation preserve escaped angle brackets and literal entity spellings instead of interpreting decoded text a second time
- Markdown code spans and blocks preserve ampersands and entity spellings in the generated HTML and rendered PDF; dataset exports preserve the same literal text in cell values
Version 3.539.46
Fixed
- The Delphi ExtractImage demo skips images that cannot be selected, counts successful writes, and reports incomplete extraction instead of showing an unconditional success message
- ExtractImage creates the output directory and removes only the input file extension when naming extracted images; ExtractAnnotAttach stops when loading returns any result other than success
Version 3.539.45
Fixed
- Name-tree and number-tree queries skip cyclic or repeated child nodes, continue to valid siblings, and handle deeply nested trees without overflowing the call stack
- Name-tree enumeration ignores invalid name keys, and lookup and deletion keep the full entry offset in leaves with more than 32,768 name/value pairs
Version 3.539.44
Fixed
- Page-box queries and capture ignore non-inheritable bleed, trim and art boxes on parent page-tree nodes, using the leaf page box or its effective crop box instead
HasPageBoxreports directly inherited media and crop boxes consistently with indirect arrays
Version 3.539.43
Fixed
- EMF vector import starts with the default black pen and white brush, so drawing records without an explicit object selection remain visible
- 32-bit and 16-bit polylines preserve independent figures inside path brackets, and 16-bit multi-polylines defer painting until the path is drawn and honor a null pen
Version 3.539.42
Fixed
- CapturePageEx with the bleed, trim or art box option on a page that does not define that box now captures the crop box, as documented, instead of the whole media box; the box filled in on the page follows the same ISO 32000-1 default
Version 3.539.41
Fixed
- EMF import draws 32-bit PolyBezier records from their first point instead of using it as a control point, so the curves match the 16-bit records
- EMF Polyline records are drawn as open lines with the pen only instead of closed, filled shapes
- EMF PolylineTo records start at the current position and are no longer closed, and a record whose first two points lie on a horizontal line no longer turns off the pen for every shape drawn after it
- 32-bit EMF PolyPolyline records draw every polyline; records with more than one polyline used to be skipped and single polylines drew nothing
Version 3.539.40
Fixed
- ImportAnnotationsFromFDFString and ImportAnnotationsFromFDF return the number of annotations actually added, like the XFDF import; entries skipped because their page is outside the document or they have no /Subtype are no longer counted
Version 3.539.39
Fixed
- EMF import draws PolyDraw records completely: points that close a figure as they draw a line or a curve are no longer dropped, so closed shapes keep their last segment and the curves that follow stay in step; a 16-bit PolyDraw record with several figures keeps all of them, and a figure that does not start with a move begins at the current position
- EMF import skips Polyline, PolyBezier, Polygon, PolyDraw and 16-bit PolyPolyline and PolyPolygon records that declare more points than they contain, instead of reading past the record, which drew stray lines from the following records or could break the conversion
Version 3.539.38
Fixed
- JBIG2 halftone regions whose grid starts left of or above the region, or whose rotated grid places cells at negative coordinates, decode correctly: such cells are cropped at the region edge instead of being dropped or moved, the grid origin is no longer pulled onto the region corner, and cells lying wholly outside are skipped exactly as ITU-T T.88 specifies
Version 3.539.37
Fixed
- JBIG2 images with a halftone region that skips grid cells outside the region now decode correctly when the halftone grid is not square; the skip mask was built with rows and columns swapped, so cells that should have been skipped were decoded and the rest of the region came out garbled
Version 3.539.36
Fixed
- A page moved with MovePage gets its own copies of the page boxes, rotation and resources it inherited from its old Pages node, so calling SetPageBox or drawing text and images on the moved page no longer changes the old node and the pages that still inherit from it
- SetPageBox gives the page its own box when the existing box is an indirect object shared with other pages or with a Pages node, instead of resizing every page that refers to it
- CopyPageRanges no longer leaves the copied source pages sharing their page boxes with the Pages node or their CropBox with their MediaBox, so changing a box on a source page after the copy no longer resizes its sibling pages or both boxes at once
Version 3.539.35
Fixed
- TransformPageElement writes the scale and rotation part of the matrix it wraps around a path or image with six decimal places instead of four, so small rotations and fine scale factors are no longer visibly off on large pages; the translation keeps four decimal places
Version 3.539.34
Changed
- Page edits that rewrite a content layer, including ScalePage, TransformPageElement, DeletePageElement, RedactRegion, ConvertTextToPaths and programs from ParsePageContentLayer written back with WritePageContentLayer, keep the original text of every numeric operand they do not change instead of rounding the whole layer to four decimal places
- TPDFContentProgram has a new CanonicalNumbers property; set it before parsing to rewrite every number in canonical form as NormalizeContentStreams does
Fixed
- A non-zero number smaller than the output precision, such as a 0.00001 scale factor, is written with its significant digits instead of 0, so content normalization, the save-time content optimizer and new PDF objects no longer turn a tiny transformation into a singular matrix that hides the content
Version 3.539.33
Fixed
- RecolorPage and RecolorDocument no longer fail with a conversion error on comma-decimal systems when a page sets a colour with a decimal value such as
0.5 g - DrawSVG, DrawSVGFromFile, GetSVGWidth and GetSVGHeight read decimal SVG lengths such as
width="100.5"on comma-decimal systems instead of falling back to defaults, and ExportPageSVG keeps decimal fill and stroke colours - RenderPageRegionToFile and RenderPageToDCClip accept decimal clip rectangles such as
10.5,20.5,50.5,40.5on every locale; a malformed clip string now fails or renders unclipped instead of raising, and extra values no longer overrun the rectangle - AddPolygonAnnotation, AddPolyLineAnnotation and AddInkAnnotation read decimal vertex coordinates on every locale and reject a malformed coordinate list
- SetOutputIntentMixingHints accepts solidity values such as
0.95on comma-decimal systems, and CheckDocumentPolicy compares decimal feature values such asDocument.Version >= 1.3numerically
Version 3.539.32
Fixed
- AddTagAttribute writes dot-decimal values such as
0.5or2.5 3.5as PDF numbers on comma-decimal systems instead of turning them into PDF names; values written with the system decimal separator are still accepted - SetStructElemBBox, SetStructElemSpaceBefore, SetStructElemSpaceAfter, SetStructElemStartIndent, SetStructElemEndIndent and SetStructElemColor format their numbers independently of the system locale and never in exponent form
- PDF/VCR placeholders created with BeginPDFVCRPlaceholder pass the pre-save GTS_BBox validation on comma-decimal systems
Version 3.539.31
Fixed
- GetSimilarImageDeduplicationReportJSON writes maxAcceptedMeanError as a valid JSON number on comma-decimal systems instead of
0,333333333333333 - GetObjectJSON and ExportObjectJSON write PDF numbers such as
-.25,+3or007.5in JSON number syntax, so the output is valid JSON and SetObjectJSON and ImportObjectJSON accept it back - JSON reports write
nullfor a value that is NaN or infinite instead of+InforNAN, or failing with a floating-point exception: GetDocumentJSON for overflowing PDF numbers, GetAnnotationHitsJSON for non-finite coordinates, and the barcode, deskew, structured text and PDF/VCR reports - Number formatting for PDF content, SVG, HTML and CSV output writes 0 for NaN instead of raising an invalid floating-point operation
Version 3.539.30
Fixed
- ImportAnnotationsFromFDF and ImportAnnotationsFromFDFString create the imported annotations again; previously every entry was counted but none was added because the /Subtype value was never read
- FDF annotation import reads /Rect, /Page, /Contents, /T and /Subj in any key order, keeps each lookup inside its own annotation entry, and parses numbers independently of the system locale, including comma decimals written by earlier versions
- ExportAnnotationsToFDF and ExportAnnotationsToFDFString write each annotation's own /Rect in PDF user space, so an exported file re-imports to the same position instead of shifting the annotation
Version 3.539.29
Fixed
- ExportAnnotationsToXFDF and ExportAnnotationsToXFDFString write rect, opacity, width and dashes values with a dot decimal separator on every system locale, as XFDF requires
- ImportAnnotationsFromXFDF and ImportAnnotationsFromXFDFString read standard dot-decimal XFDF on comma-decimal systems instead of failing with a conversion error, and a malformed number now skips that value instead of aborting the import
- XFDF files written by earlier versions on comma-decimal systems, such as
rect="50,500 80,250 70,750 100,125"oropacity="0,600", import with their intended values
Version 3.539.28
Fixed
- The content stream optimizer no longer removes a
1 0 0 1 0 0 Tmthat resets the text position after Td, TD, T*, an earlier Tm or shown text, which moved the following glyphs when content streams were optimized on save; an identity Tm directly after BT, or one that repeats an earlier identity Tm, is still removed
Version 3.539.27
Fixed
- MovePage, and CollateDocumentsEx when it reorders pages, keep the MediaBox, CropBox and Rotate a page inherited from its parent Pages node, so a page moved under a different parent no longer changes size, crop or orientation; previously only /Resources was carried over
- BalancePageTree keeps an inherited /Resources, /MediaBox, /CropBox or /Rotate that is an indirect object as a reference to that object instead of copying it into every page
Version 3.539.26
Fixed
- Page content written by AddPageMatrix, ScalePage, DeskewPage, TransformPageElement, DeletePageElement, RedactRegion and ConvertTextToPaths always uses a dot decimal separator and plain notation, so on systems with a comma decimal locale these calls no longer produce broken operators such as
0,5 0 0 0,5 0 0 cm, and very small values are never written in exponent form - ExportAnnotationsToFDF and ExportAnnotationsToFDFString write annotation rectangles with dot decimals whatever the system locale
- RecolorPage and RecolorDocument write locale-neutral colour operands for every decimal separator, not only for the comma
- AddPageMatrix, ScalePage and RedactRegion reject NaN or infinite arguments instead of writing them into the page
Version 3.539.25
Fixed
- Form field appearance repair writes /Type and /Subtype onto the appearance stream instead of creating bogus /N appearance states, CMYK border colors no longer read past their four components, and deleting a form field no longer misreads page counts through indirect /Count values
- Checkbox style repair keeps both custom export states when no Off state exists instead of wiping them, and radio button children register their on-state with the same encoding the value setters compare against
- File attachment annotations without an /EF dictionary no longer crash, sound annotation export stops byte-swapping 8-bit audio, markup annotation opacity uses one consistent scale, and SetAnnotRect reports success again
- Annotation appearance rebuilding no longer leaves a freed stream in the structure object table when the document has no indirect-object callback
- The peephole optimizer no longer drops colour setters that a different colour operator of the same side superseded in between, and keeps collapsing plain adjacent duplicates
- Text extraction honours the " operator as word and character spacing instead of corrupting the line leading, and FindInstructionsInRect no longer reports overlapping ranges for multi-subpath paths
- EMF import: PolyDraw reads the point-type flags from the correct offset, POLYTEXTOUTW always reads UTF-16 text and no longer accumulates glyphs across strings, small text-out glyph mapping no longer replaces the whole string with one character, and gradient fills no longer divide by zero on degenerate rectangles
- EMF import clamps every file-supplied bitmap header size, region rectangle count, polygon count and gradient vertex index to the record bounds, and stops truncating record pointers to 32 bits on Win64
- JBIG2 halftone regions place patterns in the correct grid direction, skip-mask tests compare in fixed point, retained arithmetic contexts snapshot the decoder statistics instead of faulting, run-length symbol tables guard a repeat code in first position, MMR reference lines stop at the sentinel, partially off-canvas symbols are cropped rather than shifted, and malformed counts surface as decode failures instead of unrelated runtime errors
- CCITT decoding initialises changing-element lookups and handles bit requests smaller than the remaining bits without negative shifts; the CCITT encoder covers the full vertical-mode range and stops reading one byte past the row buffer
- TIFF loading bounds-checks every IFD read, keeps palette images from decoding as gray ramps, writes StripByteCounts once, and clamps requested page numbers; failed JPEG recompression no longer reports a corrupt stream as success
- Document comparison folds stream data into object fingerprints, matches duplicate objects one-to-one, sorts dictionary keys, separates array elements, and reports comparison failures instead of a false no-modifications verdict
- The parallel render name builder no longer reads past a one-character pattern
- Several more demos were repaired: file-list verdicts pair with the right file, the multi-function viewer actually retries with the entered password, four demos no longer prepend a blank first page, embedded-file and page-operation demos resolve their sample and output paths beside their inputs, and image-strategy helpers check the library results they build on
- The ActiveX control initialises the result of every variant-input method so a rejected variant no longer returns stack garbage
Version 3.539.24
Fixed
- The stamp token &T now expands the document Title instead of the Author in headers, footers and stamps
- PrinterMark annotations write the /PN mark kind as a PDF name object as required by ISO 32000-1 instead of a literal string
- Composite form-field kid index queries release their temporary child field instead of leaking it
- Rebalanced page trees inherit MediaBox, CropBox and Rotate from ancestor nodes instead of only Resources
- XMP CreateDate and ModifyDate keep a valid ISO 8601 shape when the PDF date omits its timezone, and XMP import without an x:xmpmeta wrapper no longer drops subsequent metadata updates
- PDF string octal escapes stop at digit 7, so \0689 now decodes as \06 followed by a literal 89 as the specification defines
- QDF publication reports the original write failure instead of masking it with a file-close error
- FPC builds compress and expand Flate streams larger than one chunk as a single zlib stream instead of concatenated per-chunk members that other consumers truncate
- The EditFormField demos generate their sample form on first run instead of failing to find it, and several demos now report a failed document load instead of silently saving an empty PDF
Changed
- The documentation search index lists the localized selling-points page under each language own title instead of one shared Chinese title for every locale
Version 3.539.23
Added
- Native JBIG2 decoding accepts standalone random-access file organization with known segment lengths, including custom Huffman tables and refinement images
Fixed
- Random-access input validates header order, the required end-of-file header, and total data lengths before decoding, rejecting truncated or trailing data without retaining an old bitmap
Version 3.539.22
Added
- Native JBIG2 decoding supports custom Huffman tables for symbol dictionaries and text regions, with explicit errors for malformed tables and unsupported prefix lengths
Fixed
- Huffman refinement decoding consumes the declared bitmap size and preserves partial-byte symbol pixels, preventing corrupted text in affected JBIG2 images
Version 3.539.21
Fixed
- Flate and LZW decoding honor the per-row PNG algorithm tag for predictors 10 to 14 instead of decoding every row with the algorithm named in the dictionary. Legitimate cross-reference streams compressed with Predictor 12 load again, image rows no longer decode out of place, and rows may switch algorithms within one image
Version 3.539.20
Fixed
- The first document information or standard identifier edit captures the original XMP before the editor object is initialized, so existing author, document identifier and custom properties are no longer overwritten with default metadata; document information changes also reach the XMP under Free Pascal on Windows, and XML without an xpacket wrapper is saved unchanged
Version 3.539.19
Fixed
- Saving an unmodified decimal object keeps the precision it was parsed with instead of rounding it to the default output precision, so calibrated color parameters such as CalRGB gamma and matrix no longer shift page colors on a plain save; newly created or edited numbers keep using the configured precision
Version 3.539.18
Fixed
- Updating document information replaces only the value of the target field: when creation date and modification date reference the same indirect string, refreshing the modification date no longer rewrites the creation date
Version 3.539.17
Changed
- Version detection and the save-time precheck avoid repeated managed string copies while collecting feature rules, cutting the scan overhead on large documents; feature detection, version requirements and the first incompatible-feature diagnostic behave exactly as before
Version 3.539.16
Fixed
SaveQDFToFileandConvertFileToQDFno longer write ordinary compressed Flate content streams as empty streams under Free Pascal and Lazarus; decompression from an explicit start position applies the correct one-based offset and the full input length
Version 3.539.15
Fixed
- The JBIG2 decoder reads local and global profile segments safely and obtains the first bitmap through the standard page number 1
- MMR bitmap decoding realigns its read position to the declared segment boundary after the final pixel, so a trailing EOFB or padding is no longer mistaken for the next segment header
- Custom Huffman tables, random-access organization, unknown or oversized segment lengths fail explicitly; truncated profiles and illegal segment references stop decoding,
TPLJBIG2Decoder.LastErrorreports the reason, and a failure clears the stale bitmap RepairQDFFilepublishes through a temporary file created exclusively in the target directory and replaces the target only after the temporary file is written, flushed and closed; in-place repair and overwrite output keep the old file when writing, flushing or replacing fails and report result 0 with error code 305- Publication preserves the target's existing DACL before the temporary file is written and fails explicitly when permissions cannot be preserved or the target is EFS-encrypted; an exclusively locked or unreadable input reports error code 401 instead of raising the read exception, and file publication supports Unicode and extended-length Windows paths
Version 3.539.14
Fixed
RepairQDFFilereplaces the target only after the temporary file has been fully written and flushed inside the target directory, so in-place repair and overwrite output keep the old file when writing, flushing or replacement fails; failures return 0 with error code 305- An existing target's DACL is preserved before the temporary file is written, and permission preservation fails explicitly when it is not possible or the target uses EFS encryption; exclusively locked input files or read failures return error code 401 instead of surfacing the read exception to the caller; file publishing supports Unicode and extended-length Windows paths
Version 3.539.13
Fixed
- Repairing a QDF file no longer drops stream content whose body contains whole-line
endstreamorendobjmarkers; the repair selects the last complete end-marker pair before the known object tail - Object-specific tail markers that repeat inside a stream fail the repair before the target stream is cleared, preserving the original bytes, length and position
RepairQDFFilecompletes the entire repair in memory and opens the target for writing only after success, so a rejected input can no longer truncate a file opened withfmCreate- File specification strings keep the documented
/UFfirst,/Ffallback order and give unknown/Pathkeys no name priority
Version 3.539.12
Fixed
- QDF repair keeps endstream and endobj text found inside stream data instead of truncating legitimate data at those tokens; duplicate stream-end markers on the same object now fail the repair explicitly and leave the target content untouched
RepairQDFFilewrites the output only after the input has been confirmed repairable, so invalid or ambiguous input no longer empties the in-place source file or an existing target file
Version 3.539.11
Fixed
- File-specification name reading follows the
/UFover/Fprecedence and no longer lets/Path, which is not a standard file-specification field, override the official name
Version 3.539.10
Fixed
- LZW decoding expands its code width on the decoder's own threshold instead of sharing the encoder's, so streams across all code widths and repeated dictionary resets decode correctly, verified against Pillow, libtiff and PDFium
- CMS signature parsing carries parent boundaries through ContentInfo, EXPLICIT wrapping, SignedData, sets and identity fields, so out-of-range data is no longer used for certificate counts or identity matches, while valid padding after the outer object is still accepted
- Updating page labels on a document whose PageLabels use a
/Kidsnumber tree converts the existing entries into root leaf nodes instead of adding a second, mutually exclusive/Numsentry that readers would ignore - The Lazarus MergePDF sample reads its inputs from the second command line argument, treats a single explicit input as a parameter error and no longer prints a success hint before generation fails
Version 3.539.9
Fixed
- The Lazarus MergePDF routine now tells the first output-directory argument apart from all following input files and no longer drops the last input; it fails explicitly when fewer than two inputs are given, a file is missing, or the output conflicts with an input, instead of generating a sample in place of user input or overwriting source files
- The Delphi, Lazarus and C++Builder OutputStream routines return a non-zero exit code when saving fails, so automated invocations can detect the failure
Version 3.539.8
Fixed
- The CMS reader rejects certificate sets, signature sets and identity fields that reach past the bounds declared by their parent container instead of wrongly extracting certificates, signature counts or signer identities from malformed DER; padding bytes after the outermost CMS object are still tolerated
Version 3.539.7
Fixed
- LZW encoding and decoding widen from 9 to 12 code bits at the standard points, honouring both EarlyChange settings, dictionary resets and the EOI code width at end of stream, which fixes decode failures on boundary-length inputs and incompatibilities with external TIFF and PDF decoders
Version 3.539.6
Fixed
- Buffer scans stop on a zero
TStream.Readreturn instead of on a short read, and streams that return a few bytes at a time no longer skip the tail of the scanned data - OID encoding merges the first two arcs into one base-128 subidentifier, so
2.999.3encodes as06 03 88 37 03instead of silently becoming1.15.3 - Drawing a preview into a reused image stream clears the old content first, so a smaller rendering no longer keeps the tail of the previous image
CopyPageRangesreleases its document instances in afinallyblock, covering load failure, exceptions and normal completion
Version 3.539.5
Fixed
- ASN.1 DER encoding now handles OIDs whose first two arcs merge into a multi-byte value, such as 2.999.3, instead of truncating them into a different identifier; the second arc no longer overflows when it holds the Int64 maximum and the first-arc offset is added
Version 3.539.4
Fixed
- The four byte-distance queries on the streaming buffer keep scanning when a read returns fewer bytes than requested, until the stream truly reaches its end, so later matches inside custom short-read streams are no longer missed; the queries still leave the buffer at its current position
Version 3.539.3
Fixed
- Error code 526 no longer means two different things.
PDFLIB_ERROR_TEXT_LOCATION_INVALID,PDFLIB_ERROR_TEXT_LOCATION_STALEandPDFLIB_ERROR_TEXT_LOCATION_READ_ONLYmove to codes 535, 536 and 537, which were unassigned, so callers that branch on 526 see only the JSON export failure it was documented for; code 527 and 528 are no longer used PDFlibErrorMessagedescribes codes 101 to 104 by what actually raises them. The four codes belong to the encryption parameters, not to the parse errors the message table claimed, so an encryption-strength failure no longer reports "Invalid PDF structure"PDFlibErrorMessagereturns a real message for every code the library raises. Byte-range and HTTP open failures, net file open, the raw encryption key size, JSON export, marked-content and clip-path handle rejections, the renumbered text-location codes, the embeddable-font and PDF/VCR and PDF/E compliance codes and the duplicate-field and form-script forms had fallen back to the generic "<segment> error (NNN)" text- The
LastErrorCodereference page lists the complete code set, including the previously missing 705 duplicate-field code, and no longer shows the retired 527 and 528 entries
Version 3.539.2
Fixed
- A TIFF whose directory declares more values than the file holds is now rejected outright. The values were discarded but the count was kept, so the readers that follow took the first element of an array that had none
- A PNG whose header carries a colour type or bit depth outside the format is rejected instead of being decoded with no colour channels, which sent the row filters through an empty buffer
- A PNG resolution chunk shorter than its nine defined bytes no longer reads past the data it was given
- Two-dimensional CCITT Group 3 and Group 4 images decode on Free Pascal and Lazarus; the reference-line lookup returned an array it never created, which that compiler leaves empty
Version 3.539.1
Fixed
- The viewer disk cache now discards rendered bitmaps on every library upgrade. The version marker it compared against was maintained separately from the library version and had fallen behind, so a cache written by an older build could be reused after updating
- Free Pascal and Lazarus builds read 16-bit
BI_BITFIELDSbitmaps correctly again: the channel masks were taken from the wrong offset whenever the file used an extended info header, so colours came out scrambled - Bitmap rows are no longer misread on builds without a device backing: 1- and 4-bit rows were sized by integer division, dropping the last pixels of every row, and saving such a bitmap wrote the pixel block one byte off
- Capturing a drawing into a metafile no longer produces an empty picture when the size is not known in advance; the recorded frame is now taken from the drawing itself, as it is on the VCL
- Reading a bitmap whose declared palette size exceeds its colour depth is rejected instead of being trusted
- Printer job status queries release the spooler handle they open, so polling a print job no longer leaks one handle per call
Docs\index.htmlis the language gateway again. A documentation sync had replaced it with a copy of the Simplified Chinese reference navigation whose entry links pointed at a directory that does not exist
Changed
- The Lazarus package
PDFlibPasLaz.lpknow lists the opt-in LZW encoder, Brainpool, Ed448, ML-DSA, PDF printer and external JBIG2 encoder units together with the metafile declarations, matching the unit set the command-line build ships build-Win64-Demo-Laz.cmdforwards tobuild-Lazarus-Demo.cmd win64, so both entry points place demo executables inbin\x86_64-win64instead of the demo source directory
Version 3.539.0
Added
- Free Pascal and Lazarus now support 32-bit Windows builds alongside Win64, including PDF creation, loading, encryption and JPEG 2000 images
- The Lazarus library, trial, demo and console-test build scripts accept
win32orwin64and support Win32-hosted cross compilers, with separate output directories for each architecture
Changed
- Win32 uses the built-in Pascal JBIG2 encoder when an external encoder is requested; the statically linked external encoder remains available on Win64
- FPC builds include compression through the bundled Pascal zlib implementation and no longer load
zlib1.dllfrom the system search path
Version 3.538.0
Added
- Free Pascal and Lazarus builds can now use the external JBIG2 encoder. Add the
PDFlibJBIG2EncCunit to a project - the same unit Delphi and C++Builder use - andAddImageJBIG2FromStreamExand the other JBIG2 entry points honour the external-encoder request there exactly as they do on Delphi. The encoder is linked into the executable; no extra file has to be shipped with it. Projects that leave the unit out keep falling back to the built-in Pascal encoder and are unaffected - New Free Pascal object set under
Lib\thirdparty\Win64fand the build script that produces it
Version 3.537.0
Added
- Free Pascal and Lazarus builds convert metafiles into vector page content.
ImportEMFFromFile,ImportEMFFromStream, their Ex forms,LoadFromCanvasDCandNewPageFromCanvasDCnow produce real PDF drawing operators with embedded fonts there, as they do on Delphi, rather than reporting that the mode is unavailable. Text stays selectable and searchable, and the output is a fraction of the size of the rasterised import
Version 3.536.7
Fixed
- Printer enumeration returns real names on Free Pascal and Lazarus. Every printer came back as its first character alone, which also made printer selection, custom printer profiles and printing itself reject every installed printer
GetPrinterNamesno longer crashes on builds without the VCL: it now asks the spooler directly, likeGetLatestPrinterNamesalready did
Version 3.536.6
Fixed
- Converting a metafile into vector page content now reports failure on builds that cannot do it, instead of returning a picture whose content is empty.
ImportEMFFromFile,ImportEMFFromStream, their Ex forms andLoadFromCanvasDCall handed back a valid-looking image id there, so the page came out blank with nothing to indicate why. Importing the same metafile as an image is unaffected and carries the identical picture - Canvas capture and metafile import no longer crash when the conversion cannot run: both entry points used the resulting picture without checking that it exists
Version 3.536.5
Fixed
- Rasterised metafile import works on Free Pascal and Lazarus.
ImportEMFFromFile,ImportEMFFromStreamand their Ex forms returned nothing when asked to rasterise, andLoadFromCanvasDCcrashed in the same mode, because the drawing stream handed to the image loader was not one it could read there. The vector paths were unaffected
Version 3.536.4
Fixed
- Metafile capture on Free Pascal and Lazarus reports its physical size again, so
LoadFromCanvasDCand the other canvas capture entry points import the drawing instead of failing on a zero-sized frame - The VCL-free font object now reports a real
PixelsPerInchand copies onAssign. Both were inert, so code that took its render resolution from a font asked for a zero-sized canvas, and handing a prepared font to a canvas quietly kept the old one - Metafiles created on Free Pascal default to the enhanced format, matching every other platform; they previously saved in the legacy 16-bit layout unless the caller set the flag itself
Version 3.536.3
Fixed
- Free Pascal and Lazarus builds now import 4-, 8- and 16-bit BMP images.
AddImageFromFileandAddImageFromStreamsilently returned no image for those depths, including the 16-bitBI_BITFIELDSform that paint programs write, because the VCL-free bitmap reader only understood 1-, 24- and 32-bit input
Version 3.536.2
Fixed
- Classic GDI metafile export works on Free Pascal and Lazarus:
RenderPageToMetafileFileandRenderPageToMetafileStreamraised an access violation formfEMFandmfWMF, because the VCL-free metafile canvas was an empty stand-in with no brush, pen or font. Both formats now record into a real enhanced metafile and are written out,mfWMFwith the placeable header a .wmf file needs
Version 3.536.1
Fixed
- Free Pascal and Lazarus builds now write valid 1-, 4- and 8-bit BMP files: the bitmap stand-in that replaces the VCL one emitted no colour table at all, so palette-indexed bitmaps were rejected by every reader and drew against an all-black palette
- Bi-level image import works on Free Pascal again:
AddImageCCITTFromFile,AddImageCCITTFromStreamand the JBIG2 equivalents can now read the 1-bit bitmaps they are given, instead of failing because only 24- and 32-bit BMP input was decoded
Version 3.536.0
Added
- Free Pascal and Lazarus builds now run the parallel batch paths instead of falling back to serial loops:
RenderPagesToFilesParallel, the optimization batches behind document optimization, and parallel tile rendering all fan out across CPU cores there, matching the Delphi behaviour
Changed
- Parallel page rendering now renders its first page on the calling thread before fanning out, so the rendering engine initializes once rather than being initialized concurrently by every worker
Version 3.535.0
Added
- Free Pascal and Lazarus builds now ship the JPEG 2000 encoder:
EncodeImageToJPXStream,EncodeImageToJPXFile,AddImageJPXFromFile,AddImageJPXFromStreamandAddImageJPXFromStringproduce JPXDecode images there exactly as they do on Delphi, in both lossy and lossless modes - The non-VCL bitmap used by Free Pascal, macOS and FireMonkey builds now loads uncompressed 24-bit and 32-bit BMP streams and reports an alpha format
Fixed
- Image decoding through the Windows imaging backend no longer crashes on Free Pascal builds; streams are now handed to the backend in a form it accepts
- Assigning one bitmap to another on non-VCL builds copies the pixels instead of leaving the target bitmap empty, which silently produced blank output in image conversion paths
Version 3.534.1
Fixed
- The built-in TIFF decoder now rejects unsupported BigTIFF and tiled layouts with explicit diagnostics and bounds decoded dimensions and strip sizes before allocation
Version 3.534.0
Changed
CheckFileComplianceand PDF/UA preflight now validate embedded simple and CID font widths, complete Type 1/CharSetand CID/CIDSetdeclarations, text-bearing Form XObjects invoked outside marked content and text operands that resolve to.notdef
Version 3.533.0
Added
TPDFlibPKCS11Clientcan discover explicitly selected certificate-less ML-DSA keys, report their parameter set and sign original messages through the PKCS #11 3.2CKM_ML_DSAmechanism
Version 3.532.0
Changed
- Large streams using the common
/ASCII85Decodeand/FlateDecodefilter chain now encode and decode through a bounded-memory pipeline without materialising the intermediate representation
Version 3.531.0
Added
AddWebCaptureCommand,GetWebCaptureCommandCount,GetWebCaptureCommandandClearWebCaptureCommandscreate, enumerate and remove standard catalog/SpiderInfoWeb Capture command metadata without performing network retrieval
Version 3.530.0
Added
BPLoadCurve,BPKeyGen,BPSignFixedKandBPVerifyimplement ECDSA over the three RFC 5639 prime-field curves brainpoolP256r1, brainpoolP384r1 and brainpoolP512r1 in pure Pascal: 33-limb radix-2^16 arithmetic shared by all curve widths, bit-serial modular reduction, Jacobian doubling and addition with explicit alias guards, Fermat inversion and a caller-supplied nonce for signing; known-answer vectors generated with an independent implementation and cross-verified in both directions pass on every curve alongside round-trip and tamper-rejection regressions
Version 3.529.0
Added
Ed448PublicKeyFromSeed,Ed448SignandEd448Verifyimplement RFC 8032 PureEdDSA on edwards448 in pure Pascal: 16-limb radix-2^28 Goldilocks field arithmetic with the 2^448 = 2^224 + 1 Solinas fold, strongly unified product-form group addition for a = +1 curves, digest-wide modular reduction modulo the group order for the 114-byte SHAKE256 scalars, and cofactor-4 verification; both RFC 8032 section 7.4 known-answer vectors pass byte-for-byte alongside round-trip, tamper-rejection and length-validation regressions
Version 3.528.0
Added
MLDSA65KeyGen,MLDSA65SignandMLDSA65Verifyimplement FIPS 204 ML-DSA-65 with 1952-byte public keys, 4032-byte secret keys and 3309-byte signaturesMLDSA87KeyGen,MLDSA87SignandMLDSA87Verifyimplement FIPS 204 ML-DSA-87 with 2592-byte public keys, 4896-byte secret keys and 4627-byte signatures
Version 3.527.0
Added
PDFlibMLDSAprovides a pure Pascal FIPS 204 ML-DSA-44 implementation with deterministic seed key generation, hedged or deterministic signing, bounded rejection sampling and signature verificationMLDSA44KeyGen,MLDSA44SignandMLDSA44Verifyuse the standard 1312-byte public key, 2560-byte secret key and 2420-byte signature sizes, support contexts up to 255 bytes and are verified against the official known-answer vector
Version 3.526.0
Added
- Streaming SHAKE XOF context (
PLShakeXOFInit/PLShakeXOFAbsorb/PLShakeXOFFinalize/PLShakeXOFSqueeze) squeezes arbitrary byte counts across Keccak permutations for both SHAKE128 (rate 168) and SHAKE256 (rate 136), with a one-shotPLShakeXOFwrapper; cross-block 200-byte outputs are verified against the reference digests of both variants
Version 3.525.0
Changed
SHAKE256ByteArrayandSHAKE256StreamRangenow accept outputs up to the 136-byte sponge rate (previously 64), enabling single-squeeze digests at the Ed448 hash length of 114 bytes; new known-answer tests cover 114-byte outputs of the empty andabcmessages
Version 3.524.0
Added
DownsampleImagesExclassifies every image as bitonal, grayscale or colour from its declared colour space and bits-per-component and applies a per-class DPI budget and JPEG quality in one pass; bitonal scans re-encode losslessly and an only-if-smaller flag keeps the original bytes when the re-encode grows
Version 3.523.0
Added
CopyForeignObjectdeep-copies one indirect object and its complete reference closure from another loaded document into the selected document, remapping object numbers so shared references stay shared in the copy
Version 3.522.0
Added
SetPagePieceInfo,GetPagePieceInfoandClearPagePieceInfomanage page-level private data dictionaries (ISO 32000-2 14.5) keyed by application nameAddNamedPageandGetNamedPageregister and resolve pages by name through the catalog /Names /Pages name tree
Version 3.521.0
Added
GetImageListItemNativeDataToString,GetImageListItemNativeFormatandSaveImageListItemNativeDataToFileextract the raw still-encoded codec stream of any listed image (JPEG, JPEG 2000, JBIG2, CCITT, Flate or raw) without decoding, preserving the original bytes for passthrough workflows
Version 3.520.0
Added
AnalyzeModificationsclassifies every change since a saved revision against the LTA-update, form-filling and annotation whitelist and returns the overall modification levelGetModificationLevel,GetModificationFindingCount,GetModificationFindingLevel,GetModificationFindingObjNumandGetModificationFindingDetailexpose the classified findings of the most recent analysis
Version 3.519.0
Added
CompareWithperforms a structural comparison between the selected document and a saved revision, classifying every indirect object as added, removed or changed through content fingerprints that ignore object-number shiftsGetCompareFindingCount,GetCompareFindingKind,GetCompareFindingObjNumandGetCompareFindingDetailread the findings of the most recent comparison, including page-count differences
Version 3.518.0
Added
SHAKE256ByteArrayandSHAKE256StreamRangeprovide the SHAKE256 extendable-output digest (ISO/TS 32001, RFC 8702) with byte-range two-segment reads and 1..64 byte outputs, verified against the NIST FIPS 202 known-answer tests
Changed
- The Keccak core now carries a domain-separator byte so SHA-3 and SHAKE share one permutation implementation; within the CMS signing profile SHAKE256 remains reserved as the internal digest of Ed448 and is deliberately absent from the digest selector
Version 3.517.0
Added
AddPageAssociatedFileFromFileandAddPageAssociatedFileFromStringbind embedded file specifications to a single page's /AF array (ISO 32000-2 14.13) instead of the document catalogGetPageAssociatedFileCount,GetPageAssociatedFileEmbeddedIndexandClearPageAssociatedFilesenumerate and remove page-level associated files after save/load round tripsSetOptionalContentConfigInfowrites presentation metadata (configuration name, creator and layers-panel list mode) onto the default optional-content configuration
Version 3.516.0
Added
ApplyContentFilterChainandTPDFContentFilterChainrun instruction-level content filters over every content layer of a page, with ordered chains, early-stop control and user data pass-throughExportDocumentJSONandGetDocumentJSONserialise the complete document object graph, including stream dictionaries with base64 payloads and the trailer, into a qPDF-style JSON structureSetPDFDeclarations,GetPDFDeclarationsURI,GetPDFDeclarationsRole,GetPDFDeclarationsVersion,GetPDFDeclarationsCount,HasPDFDeclarationandClearPDFDeclarationswrite, read and remove machine-readable PDF Declarations conformance claimsAuditPageTree,AuditXRefStructure,AuditObjectReachability,AuditStreamLengths,AuditFontEmbeddingandAuditColorSpacesrun six independent structural diagnostic passes with severity-graded findingsGetAuditFindingCount,GetAuditFindingSeverity,GetAuditFindingItemandGetAuditFindingDetailread the findings of the most recent audit call
Version 3.515.0
Added
ExecuteFormFieldScriptEventandTPDFlibFormScriptEventexecute bounded Keystroke, Format, Validate and Calculate field events with controlled Event, Field and Document propertiesSetFormScriptLimits,GetFormScriptLimitsJSONandGetFormScriptDiagnosticsconfigure and report source, operation, nesting, string and property-access budgets
Changed
- The safe form-script runtime now exposes read-only source and target field metadata, document field lookup and keystroke selection state while retaining value-only compatibility
Security
- Script execution now rejects button value events, object mutation and out-of-range selections, applies independent resource limits to execution and dependency analysis, and reports bounded parser failure locations
Version 3.514.0
Added
SetPDFEModecreates PDF/E-1 engineering documents with PDF 1.6 syntax, synchronized Info and XMP identification, lifecycle metadata and an embedded colour-managed output intentGetPDFEDiagnosticsand compliance test 7 provide save-time, direct-file and shared-pipeline PDF/E-1 validation with bounded object, content and recursion budgets
Changed
- PDF/E-1 saves now enforce identification, lifecycle metadata, permitted encryption, output-intent consistency, XFA exclusions and unsafe-action gates, while preflight additionally audits device colour spaces, content operators, fonts, annotations, forms, optional content, external-file references, graphics states and 3D stream restrictions
Version 3.513.0
Added
SetPDFVCRModeand the template and placeholder scope APIs create PDF/VCR-1 PassThrough replacement templates over a PDF/X-4 foundationGetPDFVCRDiagnostics,GetPDFVCRManifestand compliance test 6 provide save-time, direct-file and shared-pipeline validation plus validated JSON field and placeholder extraction
Changed
- PDF/VCR saves now enforce identification metadata, one direct template root, unique declared fields, valid page selection, leaf replacement placeholders and exact page and MCID bindings across the complete structure tree
Version 3.512.0
Added
SetPDFRModeand the PDF/R raster page APIs create restricted raster exchange documents from raw, CCITT Group 4 or JPEG data without transcoding supported compressed inputsGetPDFRDiagnosticsand compliance test 5 provide in-memory, direct-file and shared-pipeline PDF/R validation
Changed
- PDF/R saves now enforce the required marker, version and encryption profile, generation-zero objects, restricted dictionaries and filters, single content stream, raster-only operators, ordered strip resources, colour and resolution consistency and full page coverage
Version 3.511.0
Added
TPDFlibFormTextDirection,SetTextDirection,GetVisualCaretOrderandMoveVisualCaretadd automatic or explicit paragraph direction and grapheme-safe physical caret navigation for mixed-direction form editsResolvedTextDirectionandVisualCaretPositionexpose the effective paragraph direction and distinguish split caret slots at bidirectional boundaries
Changed
- Shaped text runs now apply embedding-level visual reordering for mixed left-to-right and right-to-left content while field values remain in logical UTF-16 order
Version 3.510.0
Added
MinimumSlotHeightdefers dynamic component composition before cloning or capture when the current region is too shortMinimumFollowingHeightkeeps a final fragment with a caller-defined first region for the following component without constraining intermediate fragmentsTPDFlibDynamicRetryReason,LastRetryReasonandLastRequiredSlotHeightexpose why placement was deferred and the known required height
Changed
- Flow-space retries now preserve committed fragments, component state, composition indexes and page content while discarding only the isolated trial
Version 3.509.0
Added
TPDFlibDynamicPaginationPolicyadds split, one-shot keep-together and strict complete-placement modes with a distinct retry result and observable pending state
Changed
- Deferred dynamic component trials now discard captured content and mutable state atomically, while strict placement accepts proportional scale-down but never partial or clipped output
Version 3.508.0
Added
TPDFlibFormSession.DispatchInputEventaccepts typed platform-independent pointer, wheel, named-key and composed-text events and returns focus, hover, press, selection and value-change state
Changed
- Form input dispatch now enforces ordered Widget
/E,/X,/Dand/Upointer transitions, capture cancellation, grapheme-safe editing, line-aware caret movement, standard selection and history shortcuts, button activation and choice-wheel navigation
Fixed
- Backspace and Delete history now restores the user-visible pre-key caret instead of the temporary grapheme selection used internally for atomic replacement
Version 3.507.0
Added
TPDFlibFormSessionnow provides bounded field-level undo and redo with availability queries, retained-step counts, configurable capacity and explicit history clearing
Changed
- Form edit history stores compact text deltas, restores values and directed selections without redispatching actions or callbacks, discards redo branches after new edits and clears at edit lifecycle boundaries
Version 3.506.0
Added
TPDFlibFormSessionnow provides vetoable selection replacement, cut and caller-supplied paste operations with mutable host text-edit callbacks and grapheme-safe/MaxLenenforcement
Changed
- Form-session commits now run available validation and formatting actions before mutating the field, retain rejected edits atomically and keep the validated raw value separate from the formatted Widget appearance
Version 3.505.0
Added
- Added directed form-field text selection ranges in UTF-16 code units, Unicode code points and extended grapheme clusters, with anchor and caret reporting plus cached boundary conversion
Version 3.504.0
Added
- Added overflow-aware dynamic component placement with reject, clipping and proportional scale-down policies, independent alignment and final page, geometry and transform reporting
Version 3.503.0
Added
TPDFlibDynamicComponentSessionlazily composes one stateful page fragment at a time with page context, used-size reporting, completion status, reset and committed-state snapshotsReleaseCapturedPageinvalidates a Form XObject capture handle after its final placement while preserving page resource references and existing invocations
Changed
- Dynamic component attempts now draw on cloned state inside an isolated Form XObject and commit only after validated placement; rejected callbacks, invalid geometry and exceptions restore the selected page and leave destination content and component state unchanged
Version 3.502.0
Added
TPDFlibFormSessionnow provides rotated visual-CropBox Widget rectangles, topmost hit testing, point-based focus and forward or backward keyboard focus navigation
Changed
- Tab sequences apply page
/Tabsrow, column, structure, annotation-array and PDF 2.0 Widget order with ViewerPreferences direction, stable cross-page ordering and bounded structure-tree traversal SetTabOrderModenow validates all five standard modes and selects PDF 2.0 automatically forAandW
Version 3.501.0
Added
ApplyRepeatedPageFragmentplaces one captured Form XObject across a page range as typed Pagination, Layout, Page or PDF 2.0 Background artifacts while sharing the content stream and resources between every placement
Fixed
- Artifact property dictionaries now use the required
BDCmarked-content operator in public and table-layout paths, and PDF 2.0 artifact types and subtypes select the required output feature version
Version 3.500.0
Added
SetTextFlowPaginationLinesindependently controls the minimum orphan lines retained at the bottom of a text box and widow lines preserved for the next box or column
Changed
- Text flow pagination now moves only the required tail lines forward with bounded look-ahead, while an impossible split leaves the flow unchanged for placement in a larger region
Version 3.499.0
Added
TPDFlibFormSessionprovides platform-independent AcroForm focus, text and choice editing, zero-based UTF-16 selection, commit and cancellation state with typed host callbacks for Widget focus and blur actions
Changed
- Committed session values now enforce text limits and regenerate only the affected dirty appearance and calculation closure before reporting the value change
Version 3.498.0
Added
GetDirtyFormAppearanceCountandRegenerateDirtyFormAppearancestrack changed AcroForm Widget object references and regenerate only the deduplicated current-session calculation closure
Changed
RegenerateFormAppearancesnow traverses hierarchical fields once from their roots, reports the actual number of successful Widget regenerations and retains failed appearances for retryUpdateAppearanceStreamnow reports generation failure accurately and keeps unsuccessful Widgets pending withNeedAppearancesenabled
Version 3.497.0
Added
SetOutputIntentMixingHintswrites PDF 2.0 ink solidities and physical printing order while rejecting invalid values, duplicate names, missing order and colourants already represented by spectral dataSetOutputIntentSpectralDataembeds bounded CxF/X-4 spot-colour characterisation streams, reuses identical data across repeated and cross-colourant assignments and requires exactly one matchingSpotInkCharacterisation;ClearOutputIntentColorantDataremoves both colourant metadata dictionaries
Changed
GetEffectivePageOutputIntentJSONnow reports mixing solidities, printing order, spectral colourants and decoded spectral validity for authored and reloaded documents- PDF/X preflight now audits OutputIntent
MixingHintsandSpectralData, including forbiddenDotGain, solidity ranges, printing-order types, colourant conflicts, stream decoding and unique CxF spot-ink matches
Version 3.496.0
Added
DAOpenFileWithEncryptionKeyandDAOpenFromStreamWithEncryptionKeyopen encrypted documents from an authorised hexadecimal file-encryption key without password derivation, with matching DLL file exports and explicit validation status
Security
- Raw-key file input is always source-read-only, enforces exact revision-specific key lengths and available
/Uor/Permsverifiers, rejects mismatches even when missing-verifier recovery is enabled and clears retained key material when the handle closes
Version 3.495.0
Added
SetXRefLoadPolicyandGetXRefLoadPolicyselect and report strict, compatible or recovery loading for selected-document and Direct Access input
Changed
- Strict loading now requires exact headers, final markers, declared offsets, fixed-width table entries, cross-reference stream metadata and every linked
/Prevor/XRefStmsection - Compatible loading retains controlled offset and structure repairs without entering raw reconstruction, while recovery loading can rebuild top-level and compressed objects and synthesize a missing trailer
- Cross-reference diagnostics now report the selected policy, ordered parser decisions and per-section compatibility flags, including rejected hybrid side chains and Direct Access recovery evidence
Version 3.494.0
Changed
- Full unencrypted deterministic saves without an explicit seed now derive both initial trailer
/IDentries from the first 16 bytes of a streaming SHA-256 digest over the serialized document header and body - The content digest excludes prior trailer identifiers, cross-reference data and offset-dependent trailers, while normalizing generated resource identifiers and XMP instance UUIDs so page, resource, attachment and metadata changes control the result
- Internal resource names and embedded-font subset tags are stable while deterministic mode is enabled, including output that packs dictionaries into compressed object streams; default saves retain randomized identifiers
Version 3.493.0
Added
LoadFromMappedFileandDAOpenMappedFileopen local PDFs through bounded read-only mapped views, with an option to require mapping or permit a portable file-stream fallbackGetMappedFileInfoandDAGetMappedFileInforeport active mapping state, file and window sizes, current view, read volume and remapping activity
Changed
- Mapped sources retain one allocation-aligned window and remap it across large deferred object or stream reads, bounding address-space use independently of file size
- Local mapped and callback-backed sources now share cursor-independent absolute object-slice reads, while existing file-loading APIs retain their previous behavior
Version 3.492.0
Added
GetPageThumbnailDataToStreamandGetPageThumbnailDataToStringexpose encoded or filter-decoded page thumbnail payloads, whileDeletePageThumbnailremoves the page metadata without changing the selected page
Changed
- Thumbnail presence and metadata queries now require an image stream; malformed non-stream entries remain removable instead of being reported as usable thumbnails
- Raw output is copied in bounded chunks and decoded output reuses the streaming filter pipeline, preserving terminal image encodings such as DCT and JPX for callers that need native payloads
Version 3.491.0
Added
InsertPageElementClipPath,ReplacePageElementClipPathandDeletePageElementClipPathadd local clipping to an exact page element or edit a captured source component with non-zero and even-odd fill rules
Changed
- Clipping components now retain their source layer, instruction range, nesting depth and normalized fingerprint so editable sources are distinguished from initial bounds, text outlines, nested Forms, malformed paths and cross-layer path objects
- Local clipping uses balanced graphics-state scopes, including valid text-object reconstruction, while deleting a clip from a path that also paints preserves the original stroke or fill
Version 3.490.0
Added
SetPageElementMarkedContentTextProperty,SetPageElementMarkedContentPropertySourceandDeletePageElementMarkedContentPropertyedit Unicode text, serialized PDF objects and existing properties on an exact enumerated marked-content frame
Changed
- Named property resources are edited through page-local copy-on-write, inline property lists automatically promote when an indirect value requires a resource, and deleting the final property compacts
BDCtoBMC - Marked-content edits validate the captured source instruction and resolved property snapshot before writing, then invalidate all page-element handles after a successful change
Version 3.489.0
Added
GetTextBlockCharContentLocationandDAGetTextBlockCharContentLocationmap each extracted UTF-16 position to its content layer, stream, instruction, operand,TJarray element and encoded source-byte rangeReplaceTextBlockCharSourceBytesperforms fingerprint-guarded local replacement of mapped font-encoded bytes while preserving adjacent strings and kerning values
Changed
- Generated,
/ActualText, nested Form, transcoded and cross-layer locations are explicitly classified as read-only, while ligature expansions retain their shared source-glyph range - Content-span lookup uses binary search and extracted lists retain two independent layer fingerprints to reject stale edits before parsing or rewriting page content
Version 3.488.0
Added
ImportPageAsFormXObjectimports a page from any open document as a reusable captured-page handle without changing either page tree
Changed
- Page-to-Form import copies only decoded page content, the independent inherited resource closure and Form-compatible group, metadata and piece-information entries, excluding annotations, thumbnails and page-only structure
- Selected page boxes use standard fallback rules, inherited quadrant rotation is normalized into the Form matrix and repeated placements share one compressed content stream
Version 3.487.0
Added
- Page-element handles now expose their active outer-to-inner marked-content stack, tags, validated
/MCIDvalues, original property operands and every entry from resolved direct or resource-backed dictionaries
Changed
- Content-state tracing resolves named
/Propertiesresources once per resource scope and retains immutable marked-content frames without reparsing page content for repeated queries - Marked-content nesting is tracked independently of
q/Qand is bounded to each page or Form content stream so malformed unclosed sequences cannot leak into another stream
Version 3.486.0
Added
- Page-element handles now expose every component of their effective clipping intersection, including transformed move, line, cubic and close commands, non-zero or even-odd fill rules, component bounds and combined-region diagnostics
Changed
- Content-state tracing retains immutable clipping chains across page boundaries,
q/Qrestoration and Form boundaries while sharing unchanged components between snapshots - Page-element enumeration collects path mutation targets and graphics states in the same content pass, avoiding the previous extra path-layer parse
Version 3.485.0
Added
GetTextBlockCharUnicodeFlagsandDAGetTextBlockCharUnicodeFlagsexpose per-character Unicode mapping, fallback, missing-map, unmapped-code, invalid-map and replacement diagnostics
Changed
- Text extraction retains Unicode mapping provenance beside every UTF-16 code unit and validates surrogate pairs before accepting
ToUnicodeoutput - Invalid or partial mappings now use an independent font-encoding fallback and emit U+FFFD when no meaningful fallback exists
Fixed
- Identity Unicode maps now return one mapped code unit instead of treating the source code value as an output count
Version 3.484.0
Added
- Selected-document and Direct Access text blocks now expose per-character baseline angles, origins, cell matrices, descent-adjusted quads and axis-aligned boxes
GetTextBlockCharBoxadds a selected-document counterpart to the existing Direct Access box query
Changed
- Text extraction retains baseline, advance and cell-height vectors once per character so geometry queries preserve rotation, shear and reversed baselines in constant time
DAGetTextBlockCharBoxnow derives its result directly from retained character geometry instead of walking every preceding width
Fixed
- Selected-document character widths and text-block dumps now apply the configured coordinate scale exactly once
Version 3.483.0
Added
GetTextBlockCharSourceFlagsandDAGetTextBlockCharSourceFlagsexpose bitwise provenance for generated characters, hyphens and honoured/ActualTextreplacements
Changed
- Text block extraction now retains character source flags beside the existing text and advance arrays, including spaces inferred from large character gaps, without reparsing page content for repeated queries
Version 3.482.0
Added
GetXRefDiagnosticsandDAGetXRefDiagnosticsreturn JSON reports for effective cross-reference types, byte positions, trailer boundaries, entry counts and every table or stream in the revision chain
Changed
- Hybrid-reference links, shifted-header retries and editable-document recovery decisions now remain visible as distinct diagnostic evidence, including raw object scans, compressed-object recovery and synthesized trailers
Version 3.481.0
Added
- Callback-backed and Direct Access byte-range documents can queue background page, form or object dependency prefetch jobs with four scheduling priorities, cancellation, waiting and JSON progress diagnostics
- Dependency prefetch iterates missing-range discovery until the target is ready, with configurable source-byte, read-ahead and planning-pass limits
Changed
- Each byte-range stream now owns a priority-ordered FIFO worker that shares the bounded range cache while using isolated parser state, allowing foreground document work to continue without sharing a mutable reader
- Queued cancellation performs no source reads, running cancellation is checked before every chunk, and stream destruction drains outstanding work before releasing its source
Version 3.480.0
Added
LoadFromRangeSourceaccepts an optional non-fetching availability callback for progressive stores, with selected-document and Direct Access queries for page, form and indirect-object readiness- Availability reports return merged required and missing byte ranges, dependency completeness and object traversal counters as JSON
Changed
- Byte-range streams can test cached and source-available coverage without reading bytes, moving the stream cursor or changing cache statistics
- Page availability follows only the target page-tree path and reachable processing dependencies, while unavailable ranges are reported without invoking the read callback
Version 3.479.0
Added
TByteRangeStream.ReadAtprovides cursor-independent absolute reads with same-chunk single-flight sharing, bounded adjacent-request merging and a configurable collection window- Range-cache diagnostics now report pending requests, the active collection window, requests served by coalescing and physical reads that covered multiple chunks
Changed
- Deferred reads from callback-backed and URL-backed documents now use absolute offsets, serialize source callbacks and combine concurrent adjacent chunks into source reads capped at 16 MiB
- Clearing a range cache during an in-flight fetch now prevents that stale completion from repopulating the cache or post-clear counters while existing waiters still receive their bytes
Version 3.478.0
Added
- Byte-range streams now retain aligned chunks under an explicit least-recently-used byte budget and report window count, retained bytes, hits, misses, evictions, source reads, source bytes and repeated reads
LoadFromRangeSourceand DelphiDAOpenFromURLaccept an initial cache budget, with new selected-document and Direct Access APIs to inspect, resize and clear the active cache
Changed
- Linearized first-page warming now stays within the configured retained-byte budget
Version 3.477.0
Added
LoadFromRangeSourceloads a complete editable document through a caller-supplied random byte-range callback, allowing HTTP, database, object-store and custom inputs to stay remote while the parser fetches only the ranges needed for loading and deferred operations- The new
TPDFlibRangeReadEventcontract receives absolute offsets, destination buffers and bounded counts, with the callback provider remaining caller-owned for the loaded document lifetime
Version 3.476.0
Added
- Added PDF/VT-3 authoring over PDF/X-6, PDF/X-6p and PDF/X-6n bases with synchronized identification metadata, mandatory document-part coverage and dedicated preflight
Changed
- Document-part hierarchies now emit and validate standard 8192-entry child blocks together with stricter XML name and type constraints
Version 3.475.0
Changed
TPDFlibContentGraphicsState.BlackPointCompensationnow reports the effectiveDefault,ONorOFFstate across page content, graphics-state restoration and recursively enumerated Form XObjects- PDF/X-6 preflight now rejects
UseBlackPtCompentries whose type or value is outside the PDF 2.0 black point compensation model
Version 3.474.0
Changed
- PDF/X-6 preflight now validates printable annotation flags, deterministic normal appearances, button appearance states, AcroForm and signature fields, viewer-generated appearance exclusions and safe action placement and chains
- PDF/X-6 authoring permits JavaScript only on directly activated Link annotations, limits named actions to page navigation and rejects unsafe, document-level, page-level and form-field action paths before they mutate the document
Version 3.473.0
Added
SetPDFXModenow accepts mode 5 for PDF/X-6p process-colour exchange and mode 6 for PDF/X-6n n-colourant exchange, both using PDF 2.0 and external output-profile references- New
SetOutputIntentProfileReferenceandAddOutputIntentProfileReferenceURLAPIs create document-level or page-level/DestOutputProfileRefdictionaries, derive the ICC checksum, version and colour-space signature, validate output-device and colourant metadata, and preserve one or more RFC 3986 retrieval locations without embedding the profile bytes
Changed
- PDF/X preflight recognizes the PDF/X-6p and PDF/X-6n XMP identifiers and validates external profile type, metadata lengths, process-colour or n-colourant signatures, colourant tables, and URL file specifications
GetEffectivePageOutputIntentJSONnow reports referenced-profile metadata includingprofileCS,profileName,iccVersion,checkSum,profileURLsandcolorantsafter authoring or round-trip loading
Version 3.472.0
Added
- New
SetPageOutputIntent,ClearPageOutputIntentsandGetEffectivePageOutputIntentJSONAPIs create, remove and inspect PDF 2.0 page-level output intents, including the effective document-level fallback
Changed
- PDF/X-6 preflight now accepts page-level output intents, gives them precedence over the document intent and verifies that every page resolves to an embedded Gray, RGB or CMYK profile
Version 3.471.0
Added
SetPDFXMode(4)authors PDF/X-6 complete-exchange documents with PDF 2.0 syntax, PDF/X-6 XMP identification and an embedded colour-managed output intent
Changed
- PDF/X preflight recognises PDF/X-6, requires PDF 2.0 syntax and verifies that the output intent carries an embedded Gray, RGB or CMYK ICC profile declaration
Version 3.470.0
Added
- HTML layout supports Flexbox direction, wrapping, grow, shrink, basis, gaps, justification and cross-axis alignment
- HTML layout supports explicit CSS Grid tracks, fractional sizing, repeated tracks, spans, row or column auto-placement, gaps and item alignment
- HTML stories support numbered footnotes that reserve the frame bottom, reflow body text and preserve numbering through page continuations
Changed
- HTML measurement and cached replay include Flexbox, Grid and footnote geometry while retaining bounded container and track limits
Fixed
- Bulk PDF dictionary clearing and key renaming invalidate cached key indexes, preventing stale lookups during memory compaction and repeated document processing
Version 3.469.1
Fixed
- EMF import and Canvas DC conversion now preserve Unicode text and glyph mappings for embedded and unembedded TrueType fonts
NewPageFromCanvasDCappends every requested page, whileTPDFlibPrintercommits each canvas exactly once without losing or duplicating pages
Version 3.469.0
Added
SetImageSoftMaskExattaches grayscale image soft masks with optional matte coloursNewSoftMaskGraphicsStatecreates reusable alpha, luminosity, transfer-function and reset graphics states from captured Form XObjectsFlattenTransparencyreplaces selected pages with opaque static content at a chosen resolution and background colour for older PDF versions and archival workflows
Changed
- Transparency flattening processes one page at a time, normalises visual rotation, optionally preserves interactive annotations, supports progress and cancellation, and removes unreachable transparency resources by default
Version 3.468.0
Added
- AVIF, HEIF, HEIC and JPEG XL image inputs can be imported through the existing image APIs or the dedicated
AddModernImageFromFile,AddModernImageFromStreamandAddModernImageFromStringmethods SetModernImageCodecLibrary,ModernImageCodecAvailableand a decoder callback provide deployable in-process codec selection without temporary conversion files
Changed
- Modern image decoding preserves source orientation, alpha, ICC profiles and up to 16-bit channel depth before reusing the native PNG image pipeline
Fixed
- Signature seed key-usage validation now reads the native certificate context with correct pointer alignment on Win64
Version 3.467.0
Added
DeduplicateSimilarImagesconsolidates perceptually similar image XObjects with configurable difference-hash, mean channel error and maximum channel error thresholds, dry-run support and optional orphan collectionGetSimilarImageDeduplicationReportJSONandTPDFlibImageSimilarityDedupStatsreport decoding coverage, indexed candidate work, accepted errors, redirected references and estimated encoded-payload savings
Changed
- Approximate image matching requires identical semantic image dictionaries, confirms decoded 64 × 64 colour samples and uses an eight-band hash index to avoid exhaustive pairwise comparisons
Version 3.466.0
Added
EncodeImageToJPXStreamandEncodeImageToJPXFileencode bitmap input as configurable lossy or reversible lossless JPEG 2000 in a standard JP2 containerAddImageJPXFromFile,AddImageJPXFromStreamandAddImageJPXFromStringadd encoded bitmap input directly asJPXDecodeimage XObjects
Changed
- JPEG 2000 image authoring validates quality and lossless options, restores caller-owned input stream positions, removes partial output on failure, automatically requires PDF 1.5 and retains the existing PDF/A-1 compatibility gate
Version 3.465.0
Added
RenderPageTileToStreamandRenderPageTileToFilerender arbitrary device-pixel regions with clipped overlap and white, transparent-key or custom backgroundsRenderPageTilesToFiles,RenderPageTiledToStreamandRenderPageTiledToFileproduce parallel tile grids or stitch their exact core boundaries into a seam-free page imageSetRenderSurfaceCacheLimit,GetRenderSurfaceCacheInfoandClearRenderSurfaceCacheprovide an opt-in, thread-safe LRU cache with independent entry and byte budgets for fully composited tile surfaces
Changed
- Parallel single-page rendering now prewarms one shared display list before worker fan-out so content streams are parsed once, while unsupported compilers retain a deterministic serial path
Version 3.464.0
Added
GetXFARenderedPageCountand theRenderXFAPageToStream,RenderXFAPageToStringandRenderXFAPageToFilefamily produce static raster pages from XFA templates, bound datasets and explicit page breaks without changing the source documentConvertXFAToAcroFormconverts supported text, password, choice, check-box, push-button and signature controls into editable fields while preserving names, values, options, flags, pages and bounds
Changed
- Large one-shot Flate compression now supplies the native backend with a protected input tail, preventing invalid Adler checksums in high-resolution PNG output while retaining compressed output
Version 3.463.0
Added
RenderPageLayerToStream,RenderPageLayerToStringandRenderPageLayerToFileexport base page content, annotations, form fields, or all interactive objects as independently composable PNG layersFlattenFormFieldTaggedandFlattenFormFieldsTaggedOnPageRangebake field appearances into static page content while retaining or creating accessibleFormstructure semantics
Changed
- Interactive-only rendering skips the base content interpreter, uses one annotation appearance pass and writes a transparent background without changing persistent renderer settings
- Tagged flattening converts a Widget-specific ParentTree
OBJRassociation to pageMCRmarked content, preserves existing alternate and actual text, and leaves fields intact when a safe association cannot be proven
Version 3.462.0
Added
HitTestAnnotationandGetAnnotationHitsJSONfind topmost or all annotations at a page point using subtype-aware geometry, tolerance, visibility and bounding-box optionsMoveAnnotationZOrderreorders existing annotation references in place, andSimplifyInkAnnotationsreduces Ink stroke points with bounded geometric deviation and detailed statistics
Changed
- Annotation interaction now tests markup quadrilaterals, vector paths, ellipse geometry and filled regions after a fast rectangle rejection, while changed Ink appearances are rebuilt automatically unless explicitly deferred
Version 3.461.0
Added
RepairAnnotationAppearancesrebuilds missing, stale, invalid, state-mismatched or invisible normal appearances across every page and returns issue plus annotation-category statisticsGetAnnotationAppearanceAuditJSONreports per-annotation appearance issues and aggregate counts without changing the document
Changed
- Markup, shape, path, free-text and icon appearance generation now shares a single-pass document scanner, incremental output builders and compact source fingerprints for deterministic stale detection
Version 3.460.0
Added
ExecuteFormFieldScriptexecutes a bounded local subset of form validation, calculation and formatting actions without exposing file, network, process, UI or dynamic-code capabilitiesRecalculateFormFieldsperforms full or dependency-scoped incremental calculation, andGetFormCalculationGraphJSONreports field dependencies, calculation-order positions and cycles
Changed
- Form recalculation evaluates into a private value snapshot, orders ready fields by AcroForm calculation order, rejects dependency cycles before mutation and commits values only after the selected graph completes
Version 3.459.0
Added
MergeDocumentExadds explicit duplicate form-field policies for rejecting a merge, preserving a shared name with synchronized values, or assigning deterministic numeric suffixes
Changed
- Duplicate-field rejection is checked before object numbers, page trees or form arrays are changed, so the target and source documents remain reusable after a rejected merge
Version 3.458.0
Added
DrawOpenTypeText,GetOpenTypeTextWidthandGetOpenTypeGlyphRunshape, measure, draw and inspect text directly from an existing TrueType or OpenType font handle without requiring an installed face name- Portable native OpenType shaping and subsetting modules are included for 32-bit and 64-bit Windows, with buildable Linux and macOS sources and an environment override for custom deployment paths
Changed
- Complex-script drawing now prefers font-byte GSUB and GPOS shaping, including substitutions, kerning, cursive and mark attachment, while a bounded Pascal fallback covers Arabic joining and common OpenType layout lookup formats when the native module is unavailable
- Shaped font subsetting now retains glyph IDs and closes over layout, variable-font and colour-font dependencies, including COLR/CPAL and fvar/gvar/HVAR data
Version 3.457.0
Added
CreateOpenTypeFontVariationcreates reusable static CFF fonts from requested CFF2 variable-font axis coordinates
Changed
- OpenType CFF2 import now selects a static default instance for immediate drawing and embedding while retaining the variable program for later instantiation
- CFF2 instantiation evaluates variation stores,
vsindexandblendacross expanded local and global subroutines, applies horizontal and global metric variations, and emits a bounded checksum-correct CFF1 OpenType font for existing CFF embedding and subsetting paths
Version 3.456.0
Added
- Added WOFF2 input for the TrueType, OpenType and collection file entry points on Windows 10 version 1703 or later, including transformed TrueType outlines and metrics, CFF fonts and collection faces
Changed
- Web font containers are unpacked once in memory, use the best available Unicode cmap for character mapping, and embed or export the resulting sfnt rather than the compressed container
Version 3.455.0
Added
GetFontVariationAxesexposes each TrueType variable-font axis with its localized name, design range, default value and hidden state, whileCreateTrueTypeFontVariationcreates a reusable static font from requested axis coordinates
Changed
- Variable TrueType instantiation applies
avar,gvar,HVARandMVARdata, flattens composite outlines, rebuilds horizontal and global metrics, removes stale variation and hinting tables, and emits a checksum-correct sfnt for drawing, embedding, subsetting and glyph inspection SaveFontToFilecan export retained in-memory TrueType programs directly, including newly created variable-font instances before a PDF has been saved
Version 3.454.0
Added
GetFontColorGlyphandGetFontColorGlyphByIndexexpose COLR v0 and v1 paint graphs, CPAL palettes, SVG-in-OT documents and embedded bitmap strikes for direct application inspection and rendering
Changed
- Colour-font table inspection uses lazy bounded sfnt access and participates in the shared font-cache byte budget, avoiding eager outline parsing for large colour fonts
Version 3.453.0
Added
SetFontCacheLimit,GetFontCacheInfoandClearFontCacheprovide a shared byte budget, least-recently-used eviction and hit, miss and occupancy statistics for retained font-face resources, shaped text runs and parsed outline programsGetFontGlyphIndexmaps full Unicode code points through TrueType cmap format 4 and format 12 tables, whileGetFontGlyphOutlinereturns simple and transformed composite paths with raw advance, left side bearing, bounding box and units-per-em metrics
Changed
- Repeated shaped-text measurements and drawing calls reuse deep-copied shaped runs under the shared cache budget, and repeated glyph inspection reuses the parsed font program instead of reparsing it for every glyph
- Binary font programs loaded from strings and WOFF containers retain an owned raw-byte stream, preventing text recoding and expired stream references during deferred table access
Version 3.452.0
Added
soCanonicalEquivalentlets text search, batch search and replacement workflows match canonically equivalent NFC and NFD text while reporting offsets and lengths in the original extracted textsoGraphemeClustersconstrains matches to extended grapheme-cluster boundaries and makes the?wildcard consume one complete cluster, protecting surrogate pairs, combining sequences, emoji ZWJ sequences, flags and Indic conjuncts
Changed
- Unicode normalization and grapheme segmentation use compact generated Unicode 15.1 tables on every supported platform without relying on an operating-system text service
Version 3.451.0
Added
ExternalizeInlineImagesreplaces repeated supported inline images across a selected page range with one shared Image XObject when the estimated serialized size decreases
Changed
- Inline image externalization preserves image masks, interpolation, decode arrays, filters and decode parameters, and opportunistically Flate-compresses unfiltered payloads when smaller
- Exact SHA-256 grouping, deterministic resource names, duplicate-page elimination, progress reporting and cooperative cancellation keep optimization results bounded and repeatable
- Unknown inline dictionary entries and non-device colour spaces remain byte-identical instead of being promoted without complete semantics
Version 3.450.0
Added
NormalizeContentStreamscanonicalizes whitespace and numeric tokens across a selected page range while preserving operators, string values, and inline image payloads
Changed
- Content compression now emits canonical tokens even when peephole optimization finds no redundant instructions
Fixed
- PDF real numbers with an explicit leading plus sign now retain their value during parsing and normalization
- Replaced stream data no longer retains obsolete decode parameters from its previous filter pipeline
Version 3.449.0
Added
SetTempFileQuota,GetTempFileQuota, andCompactDocumentMemoryprovide bounded disk-backed object spooling with automatic in-memory fallback
Changed
- Temporary object data now uses generation-aware indexed lookup and remains available after the spool write handle closes
Version 3.448.0
Added
SetRecoveryModeandGetRecoveryModeselect strict, trailer-based repair, or best-effort recovery before loading damaged PDF input
Changed
SaveToStreamnow writes directly to write-only non-seekable targets while retaining the existing chunked serialization path- Best-effort recovery remains the default, while strict mode disables raw reconstruction and repair mode requires a surviving trailer instead of synthesizing one
Version 3.447.0
Added
SetOptimizationWorkersandGetOptimizationWorkersconfigure bounded worker batches for image optimization and Flate stream recompression, with automatic processor selection by default and a serial compatibility modeOptimizeImages,RecompressStreams,MergeFileList,MergeFileListFastandMergeFileListStrictnow report tracked progress and honor cooperative cancellation throughAbort
Changed
- Flate recompression and self-contained image transcoding run in bounded parallel batches while document mutations remain deterministic and single-threaded
- Image optimization now retains decoded bitmap data for re-encoding, skips stencil and color-key mask images, and removes stale decode parameters when applying JPEG replacements
- Large file-list merges keep only the active source readers open, report progress by input and object count, and remove incomplete output when cancelled or failed
Fixed
- Multi-file merge operations now report successful completion when more than one source was merged
- Image downsampling and optimization now retain the decoded bitmap required by their re-encoding paths
Version 3.446.0
Changed
- The two-parameter
SetDisplayListCacheLimitoverload bounds retained display-list memory as well as entry count, while the existing overload preserves the configured byte budget - Display-list eviction now favours frequently reused content with greater rebuild value per retained byte, and individually oversized lists bypass retention without blocking rendering
- Active capture and replay operations pin their lists, concurrent lookups never observe partially built recordings, and cancelled or failed captures are discarded
GetDisplayListCacheInfoandGetResourceUsageStatisticsJSONreport retained bytes, limits, estimated replay cost, evictions, bypasses, rejected captures and build contention
Fixed
- Display-list replay now releases replaced operand strings instead of retaining one allocation from each prior operator
Version 3.445.0
Changed
- The three-parameter
SetMemoryBudgetoverload adds a decoded-byte budget for each document's compressed object-stream cache - Object-stream cache entries now use least-recently-used eviction by both entry count and decoded payload size, while oversized entries bypass caching without blocking object access
- Memory budgets configured before loading now apply to existing and future documents and can be queried through
GetMemoryBudget GetResourceUsageStatisticsJSONnow reports current object-stream cache bytes, byte limits and eviction counts
Version 3.444.0
Added
- The three-parameter
SetParserLimitsoverload limits tolerated parser errors and stops deterministic recovery withpdsErrorLimitwhen the budget is exhausted SetStreamDecodeLimitsrejects overlong filter chains before decoder allocation and enforces a cumulative decoded-byte budget across streams in one tracked operation- Streaming and in-memory decode paths share the same filter and byte accounting, including object-stream decoding during document loading
GetResourceUsageStatisticsJSONreports structure and stream memory estimates, image and font counts, decoded-byte peaks, failures, and object, object-stream and display-list cache hits and missesResetResourceUsageStatisticsresets diagnostic counters without discarding loaded documents or reusable caches
Version 3.443.0
Added
SetParserLimitsandGetParserLimitsconfigure and inspect hard limits for nested PDF objects and the number of entries in any directly parsed array or dictionary- Parser limits apply before file, stream, string, edit-journal, QDF and integrity-check loading paths consume objects, while the default keeps the existing nesting limit and unrestricted container size
TPDFStructure.DecodeMaxContainerItemsrejects oversized arrays and dictionaries with the distinctpdsContainerLimitstatus and preserves the failure positionRegenerateFormAppearancesrefreshes every top-level and child AcroForm field in one traversal, optionally preserves usable appearances and clearsNeedAppearances
Version 3.442.0
Added
CheckFileComplianceaccepts compliance test 3 for PDF/X and audits a finished document against the ISO 15930 print exchange rules: pdfxid edition identification, part-based syntax level, exactly one GTS_PDFX output intent with an embedded profile and condition identifier, declared trapping state, per-page TrimBox and BleedBox geometry, embedded font programs, forbidden annotation types, document-level JavaScript, embedded files, encryption and LZWDecode filters- Issues surface as PDFX-prefixed lines through the same string-list handle the PDF/A and PDF/UA checkers use
Version 3.441.0
Added
SetPDFXModeselects a PDF/X conformance mode (1 = PDF/X-1a:2003, 2 = PDF/X-3:2003, 3 = PDF/X-4) that enforces the ISO 15930 print-exchange rules at authoring time and writes the pdfxid XMP edition identification- The mode installs a GTS_PDFX OutputIntent (CMYK print default), declares the /Trapped state and bases the save version on the part (PDF 1.4 for X-1a / X-3, PDF 1.6 for X-4)
- Authoring gates: DeviceRGB and ICCBased spaces rejected under X-1a (X-3 / X-4 require an RGB OutputIntent for DeviceRGB), transparency and optional content rejected outside X-4, JavaScript, file attachments, encryption, LZWDecode images and non-embedded fonts rejected in every mode
- Save-time fixes: every page receives a TrimBox (defaulting to the MediaBox), annotation Print flags and AcroForm NeedAppearances are normalised and /Trapped is declared
GetInformation(203)reports the active PDF/X mode
Version 3.440.0
Added
AddWatermarkAnnotationFromImageIDwrites a /Subtype /Watermark annotation with the /FixedPrint /Matrix storage matrix so printing scales the appearance with the page (ISO 32000-1 12.5.6.17)AddPrinterMarkAnnotationFromImageIDwrites a /Subtype /PrinterMark annotation carrying the /PN printer's mark name (ISO 32000-1 12.5.6.18)SetFillColorICCBasedandSetLineColorICCBaseddraw through content-level /ICCBased colour spaces backed by an embedded ICC profile file, with the component count read from the profile header and identical profiles sharing one resource
Version 3.439.0
Added
- WOFF 1.0 web font containers import transparently through every TrueType entry point (
AddTrueTypeFontFromFile, stream APIs); tables inflate from their zlib streams and the flattened sfnt directory is rebuilt before parsing - Documents embed the unwrapped sfnt program in FontFile2, never the WOFF container, keeping embedded fonts valid for all viewers
Version 3.438.0
Added
- Seed-value enforcement extends to
LegalAttestation, acceptable certificateIssuerentries and positionalKeyUsagepatterns (ISO 32000-2 Tables 237 and 238), with matching authoring APIsSetSignatureFieldSeedValuelegal-attestation values,AddSignatureFieldSeedIssuerandSetSignatureFieldSeedKeyUsage SetSignProcessLegalAttestationdeclares the signer attestation validated against a required LegalAttestation constraint at sign timeTPDFlibPKCS11Client.InitializeUserPINandChangeUserPINadminister token PINs over a dedicated read/write session with security-officer login forC_InitPIN
Version 3.437.0
Added
SetSignProcessRSAPSSPaddingsigns RSA detached signatures with RSASSA-PSS padding, emitting the full RFC 4055 parameter set (MGF1 with the signing digest, salt length equal to the digest) inside the CMS signature algorithm identifier- PSS-padded signatures round-trip through the library verifier, which now parses RFC 4055 parameters (explicit and implicit encodings) and validates them through CNG with the declared salt length
Version 3.436.0
Fixed
- Text extraction now decodes AGL supplemental glyph names (
uniXXXXanduXXXXXXforms) carried in /Differences arrays of fonts that ship no ToUnicode map - Encoding slots whose glyph name resolves to nothing now fall back to the font base encoding instead of surfacing raw code points or replacement characters during extraction
- Symbolic embedded TrueType fonts without a ToUnicode map now decode through the embedded font program cmap tables, recovering the real Unicode behind each character code
Version 3.435.0
Added
AddTrueTypeCollectionFontFromFileembeds any face of a TrueType collection (.ttc) by zero-based index; the previous behaviour always took the first faceGetJPEGFileOrientationreads the EXIF orientation tag (1..8, 0 when absent) of a JPEG file andGetJPEGFileICCProfileToFileextracts its APP2 ICC profile without importing the image
Version 3.434.0
Added
- Render options 11..15 map the PDFium quality flags: LCD text rendering on/off, no-smooth text, no-smooth image, no-smooth path and forced halftone; the defaults keep the historical output and the GDI+/Cairo backends ignore the flags
SetDisplayListCacheLimitcaps the parsed-once content-stream display-list cache; a positive limit evicts least-recently-created entries before inserting, zero restores the unbounded behaviour
Version 3.433.0
Added
- Signature time-stamp digest selection accepts the SHA-3 family (codes 5..7 in
SetPAdESSignatureTimeStampDigestAlgorithm), matching the signer digest options SetTimeStampRetryCountconfigures 0..10 extra TSA attempts after transport failures or 5xx replies with a linear backoff between attemptsTPDFlibCertificateInfogainsFriendlyName,ThumbprintSHA1andThumbprintSHA256read from the certificate context properties duringEnumCertificates- The AdES historical validation report gains
BaselineProfile: 0 for non-PAdES subfilters, then 1=B-B, 2=B-T, 3=B-LT, 4=B-LTA derived from the timestamp and DSS evidence
Version 3.432.0
Added
- Page-range strings accept the keywords
odd,also even,firstandlast, also as range bounds (3-last), in every API that takes a range ReversePagesreverses the page order of the loaded documentFlattenAnnotsOnPageRangebakes every annotation of a range into page content in one callGetPageContentBoxreports the union bounds of all text, image and path elements, andAutoCropPagessets each page's CropBox to that box plus a marginAddBatesNumberingstamps sequential zero-padded numbers with prefix and suffix at nine keypad-style positionsExtractDocumentRevisionwrites the document state at any earlier incremental revision to a new file by truncating the revision chainSplitDocumentByOutlinecuts the document at its outline entries up to a level into one file per sectionComparePageTextsWithcompares two documents page by page on extracted text and reports the differing count and first mismatchSanitizeDocumentgainsSANITIZE_XMP_PACKET(value 32) which removes the whole XMP metadata stream and every/PieceInfodictionary
Version 3.431.0
Added
- Extraction option 19 (
SetTextExtractionOptionsand the direct-access variant) drops rendering-mode-3 text such as OCR layers from the extracted output without touching visible content - Extraction option 20 replaces the glyphs of
/Spanmarked-content sequences with their/ActualTextvalue during extraction (ISO 32000-1 §14.9.4), honouring both inline property dictionaries and named property resources DAGetTextBlockCharBoxderives per-character axis-aligned boxes from block quads and advances, for highlight rectangles and hit-region math on individual charactersExportFormValuesToJSONserialises AcroForm field values to a JSON array with proper escaping, optionally skipping empty fieldsGetPageTextStatisticscounts characters, whitespace-separated words and blocks for any pageGetXMPPropertyreads simple values from the document XMP packet (descending throughrdf:Alt/rdf:Bag/rdf:Seqwrappers and resolving XML entities) andSynchronizeXMPToInfocopies XMP metadata back into the Info dictionary- Font inventories report embedded program sizes:
TPDFlibDocumentFontgainsFontFileBytesand the diagnostics record gains a summedEmbeddedBytes
Version 3.430.0
Added
- Text search gained four new options:
soDiacriticInsensitivematches queries through a 1:1 Unicode fold so plain letters find their accented counterparts (Latin-1, Latin Extended-A, Greek and Cyrillic, with case sensitivity still honoured when combined withsoCaseSensitive),soWildcardsinterprets*and?in the query with leftmost-longest semantics compatible withsoWholeWord,soAcrossLinesmatches phrases that span line and block breaks by joining each page's extracted blocks, andsoPreserveStylemakesSearchAndReplaceTextredraw replacements at the replaced block's text size and colour instead of the caller's current settings - Search hits now report the match position and length inside the block text (
MatchStart,MatchLength) plus optional context windows (ContextBefore,ContextAfter) controlled by the newSearchContextCharsproperty AddTextMarkupFromSearchHitsandHighlightTextSearchHitsconvert search hits, or the hits retained by a runningBeginTextSearchsession, into Highlight / Underline / Squiggly / StrikeOut markup annotations on their pages- Literal search needles of four characters or more now use a Boyer-Moore-Horspool skip table with conservative wide-character collation, speeding batch searches over long pages
Fixed
- Embedded TrueType fonts written with a WinAnsi base encoding and a Differences array produced a
/ToUnicodeCMap that listed only the Differences entries, so readers relying on it decoded every other accented WinAnsi code as junk: extraction returned?substitutes, block collection could stop at the affected line, and diacritic-sensitive search missed those documents. The CMap generator now covers the whole base encoding with Differences overrides, batched in spec-compliant sections of 100 entries - Word-merge bookkeeping in the text funnel inserted a phantom advance entry when appending runs without a separator, shifting every later per-character offset by one and corrupting derived data such as search-hit sub-rectangles and gap-inferred spaces
Version 3.429.0
Fixed
- Subsetting through
AddTrueTypeSubsettedFontproduced documents whose text rendered blank in every viewer: the CID-to-GID mapping stream was silently overwritten by a hard-coded/Identityentry, so Unicode-derived CIDs addressed the wrong glyph outlines. The stream is now authoritative and/Identityremains only as a fallback when no mapping can be derived; subsetted documents with CJK and auto-updated glyph sets render correctly again - Axial and radial shader fills rendered as solid black on the internal GDI+ renderer:
GdipCreateLineBrushrejectsWrapModeClamp(a texture-brush-only mode), and the failed brush creation fell through to the black solid fallback. Gradient brushes are now created withWrapModeTileand shader fills render identically to the Cairo backend and external viewers - Creating a
TPDFlibinstance raisedEIntOverflowwhen the library was compiled with overflow checking on (the release flags of the command-line demo build scripts): the FNV-1a name hash, the MD5 state accumulation, and the MD5 bit counters are modular arithmetic by design and now run with local overflow checks disabled. The shippedbuild-Win32-Demo/build-Win64-Demorelease output no longer crashes at startup
Version 3.428.1
Added
- New
Showcaseflagship demo (Demo\Delphi\Showcase): builds a seven page document on startup — gradient cover, vector graphics with shaders and patterns, embedded TrueType typography, styled tables, a barcode gallery, interactive links with review annotations and bookmarks, and a summary page — and previews it live inside the embeddedTPDFlibViewercontrol - The Showcase demo also runs headlessly (
Showcase.exe <output.pdf>) with an optionalrenderargument that exports every page as a PNG, so the full document pipeline can be exercised from build scripts
Fixed
- Content stream parsing no longer mis-reads the stroke colour operator
RG: the indirect-reference lookahead in the object decoder consumed0 0 0 RGas a numeric plus the phantom reference0 0 R, which corrupted stroke colours after content optimization and produced operator syntax errors in strict viewers - The content peephole optimizer no longer drops a repeated
cs(colour space) setter that follows any colour operator:rg/g/kreset the colour space implicitly, so pattern fills (scn) after text colour changes kept their/Pattern csand render correctly again
Version 3.428.0
Added
- Nineteen new Free Pascal / Lazarus console demos under
Demo\Lazarus: OutlineBuilder, WatermarkDemo, NamedDestinations, EmbeddedFiles, XmpMetadata, TextBlockExtraction, AnnotationInspector, BarcodeGallery, TaggedPDF, SearchReplace, Redaction, LinearizeDemo, PatternShowcase, DocumentProperties, SecurityPermissionMatrix, PageStitch, OutputStream, MergePDF, and PdfToImage - An
IOUtilscompatibility shim (TPath / TDirectory / TFile) for FPC builds keeps the ported demos source-identical to their Delphi counterparts
Changed
- The NOVCL graphics stand-in under Windows now materializes real GDI objects: TBitmap allocates a top-down DIB section, TCanvas owns a memory DC and re-selects brush, pen, and font GDI objects on property changes, and TBrush / TPen / TFont rebuild their handles when colors, styles, or font attributes change
- Page rendering under FPC now produces pixel output matching the Delphi build (GDI+ rasterization through the stand-in DC), which also restores
PdfToImageJPEG and BMP export
Fixed
- Encrypted PDF creation under FPC corrupted binary string values (trailer
/IDreadback, encryption/U), making the output fail reload verification; the FPC builds no longer pass-FcUTF8, whose ansistring codepage tagging madeAnsiString + AnsiCharconcatenation replace every byte above $7F with a question mark
Version 3.427.0
Added
- Free Pascal / Lazarus support: the library now compiles under FPC 3.2 (Win64) from the same sources as the Delphi builds, with new
build-Lazarus-Lib,build-Lazarus-Lib-TRIAL,build-Lazarus-Tests, andbuild-Win64-Demo-Lazbuild scripts and thePDFlibPasLazpackage - Flate compression and decompression under FPC run through FPC's bundled static zlib; AES encryption links the same unity object used by the Delphi builds; JPEG images decode through the GDI+ backend
- An FPCUnit console test suite (
Tests\Lazarus) covers document create/save/load round trips, deflate/inflate, AES, and text extraction, and two Lazarus console demos (HelloWorld,TextExtract) are included underDemo\Lazarus
Changed
- Unit scope prefixes (
System.SysUtils,Winapi.Windows, ...) were removed across the library sources so the same units resolve under both compilers; the Delphi command-line library builds now pass the unit scope list explicitly - Fixed two
NO_VCL/NOVCLdirective typos in the renderer and the Cairo bitmap export that only became visible once the NOVCL Windows configuration was actually compiled
Version 3.426.0
Added
- Page rendering can now simulate process and named-ink overprint through configurable Delphi, DLL, and ActiveX APIs
Changed
- Extended graphics states now preserve cumulative
/OP,/op, and/OPMsemantics while bounded pixel composition retains overlapping ink channels on GDI+ and Cairo renderers
Version 3.425.0
Added
- Image extraction now preserves JBIG2 page and global segments in standalone files and keeps CCITT fax payloads inside standalone TIFF wrappers
- A read-only image deduplication manifest groups exact encoded duplicates by digest, object identity, page usage, and reclaimable payload bytes across Delphi, DLL, and ActiveX clients
Changed
- Page image lists now identify native JPX and JBIG2 payloads without forcing bitmap expansion, including image streams reached through nested Form XObjects
Version 3.424.0
Added
- Document-level associated-file APIs now create, enumerate, map, add, and remove catalog
/AFmembership across Delphi, DLL, and ActiveX clients - RichMedia annotations can now reuse an existing embedded or associated file, keeping one media payload shared by the attachment panel and annotation asset graph
Changed
- Associated-file creation accepts files, Delphi streams, binary strings, DLL buffers, and ActiveX byte arrays while preserving checksums, descriptions, relationship metadata, and binary zero bytes
- Removing an embedded file now also removes matching catalog associated-file references so loaded documents cannot retain dangling
/AFentries
Version 3.423.0
Added
- Optional-content APIs now build nested layer-panel labels and group branches across Delphi, DLL, and ActiveX clients
- Radio-group creation, membership, removal, and inspection APIs add mutually exclusive layer controls for CAD and map workflows
Changed
- Locked-layer updates now report success, alternate configurations use their correct one-based identifiers, and malformed layer hierarchies are traversed with bounded cycle protection
- Deleting an optional-content group removes its references from layer order, state, lock, radio, and automatic-state structures in every configuration
Version 3.422.0
Added
- PRC 3D annotation APIs embed models from files, streams, memory strings, DLL buffers, and ActiveX byte arrays with named default views and explicit activation policies
- PRC annotations support PDF/A-4e engineering documents while automatically promoting ordinary output to PDF 2.0
Changed
- PRC and U3D annotations now include a complete 3D view, activation and deactivation dictionaries, printable annotation flags, alternate names, and a normal appearance
- Legacy U3D embedding rejects PDF/A profiles that do not permit 3D annotations and accepts PDF/A-4e
Version 3.421.0
Added
- Document part APIs add PDF 2.0
/DPartRoot, hierarchical/DParts, page-range leaves, record levels, level names, and validated/DPMmetadata across Delphi, DLL, and ActiveX clients - Inspection and lifecycle APIs expose hierarchy validation, reachable part counts, page-to-part lookup, metadata round trips, and complete hierarchy removal
Changed
- Large child sets use bounded array blocks while validation checks parent links, cycles, uniform leaf depth, ordered complete page coverage, reverse page links, XML name tokens, and bounded metadata graphs
- Creating a document part hierarchy promotes output to PDF 2.0 and participates in loaded-document feature detection and save-version locking
Version 3.420.0
Added
DrawHTMLStoryadds high-level styled HTML flow through equal-width columns and automatically generated pages across Delphi, DLL, and ActiveX clients- Finite page limits return a reusable continuation string that preserves the active stylesheet cascade, nested style state, structured blocks, tables, links, font mappings, and image bindings
Changed
- Generated story pages inherit the effective dimensions of the selected start page and each column reuses cached measure-and-replay layout plans
- Story layout rejects invalid geometry, bounds columns and generated pages, and terminates when consecutive frames cannot make progress
Version 3.419.0
Added
TPDFlibPrinteradds a VCL component facade withBeginDoc,Canvas,NewPage,EndDoc, andAbortlifecycle methods for direct PDF creation- PDF printer jobs support configurable paper dimensions, portrait or landscape orientation, canvas DPI, vector import options, document titles, and optional direct file output
Changed
- Each component job owns an independent PDF document, commits the first and subsequent canvases with consistent page semantics, and retains completed output for further library processing
- The component never opens a print dialog or accesses the operating-system spooler, allowing existing VCL canvas drawing code to migrate without a physical printer dependency
Version 3.418.0
Added
RenderPagesToPrintStream,RenderPagesToPrintString,RenderPagesToPrintFile,RenderPagesToPrintData, andRenderPagesToPrintBufferadd driver-independent print output across Delphi, DLL, and ActiveX clients- Selected page ranges can be emitted as PostScript Level 3, single-page EPS, PCL 5c, or PWG Raster with optional monochrome, duplex, tumble, and PCL job framing controls
Changed
- PostScript and EPS preserve page vector content while PCL and PWG Raster use bounded row encoders for direct server and embedded-device delivery
- Print streams are generated without opening a printer, showing a print dialog, or submitting work to the operating-system spooler
Version 3.417.0
Added
ExportPageSVGandExportPageSVGToFileadd scalable page export across Delphi, DLL, and ActiveX clients- SVG output can independently include native painted paths, searchable text, embedded PNG images, clickable annotation links, and a transparent page background
Changed
- Page paths retain their transforms, fill and stroke appearance, opacity, line styles, even-odd rules, and effective clipping bounds without rasterising the complete page
- Each page is processed in bounded passes and produces a self-contained SVG document with no external image dependencies
Version 3.416.0
Added
DrawSVG,DrawSVGFromFile,GetSVGWidth, andGetSVGHeightadd native SVG vector placement and measurement across Delphi, DLL, and ActiveX clients- SVG drawing supports view boxes, aspect-ratio alignment, groups, definitions and reuse, transforms, clipping, simple CSS and inline styles, opacity, paths with elliptical arcs, and the standard rectangle, circle, ellipse, line, polyline, and polygon shapes
Changed
- SVG geometry is written as scalable PDF paths without raster image XObjects, and repeated measurement and drawing reuse the most recently parsed bounded SVG tree
- Untrusted SVG input is bounded by source size, element count, and nesting depth, performs no external resource access, and uses the first colour stop as a deterministic solid fallback for gradient paint servers
Version 3.415.0
Added
DrawFormula,GetFormulaWidth, andGetFormulaHeightadd nested mathematical layout across Delphi, DLL, and ActiveX clients- Formula markup supports stacked fractions, simultaneous superscripts and subscripts, square roots with optional indices, Greek letters, common mathematical symbols, escaped characters, text groups, and bounded nesting
Changed
- Formula text uses the selected font, text size, colour, shaping, and fallback chain while fraction and radical rules remain vector content
- Repeated measurement and drawing reuse the parsed and measured box tree while the document, measurement scale, and complete painter state remain unchanged
Version 3.414.0
Added
MarkdownToHTML,DrawMarkdownText,DrawMarkdownTextBox,GetMarkdownTextHeight,GetMarkdownTextWidth, andGetMarkdownTextLineCountadd direct Markdown conversion, measurement, drawing, and height-limited continuation across Delphi, DLL, and ActiveX clients- Markdown input supports ATX and setext headings, paragraphs, block quotations, ordered and unordered lists, pipe tables with alignment, fenced and indented code, emphasis, strong text, strikeout, links, images, automatic web links, escapes, and hard line breaks
Changed
- Repeated Markdown measurement and drawing reuse the converted HTML and the bounded HTML layout cache, while raw angle brackets remain escaped text
DrawMarkdownTextBoxreturns an opaque continuation token accepted by the same method so partially rendered inline state can continue on another page
Version 3.413.0
Changed
- HTML measurement and drawing now share bounded layout plans that cache parsing, CSS resolution, line and table geometry, images, styled backgrounds, and links
- Matching
GetHTMLTextHeight,GetHTMLTextWidth, orGetHTMLTextLineCountcalls can feedDrawHTMLTextwithout repeating HTML parsing or layout work
Fixed
- Measuring HTML with styled text backgrounds no longer writes rectangle operators into the selected page content stream
Version 3.412.0
Added
BeginDeferredPageLayer,EndDeferredPageLayer,ComposeDeferredPageLayers,CancelDeferredPageLayers, andGetDeferredPageLayerCountprovide deferred z-index composition across Delphi, DLL, and ActiveX clients- Negative layers render beneath existing page content, while zero and positive layers render above it with stable recording order for equal z-index values
Changed
- Deferred layers are retained as page-sized Form XObjects and compose through one placement operation per layer without parsing or replaying their drawing commands
Version 3.411.0
Added
SetPageHeaderFooterVariant,ApplyPageHeaderFooterSet, andClearPageHeaderFooterSetprovide reusable named running-header and footer templates with first-page, odd-page, even-page, and default variants- Header and footer variants can render plain text with the current font or rich HTML with automatic height measurement, per-page variable expansion, alignment, margins, and opacity across Delphi, DLL, and ActiveX clients
Changed
- Generated running headers and footers are pagination artifacts, preserve the caller's page and painter state, and support explicit blank variants that suppress fallback for title or section-opening pages
Version 3.410.0
Added
StartPageNumberChapter,AddPageNumberPlaceholder, andResolvePageNumberPlaceholdersprovide a two-pass workflow for final document and chapter page numbers inside ordinary body text- Pagination templates support physical page numbers, final document totals, chapter names, chapter-relative page numbers, and final chapter totals across Delphi, DLL, and ActiveX clients
Fixed
- Wide-string text boxes now pass their supplied text to the wrapping engine instead of producing an empty box
Version 3.409.0
Added
AutoFitTableColumnsassigns table column widths from styled cell content while honoring an exact table width and caller-defined per-column limits- Delphi, DLL, and ActiveX clients share the same automatic table sizing behavior, including merged-cell constraints
Changed
- Successful automatic sizing invalidates cached row measurements, while infeasible width constraints leave every existing column unchanged
Version 3.408.0
Added
DrawTextFlowColumnsflows a retained passage through one to 64 equal-width columns with configurable gutters and optional final-region balancing- DLL and ActiveX clients can now create, draw, measure, inspect, rewind, and release TextFlow handles through the complete public lifecycle
Changed
- Balanced columns use exact line counts when the remaining passage fits, while overflowing regions retain full column height for maximum page capacity
Version 3.407.0
Added
- HTML text rendering now supports embedded stylesheets, inline CSS, headings, structural blocks, tables with column spans, and document-bound images
SetHTMLImageandClearHTMLImagesexpose matching Delphi, DLL, and ActiveX controls for reusable HTML image sources
Changed
- HTML measurement and drawing now share resolved cascade and layout decisions, table rows continue atomically across text boxes, and continuation state preserves nested CSS formatting
Version 3.406.0
Added
- TextFlow now supports bounded language-aware automatic hyphenation for English, German, Dutch, French, Spanish, Italian, Portuguese, Russian, and Turkish, including language inheritance from the document Catalog
/Langvalue SetTextFlowLanguageandSetTextFlowHyphenationexpose matching Delphi, DLL, and ActiveX controls for language and minimum prefix or suffix lengths
Changed
- TextFlow line breaking now measures complete words, uses a bounded search only for oversized tokens, and renders discretionary soft or automatic hyphens only when the break is selected
Version 3.405.0
Added
- Automatic font fallback now resolves missing CJK, symbol, mathematics, complex-script, and emoji clusters through cached installed faces while preserving shaping and bidirectional run order
SetAutomaticFontFallback,AddFontFallback, and the fallback-chain inspection APIs expose matching Delphi, DLL, and ActiveX controls
Changed
- Text drawing and width measurement now share the same cluster-aware fallback decisions and lazily embed only fallback fonts selected for output
Version 3.404.0
Added
- Missing glyphs are now detected as Unicode scalars in plain and shaped text, retained in a bounded JSON report, and exposed through Delphi, DLL, and ActiveX callbacks
SetMissingGlyphPolicycan preserve compatible drop-and-report behavior or reject a text operation before content is written withLastErrorCode 521
Version 3.403.0
Added
GetAPIScopeReportJSONandClearAPIScopeReportexpose deterministic runtime and content-stream diagnostics through Delphi, DLL, and ActiveX APIs- Invalid path, graphics-state, page-update, marked-content, form, pattern, page, document, and output-finalization transitions now fail immediately with
LastErrorCode 117
Version 3.402.0
Added
AnalyzePageSkewJSON,DeskewPage, andDeskewPageRangedetect and correct scanned-page rotation through Delphi, DLL, and ActiveX APIs- Deskew analysis uses bounded adaptive-resolution rasters and coarse-to-fine line-profile scoring, while correction preserves original PDF content and offers an optional fill-page mode
Version 3.401.0
Added
DetectPageBarcodesJSONrecognizes one-dimensional and two-dimensional barcodes from a full PDF page or a bounded page region and returns text, symbology, orientation, validity, corner points, and bounds as deterministic JSON- Region scans render only the requested pixels, preserve the selected page, support format and decoder option masks, and expose matching Delphi, DLL, and ActiveX APIs
Version 3.400.0
Added
SaveDOCXToStreamandSaveDOCXToFileconvert PDF page ranges into editable WordprocessingML paragraphs, inferred headings, native bullet and numbered lists, detected tables, font styling, page breaks, and positioned PNG images- The deterministic DOCX package writer uses CRC-checked raw Deflate entries without Office automation, writes image data as each page is processed, preserves explicit page order, and restores the selected PDF page
Version 3.399.0
Added
ExportPageMarkdownandExportDocumentMarkdownconvert semantic page content into escaped Markdown paragraphs, inferred headings, ordered or unordered lists, and pipe tables with optional page markers and font stylingSaveMarkdownToStreamandSaveMarkdownToFilewrite UTF-8 one page at a time without buffering the complete document output, while matching DLL and ActiveX entry points expose string and file export workflows
Version 3.398.0
Added
ExportPageHTMLandExportDocumentHTMLcreate self-contained HTML5 with positioned text, embedded PNG images, URI links, and internal page anchors- Document export preserves explicit page-range order, restores the selected page, retains one page extraction model at a time, and exposes matching Delphi, DLL, and ActiveX APIs
Version 3.397.0
Added
ExtractStructuredPageandExtractStructuredDocumentturn page text into paragraph, line, span, table, row, and cell hierarchies and export the same model as JSON, semantic XHTML, or detected-table CSV- Document extraction retains one page hierarchy at a time, restores the selected page, and exposes matching Delphi, DLL, and ActiveX entry points
Version 3.396.0
Added
ApplyOCRTextLayeraccepts provider-neutral OCR JSON and appends confidence-filtered, bounding-box-fitted invisible text that makes scanned pages searchable without changing rendered pixelsOCRPage,OCRDocument, andOnOCRPageprovide a pluggable one-page-at-a-time OCR pipeline with bounded raster memory, while DLL and ActiveX callers can combine existing page rendering withApplyOCRTextLayer
Version 3.395.0
Added
AddImageFromFileandAddImageFromStreamnow accept WebP images; the library detects the RIFF/WEBP container and decodes through GDI+, which ships a built-in WebP codec on Windows 10 1809 and later
Version 3.394.0
Added
SetRenderTargetICClets a caller supply a target ICC profile so the renderer's ICC transforms map source colors through a CMYK proof profile instead of the default sRGB, enabling CMYK soft proofing and gamut preview
Version 3.393.0
Added
OptimizeImagesscans every embedded image, decodes it, re-encodes as JPEG at a caller-specified quality, and replaces the original stream in place only when the JPEG is strictly smaller — automatically shrinking scanned documents and uncompressed images while protecting images that would grow
Version 3.392.0
Added
GetImageInfoJSONscans every image XObject in the document and returns per-image metadata (object number, pixel dimensions, color space, bits per component, filter) as JSON without decoding any pixel data, so auditing image inventories stays O(image count) in memory rather than O(total image bytes)
Version 3.391.0
Added
- JPEG2000 (JPXDecode) images are now extracted with native byte passthrough when the extraction mode supports it, preserving the original compressed stream without decode-and-re-encode, matching the existing JPEG passthrough behavior
Version 3.390.0
Added
NewMultiStopAxialShaderandNewMultiStopRadialShadercreate gradients with any number of interior color stops in any PDF color space (DeviceRGB, DeviceCMYK, DeviceGray, ICCBased), using Type 3 stitching functions to chain one Type 2 exponential interpolation per segment- New
TPDFGradientStoprecord carries a position in[0,1]and per-component color values for each stop
Version 3.389.2
Changed
- Complex-text shaping now caches the Uniscribe SCRIPT_CACHE, HFONT and DC per font for the document lifetime, so the font's parsed cmap/GSUB/GPOS tables survive across
DrawShapedTextcalls instead of being re-created and freed every time
Version 3.389.1
Changed
- Float-to-string conversion in content-stream writing now uses an inline digit loop with a precomputed power-of-ten table instead of the generic
Power+IntToStr+Insertpath, significantly reducing CPU overhead for high-density graphics generation while producing byte-identical output
Version 3.389.0
Added
SetMemoryBudgetbounds the memory consumed by large documents by capping the decoded-stream size threshold and the compressed-object-stream cache, keeping peak memory within a caller-set budget
Changed
- The random-access reader's compressed object-stream cache now defaults to 50 entries instead of growing without limit, so touching many ObjStm streams no longer accumulates decoded content indefinitely
Version 3.388.1
Changed
- PDF name tokens parsed during document loading are now interned into a per-structure hash pool, so the millions of duplicate names in large documents share one refcounted buffer each instead of allocating fresh strings; dictionary key lookups short-circuit to pointer comparisons
Version 3.388.0
Added
- CFF, OpenType-CFF and CID-keyed fonts are now subsetted at save time through the same
CreateFontPackageservice TrueType subsetting uses, embedding only the glyphs the content stream actually drew and significantly shrinking CJK and OTF documents - Subsetted CIDFontType0 outputs now carry a
/CIDSetstream declaring which CIDs are embedded, satisfying PDF/A rule 00032 and conforming reader expectations
Version 3.387.0
Added
SetRenderBandingrenders a page one horizontal band at a time into a short bitmap, compositing the bands into a full-size output, so high-DPI and large-format pages keep a bounded peak memory instead of allocating one giant bitmapGetRenderBandHeightreports the active band height, or 0 when banding is disabled- New Delphi, DLL, and ActiveX banded-rendering APIs expose the workflow across every public surface
Version 3.386.0
Added
SetDisplayListCachingrecords a page's content stream once into a replayable display list, so later renders at any zoom or DPI skip re-tokenizing; Form XObjects and Type 3 glyph procedures cache one list eachGetDisplayListCacheInforeports whether caching is on plus the entry count and hit/miss counters as JSON, andClearDisplayListCachedrops the recordings and reclaims their memory- New Delphi, DLL, and ActiveX display-list APIs expose the workflow across every public surface
Version 3.385.0
Added
StartRenderPageJobrenders a page on a background task through an isolated instance, so a large page can no longer block the host thread while it rendersPauseRenderJob,ResumeRenderJobandCancelRenderJobinterrupt a single in-flight page at content-stream operator boundaries via a cooperative cancel flag and pause gate threaded into the rendererWaitForRenderJob,GetRenderJobStateandGetRenderJobResultreport job progress and outcome through theRENDER_JOB_STATE_*codes- New Delphi, DLL, and ActiveX render-job APIs expose the workflow across every public surface
Version 3.384.0
Added
DAOpenFromURLopens a remote PDF over HTTP using byte-range requests, fetching only the objects the reader actually touches and prefetching the first-page section of linearized documents so page 1 renders firstGetLinearizedURLAccessPlanprobes a remote URL with a single small range request and returns a JSON report of the total length, byte-range support, linearization, page count, first-page object and section end, hint stream span, and the merged list of byte ranges page 1 requires- New
PDF_NET_OPT_NO_WARMINGoption andPDFLIB_ERROR_NET_OPEN,PDFLIB_ERROR_NET_RANGE_UNSUPPORTED, andPDFLIB_ERROR_NET_HTTPerror codes surface network reading across Delphi, DLL, and ActiveX
Version 3.383.0
Added
SaveQDFToFileandConvertFileToQDFcreate human-editable diagnostic PDFs with readable object formatting, original object identity comments, expanded common content streams, and indirect repairable stream lengthsRepairQDFFilerecalculates edited stream lengths and rebuilds cross-reference data, trailers, andstartxref, including in-place repair- New Delphi, DLL, and ActiveX QDF APIs and the
PDF_QDF_OMIT_ORIGINAL_OBJECT_IDSoption expose the workflow across every public surface
Version 3.382.0
Added
PDF_LINEARIZE_OBJECT_STREAMSenables bounded object stream packing and a compressed main xref stream while retaining directly readable first-page cross-reference data
Changed
SaveToFileOptionsnow preserves object stream packing whenLinearizeandPackObjectStreamsare enabled together
Fixed
LinearizeFilenow supports identical input and output paths without truncating source bytes before the linearization pass reads them
Version 3.381.0
Added
ValidateLinearizationFileandGetLinearizationValidationReportindependently audit Fast Web View dictionaries, hint ranges and bit tables, first-page dependencies and byte boundaries, page counts, and the main cross-reference entry
Fixed
- Linearized output now writes deterministic MSB-first page-offset and shared-object hint tables with byte-aligned vectors, accurate page lengths, and hint-relative offsets
- Generated hint tables no longer contain random bit widths, little-endian fields, incomplete shared-group rows, or placeholder content offsets that could make conforming readers reject Fast Web View data
Version 3.380.0
Added
- Large Flate streams can now be compressed and decompressed through bounded chunks, including direct streaming extraction through
GetEmbeddedFileContentToStreamandGetEmbeddedFileContentToFile
Changed
- Saving large RC4, AES-CBC, and AES-GCM encrypted streams now writes ciphertext directly to the destination with exact precomputed lengths instead of materializing and then decrypting full temporary copies
- Large embedded-file imports compress incrementally into their stored stream and repeated encrypted saves preserve the in-memory source bytes and stream metadata
Version 3.379.0
Added
StartEditJournal, explicit transaction boundaries, rollback, undo, redo, history reset, status queries, and crash recovery are available to Delphi, DLL, and ActiveX callers- Persistent journals append independently checksummed PDF state and cursor records, flush complete records to storage, and recover the last complete commit when a trailing write is incomplete or corrupt
Changed
- Undo, redo, rollback, and recovery preserve the selected document handle while invalidating transient handles whose underlying document objects were replaced
- Undo memory is bounded by the configured step count, snapshots are serialized only at transaction boundaries, and document passwords are never written to recovery journals
Version 3.378.0
Added
ConvertTextToPathsconverts outline-font text and Type 3 glyph programs into reusable vector Form XObjects across selected pages and nested Forms- Delphi, DLL, and ActiveX callers can select recursive Form conversion and automatic cleanup of source font resources
Changed
- Converted content retains text positioning, spacing, writing mode, transformations, colours, and stroke settings while removing the original text-showing operators
- Text clipping rendering modes and ambiguous shared resource scopes are rejected before any document object is modified
Version 3.377.0
Added
CopyPageRangesExacceptsPDF_COPY_PAGE_SMART_RESOURCESto reuse equivalent fonts, images, colour spaces, patterns, shadings, and graphics states already present in the target documentPDF_COPY_PAGE_KEEP_ORDERnames the existing ordered duplicate-page option and can be combined with smart resource copying
Changed
- Smart page copying normalises object numbers, dictionary key order, numeric spelling, and stream lengths before hashing, confirms every match structurally, and skips cyclic or identity-sensitive graphs
CollateDocumentsExnow applies semantic resource reuse across its source documents without first allocating duplicate resource graphs
Version 3.376.0
Added
TrimPageContentToCropBoxremoves complete top-level text runs, painted paths, image placements, and Form XObject invocations that lie fully outside a page CropBoxTPDFContentProgram.TraceGraphicsStatePairscaptures before-and-after instruction states in one replay while continuing a caller-owned tracker across content layers- Delphi, DLL, and ActiveX callers can apply signed margins while trimming page bleed and reducing retained content
Changed
- CropBox trimming preserves intersecting or unresolved objects, clipping paths, text clipping modes, and shared Form internals while maintaining relative text advances after removed strings
Version 3.375.0
Added
TPDFStructureexposesDecodeMaxDepth,LastDecodeStatus, andLastDecodePositionfor bounded low-level object parsing and precise limit diagnostics
Changed
- PDF arrays and dictionaries now parse through an explicit bounded state stack, including nested operands in page content streams
Security
- Untrusted direct objects deeper than the default 256-container limit are rejected before they can exhaust the thread stack
Version 3.374.0
Added
AddType3Fontcreates programmable Type 3 fonts with caller-defined matrices and font boundsAddType3Glyphwrites byte-coded glyph graphics programs with automatic metrics, encoding, widths, and Unicode extraction mapsAddType3FontResourceexposes fonts, images, graphics states, shadings, and other indirect resources to glyph programs- Delphi, DLL, and ActiveX callers can create Type 3 symbol, stamp, and special-purpose fonts without installing or embedding an external font program
Changed
- Type 3 glyph updates rebuild compact derived font tables in place while retaining the font handle used by existing page resources
Version 3.373.0
Added
- Structure-tree cursors navigate parents, children, and siblings while retaining element identity across repairs and reordering
ReparentStructTreeCursormoves or reorders structure elements and rejects self-parenting or descendant cyclesNormalizeStructTreecanonicalizes child collections, repairs parent links, promotes direct elements, and removes invalid, duplicate, or cyclic edges
Changed
- Structure-tree repair preserves marked-content ownership and parent-tree mappings while making hierarchy edits safe for subsequent saves
Version 3.372.0
Added
EnumeratePageElementsreturns stable short-lived handles for editable text, image, and path contentDeletePageElementremoves an enumerated object while preserving later relative text positioningTransformPageElementwrites an affine matrix around the selected object without changing unrelated content
Changed
- Editable element handles validate the original content fingerprint and reject stale or ambiguous mutations
Version 3.371.0
Added
ExportObjectJSONstreams the complete trailer and indirect object graph to deterministic, reversible typed JSONImportObjectJSONvalidates and merges object graphs or replaces the complete indirect object setGetObjectJSONandSetObjectJSONexpose atomic per-object inspection and updates through Delphi, DLL, and ActiveX
Changed
- Object graph JSON preserves binary names, dictionary keys, strings, streams, reference generations, scalar types, and object-number ordering without ambiguous JSON coercions
Version 3.370.0
Added
- A compiled Arlington TSV model loader provides stable reusable handles plus definition and rule counts
- Model-driven syntax validation checks object keys, required entries, types, PDF version availability, direct and indirect references, allowed values, and linked object graphs
- Delphi, DLL, and ActiveX APIs validate files or existing shared validation pipelines and return structured diagnostic lists
Changed
- Syntax validation reuses shared parse and object caches, selects ambiguous links by object discriminators, and suppresses repeated object-definition visits
Version 3.369.0
Added
- Reusable validation pipelines open and parse a PDF once, then run PDF/A and PDF/UA tasks or build combined reports against the shared reader and object cache
- Delphi, DLL, and ActiveX APIs expose pipeline creation, task execution, report generation, parse-count inspection, and explicit release
Changed
CreatePreflightReportandCreateValidationReportshare one parse and lazy object cache when multiple compliance checks are selected
Version 3.368.0
Added
AddStructureNamespaceregisters PDF 2.0 structure namespaces and writes shared/Namespacedictionaries throughStructTreeRoot/NamespacesAddRoleMapNSmaps custom structure types within one namespace or across registered namespaces- Default and per-element namespace selectors, namespace queries, DLL exports, and ActiveX methods expose the complete workflow
Changed
- PDF/UA-2 and WTPDF accessibility modes automatically assign the PDF 2.0 standard structure namespace to existing and future unassigned structure elements
GetStructTreeItemTextresolves/RoleMapNSchains and returns the element namespace URI through InfoID 9
Version 3.367.0
Added
SetPDFUA2Modeenables PDF/UA-2 metadata, PDF 2.0 versioning, document language, marked-content safeguards, and title display preferencesSetWTPDFModedeclares the WTPDF 1.0 accessibility level, reuse level, or both while preserving unrelated PDF Declarations- Delphi, DLL, and ActiveX getters expose the active PDF/UA part and WTPDF declaration mask
Changed
- PDF/UA diagnostics recognise part 2, require
pdfuaid:rev=2024, and enforce the PDF 2.0 minimum version
Version 3.366.0
Added
SetCryptFilterConfigurationindependently selects encryption for PDF strings, ordinary streams, and embedded-file streams through/StrF,/StmF, and/EFF- Delphi, DLL, and ActiveX getters expose each pending encryption target while the established embedded-files-only setting remains compatible
Changed
- AES password, public-key, and fingerprint encryption use one crypt-filter policy, reject configurations with no protected target, and prevent selective policies from being applied to RC4 handlers
Fixed
- Encryption fingerprints now restore their complete encryption record and save through the normal object writer without truncating the fingerprint prefix or encrypting object content twice
Version 3.365.0
Added
- PDF 2.0 unencrypted wrappers can carry a complete encrypted PDF as the hidden initial collection document with standard encrypted-payload metadata
- Delphi, DLL, and ActiveX APIs create, identify, inspect, and extract encrypted payloads from file, binary string, stream, or byte-array data
Changed
- Wrapper creation prevents outer encryption and PDF MAC, validates handler names, avoids source-path disclosure, and preserves payload bytes exactly
Version 3.364.0
Added
TPDFlibEUTSLTrustSourceverifies EU LOTL and national TSL XML signatures, exposes trusted-service snapshots, and supplies time-aware CA and TSA anchorsTPDFlibSignatureVerifieraccepts external trust sources and reports qualified certificate, electronic signature, electronic seal, and QSCD status with service provenance
Changed
- Trusted-list loading fails closed on unpinned signers, detached or ambiguous signatures, weak algorithms, digest changes, territory mismatches, stale lists, malformed criteria, and unbounded network or XML input
- Full TSL refreshes are transactional, while certificate-chain engines combine manual and source anchors and reuse them by trusted-list revision and verification time
Version 3.363.0
Added
TPDFlibPKCS11Clientloads PKCS #11 2.x and 3.x modules, enumerates tokens, authenticates users, pairs certificates and private keys, and signs PDF digests without CSP or KSP registration- Token, slot, mechanism, function-table, and callback types support direct module loading as well as application-managed function lists
Changed
- RSA signing constructs the required DER
DigestInfobefore rawCKM_RSA_PKCS, while ECDSA signing converts token P1363 output to DER when requested - Shared module lifetimes, persistent sessions, protected authentication paths, per-operation authentication, bounded hot-plug retries, and pre-operation session recovery improve HSM reliability and throughput
Version 3.362.0
Added
TPDFlibCSCClientdiscovers remote signing credentials, obtains hash-bound or prefetched signature activation data, and submits single or batched digest signatures through the CSC API- The client plugs directly into
OnExternalDigestSign, so remote RSA and DER ECDSA signatures reuse the existing CMS construction, signature sizing, and public-key verification path
Changed
- The built-in HTTP transport accepts caller-supplied request headers for OAuth bearer authentication while retaining response-size and phase timeout limits
- Credential, authorization, and signature responses now reject duplicate or malformed JSON fields, invalid X.509 or Base64 data, unsupported algorithms, inconsistent batch sizes, stale activation data, and SCAL hash-binding violations
Version 3.361.0
Added
VerifyAdESHistoricalandVerifyAdESHistoricalByNameautomatically derive trusted historical control times from signature timestamps and covering document timestampsTPDFlibAdESHistoricalValidationReportexposes requested and effective chain results, proof source and time, archive coverage, timestamp counts, and failure-specific status
Changed
- Historical revocation validation fails closed unless a trusted whole-document timestamp seals the current DSS and VRI evidence
- Certificate and OCSP validation times now convert to Windows file time with exact integer millisecond arithmetic, avoiding boundary drift at certificate validity transitions
Version 3.360.0
Added
SetSignatureFieldSeedValue,AddSignatureFieldSeedCertificate, andClearSignatureFieldSeedValuecreate and manage standard/SVconstraints for unsigned signature fieldsGetSignProcessSeedValueErrorreports the exact required filter, SubFilter, digest, reason, revocation-information, certificate, version, or unsupported constraint that prevented signing
Changed
- Signing now enforces required signature field seed values after opening the selected identity and before changing the field or output destination
- Unsupported required seed-value constraints fail closed, while semicolon-delimited allowed values and exact DER signer certificates are enforced consistently across Delphi, DLL, and ActiveX APIs
Version 3.359.0
Added
AddSignProcessRevocationCRLandAddSignProcessRevocationOCSPembed validation material in the signedadbe-revocationInfoArchivalattribute for traditionaladbe.pkcs7.detachedsignaturesClearSignProcessRevocationInforemoves all archival revocation material from a signing process before the signature is produced
Changed
- Bare
BasicOCSPResponsevalues are normalized to successfulOCSPResponsestructures, and byte-identical CRLs and normalized OCSP responses are deduplicated - Adobe archival revocation attributes are supported by both the Windows CryptoAPI and modern RSA, ECDSA, Ed25519, CNG, and external-digest signing paths
Version 3.358.0
Added
SetSignProcessContentsEstimatesizes signature placeholders from the base CMS, cached certificate chain, planned CRL and OCSP material, an expected RFC 3161 token, and a configurable safety marginGetSignProcessEstimatedContentsBytesreports the aligned raw-byte capacity selected for the most recent signature attempt
Changed
- New sign processes automatically discover additional certificate-chain space from local caches and apply a 15 percent margin before aligning
/Contentscapacity to 256 bytes - CNG, HSM, and external-digest signing now derive RSA, ECDSA, and Ed25519 signature sizes from the public certificate instead of reserving a fixed 16 KiB provider payload
- Automatic estimation performs no network retrieval and does not invoke a private key or external signing callback
Version 3.357.0
Added
SetSignProcessAppearanceTemplatebuilds reusable visible signature layouts from signer, reason, location, contact, date, field, page, and application-defined placeholdersSetSignProcessAppearanceVariableadds case-insensitive custom values to an individual signing process and can remove them without recreating the process
Changed
- Visible signature templates support configurable signing-time formats and escaped literal braces while preserving the existing image and document-time-stamp precedence rules
- Template expansion uses bounded input sizes and an amortised linear output buffer so large reusable layouts do not incur repeated whole-string copies
Version 3.356.0
Added
TPDFlibSignatureVerifiercan add DER or file-based X.509 trust anchors, report their duplicate-free count, and clear them without changing the Windows certificate stores
Changed
- A nonempty custom trust-anchor set now drives both signer-certificate and RFC 3161 timestamp validation through an exclusive in-memory root engine
- Clearing the custom set restores the default system trust engine for subsequent checks
Security
- Custom trust validation excludes the Windows
RootandTrustedPeoplestores, while embedded PDF and DSS certificates remain untrusted chain-building material
Version 3.355.0
Added
SetSignProcessExternalDigestSignerand its file variant build detached CMS signatures around RSA or ECDSA results supplied by an external signerOnExternalDigestSign,DLSetExternalDigestSignCallback, andSetExternalDigestSignCallbackprovide synchronous Delphi, DLL, and ActiveX callback surfaces for HSM and remote-signing integrations- External ECDSA callbacks can return either DER signatures or fixed-width P1363
r || svalues
Changed
- External signers receive only the final digest of the CMS authenticated attributes and are called once after the PDF byte ranges and attributes are complete
- Placeholder sizing uses the configured signature reserve without invoking the external signer
- Empty or oversized non-passthrough signatures now fail the sign process instead of writing an empty or truncated
/Contentsvalue
Security
- Every externally returned signature is verified against the configured X.509 certificate before it can be written into the PDF
Version 3.354.0
Added
SetSignProcessCNGKeyandSetSignProcessCNGKeyFromFilesign with named NCrypt keys from software, TPM, hardware-token, or cloud key storage providers without exporting private-key materialSetSignProcessCNGKeyByHandleaccepts a caller-ownedNCRYPT_KEY_HANDLEfor application-managed key discovery and policy workflowsSetSignProcessPrivateKeyUIcontrols whether certificate-bound providers may display PIN, consent, token, or cloud-approval interfaces
Changed
- Named and borrowed CNG keys use one direct NCrypt signing path for RSA and ECDSA detached signatures across SHA-1, SHA-2, and SHA-3 digest suites
- CNG signature placeholder sizing no longer performs a preliminary private-key operation, avoiding duplicate token prompts, remote approvals, audit entries, or provider charges
- Silent signing remains the default, while interactive mode removes silent acquisition and signing flags so external providers can complete their authentication flow
Security
- Explicit CNG identities are checked for certificate-compatible algorithm groups and the completed CMS signature is verified against the supplied certificate before it is accepted
Version 3.353.0
Added
- Detached PDF signatures can be generated and verified with ECDSA P-256, P-384, and P-521 certificates using SHA-1, SHA-2, or SHA-3 digest suites
- Ed25519 signing accepts a DER X.509 certificate with a raw seed or unencrypted PKCS #8 private key through Delphi, DLL, and ActiveX interfaces
SetSignProcessDigestAlgorithmaccepts SHA3-256, SHA3-384, and SHA3-512 as algorithm codes 5, 6, and 7
Changed
- Modern detached signatures use a canonical CMS builder with standards-aligned digest and signature algorithm identifiers instead of relying on provider-selected identifiers
- Modern-signature verification validates the detached content digest, canonical signed attributes, embedded signer identity, and public-key signature without requiring legacy CryptoAPI algorithm support
Security
- Ed25519 verification rejects non-canonical scalars, non-canonical point encodings, small-order keys, mismatched certificate identities, and modified signed attributes
Version 3.352.0
Added
EncryptPublicKeycreates AES-128 or AES-256Adobe.PubSecdocuments for multiple X.509 certificate recipients without a shared password- Recipients can be loaded from DER, PEM, PKCS #12 PFX, current-user certificate stores, or local-machine certificate stores and can receive independent PDF permission masks
- PFX and certificate-store credentials open public-key encrypted documents through the normal file, stream, and string loading APIs
- Recipient counts, permission-group counts, authentication status, and credential lifecycle controls are available through Delphi, DLL, and ActiveX interfaces
Fixed
- ActiveX type-library generation now retains the existing PDF/UA, tagged-PDF, artifact, document-language, and associated-file methods while appending the public-key APIs without moving established binary interface slots
DecryptFilereaches the direct AES-256 rewrite path without a full-reader preflight for ordinary encrypted documents while still validating PDF MAC signals before protected content is rewritten
Security
- CMS EnvelopedData is validated with bounded DER parsing, recipient permission groups are authenticated with their encrypted seed payload, and ambiguous or malformed envelopes are rejected with dedicated error codes
- Recipients sharing the same permissions are grouped into one envelope to reduce output size and key-derivation work while retaining certificate-specific key transport
Version 3.351.0
Added
SetPDFMACEnabledcreates standalone PDF MAC integrity tokens for AES-256 revision 6 and AES-GCM encrypted documents, including the required key derivation salt, permission signal, byte ranges, and CMS authentication dataGetPDFMACStatusandValidatePDFMACexpose validation results through Delphi, DLL, and ActiveX interfaces
Security
- Protected documents are verified automatically after password authentication and before pages are exposed; missing tokens, malformed DER, unsupported algorithms, incomplete coverage, key unwrap failures, and altered authentication values are rejected with dedicated error codes
EncryptFile,EncryptFileEx, andDecryptFilenow preserve PDF MAC guarantees across file-level encryption and validated decryption workflows
Version 3.350.0
Added
Encrypt,EncryptFile, andEncryptFileExaccept strength 5 to create PDF 2.0 documents with 256-bit AES-GCM authenticated encryption, revision 7 security dictionaries, and the ISO TS 32003 extension declaration- The reader and file decryption paths open AES-GCM documents and expose the new mode through
EncryptionAlgorithm,GetEncryptionLevel, andSecurityInfo
Security
- AES-GCM authentication failures now reject altered strings or streams and cause
DecryptFileto remove any partial output
Version 3.349.0
Changed
LinearizeFilenow orders large object graphs with a stableO(n log n)merge pass and traverses indirect dependencies with an explicit work stack, avoiding quadratic ordering work and one call frame per reachable object
Fixed
- The first-page section now includes annotation dictionaries and their reachable appearances, actions, and resources, allowing Fast Web View clients to display first-page annotations without fetching objects from beyond the first-page boundary
Version 3.348.2
Fixed
- The library now compiles without warnings or hints on the Win64 build. The FNV-1a string-hash initialiser exceeded
Integerrange, so its accumulator moved toCardinalwith a byte-for-byte identical masked result, and ten assignments the compiler proved were never read — plus one unused variable — were removed. No runtime behaviour changed
Version 3.348.1
Fixed
- The viewer control compiles again on Delphi XE5 and XE6. Its per-monitor DPI handler used
WM_DPICHANGED, a message constantWinapi.Messagesdid not carry before XE7, so the trial build matrix — which still targets the older toolchains — halted atPDFlibViewer.paswith an undeclared-identifier error. The constant is now declared locally only on compilers that do not already provide it, leaving the runtime DPI handling unchanged
Version 3.348.0
Added
ConvertToPDFAturns an ordinary document into an archival one in a single call: it removes what the chosen part forbids, adds what the part requires, states the part the document claims, and then checks the result- The claim is only reported as met when the check passes. A file that says it is archival and is not passes through the very systems that would otherwise have caught it, so the verdict comes from the check rather than from the attempt
GetPDFAConversionReportlists what was done and, where the document still falls short, what stands in the way
Version 3.347.1
Fixed
SanitizeDocumentnow really removes the JavaScript it reports removing. It asked the package list for an entry before the first one, got nothing, and stopped before removing a single script — so a document that had been sanitised still ran its scripts when opened- Removing the last script now also removes the empty name tree it leaves behind, which otherwise still told a reader the document carried scripts
Version 3.347.0
Added
RepairDocumentMetadatabrings the two places a PDF says who wrote it into agreement. A validator reads both the document information and the XMP packet and rejects a file where they disagree, and most files that fail on this point simply never had the XMP half written- Where only one half carries a value, the other is filled from it, so nothing already recorded is thrown away
- A document set to a PDF/A mode gets its standards identification restored if it was lost, which happens whenever a caller supplies a packet of its own. Without it a validator reads the file as an ordinary PDF and reports every rule of the claimed part as unmet
- Returns how many entries were repaired
Version 3.346.0
Added
RecolorDocumentnow converts the gradients a document paints. The gradient's colour space and the stops behind it move together, so a converted gradient reads as one colour rather than as a channel mistaken for a grey level- Gradients written inside the pattern that paints them, or inside a page's shading resources, are found as well as those given an object of their own
Changed
- A gradient built from a sampled or PostScript function is left as it stands, and so are the mesh types, which carry their colours in a stream rather than in a function. Rewriting those is a different operation from converting a colour
Version 3.345.0
Added
RecolorDocumentnow converts an indexed image by converting its colour table, leaving every sample holding the index it already held. Such an image converts whatever its samples are packed or compressed as, including the palette images that a screenshot or a chart is usually saved with
Version 3.344.0
Added
RecolorDocumentnow converts the images a page draws as well as the colours it sets, so a document turned grey no longer shows colour pictures on grey pages- Soft masks and stencil masks are left alone. Both are read as coverage rather than as colour, and converting one would leave the page showing the mask as a picture
Changed
- An image is converted when it carries eight bits a component, a device colour space, and either no compression or plain Flate. A JPEG or fax image would have to be re-encoded, which is a different operation from converting its colours, so those keep their own bytes
Version 3.343.0
Added
- Move a whole document, or a single page, into one colour space.
RecolorDocumentandRecolorPagetake 1 for grey, 2 for RGB and 3 for CMYK, and return how many colours were converted - Useful before sending work to a press that expects one space, or for turning a colour document into a grey one without redrawing it. Geometry, text and images are left exactly as they were; only the colour operators change
- A colour already set in the target space is left alone, so a page whose colours need no change keeps its original bytes
- Colours set through an ICCBased, Separation, Indexed or Pattern space are left as they stand. Converting those without reading their profile would change how the page looks rather than preserve it
Version 3.342.0
Added
- PDF/A-4 archiving, the part of the standard built on PDF 2.0.
SetPDFAModetakes three new modes: 9 for PDF/A-4, 10 for PDF/A-4e, which additionally permits 3D and rich media, and 11 for PDF/A-4f, which permits an embedded file of any format - A part 4 document is identified the way the standard asks: by part number and the year its part was published, with no conformance letter for plain PDF/A-4 and the letter E or F for the two extensions
- Every embedded file in a part 4 document states how it relates to the document, as parts 3 and 4 both require
Changed
- The PDF/A check recognises part 4, judges its files against PDF 2.0 rather than 1.7, and reports a part 4 file that does not state its revision year
Version 3.341.2
Fixed
- PDF/A-3 and PDF/UA documents now state how each embedded file relates to the document. The relationship was written only for attachments after the first and never for the last, so a document with a single attachment — the ordinary case — carried none at all and failed validation on that point
- The PDF/UA report no longer overlooks the last embedded file when checking that the relationship is present
Version 3.341.1
Fixed
- The PDF/A check now reads the standards mark a file carries. It could not, so every file was judged against part 1 whatever it declared: a valid PDF/A-2 or PDF/A-3 document was reported as carrying no mark and as being of too high a version, which is the opposite of the truth
- The mark is read whether the producer wrote it as an element or as an attribute. Both are ordinary XMP, so accepting only one form left files from other producers looking unmarked
Version 3.341.0
Fixed
- Vertical text now uses the vertical form of each character. Brackets, the long vowel mark and the small kana are drawn differently when text runs down the page, and a font names those forms itself; until now the horizontal ones were drawn, which left brackets lying across the column instead of standing along it
- The forms are taken from the font's own vertical feature, so each face supplies what its designer drew rather than a substitution guessed from the character
GetVerticalTextHeightmeasures the forms that will be drawn, so a column whose characters change shape is still measured correctly- A face naming no vertical forms is drawn exactly as before
Version 3.340.0
Added
- Vertical writing, for Japanese and Chinese text set down the page.
SetVerticalWritingModeturns it on and ordinaryDrawTextcalls then run downwards;GetVerticalWritingModereports it. Setting text vertically previously meant placing every character by hand - Text drawn this way goes through a Type0 font in vertical writing mode carrying the face's own vertical metrics, so a reader advances each character by the distance its designer intended rather than by a uniform step, and copying the text out returns the original characters
- A face that carries no vertical metrics of its own advances one em per character, which is what a reader would do with the default
GetVerticalTextHeightreports how far a string will run down the page before it is drawn, andDrawVerticalTextdraws one run vertically without changing the mode- The horizontal and vertical forms of one face are kept apart, so a page can carry both without either disturbing the other
Version 3.339.0
Added
- Automatic tagging now covers tables. With the new table bit on,
DrawTableRowscarries the table, its rows and its cells into the structure tree, so a reader can say which column a value sits in instead of reading the whole table out as a run of unrelated text SetTableHeaderRowCountnames how many leading rows are headers, andGetTableHeaderRowCountreports it. Those rows are written as header cells carrying a column scope, which is what lets a reader name the heading of the value it is on- Header rows named this way stay where they are. Repeating them at the top of each page remains a layout decision made with
DrawTaggedTableRows
Changed
AUTOTAG_DEFAULTnow covers tables as well as text, page furniture and figures. Passing the mode as a number keeps whatever it always meant
Version 3.338.0
Added
- Automatic tagging now covers images. With the new figure bit on, a drawn image becomes a figure in the structure tree, so a reader reaches it instead of passing over it in silence
RegisterFiguregives the description the next image carries. A reader reads that description in place of the picture, which is the whole of what a non-sighted reader gets from itRegisterDecorationsays the next image is a rule, border or background that carries no meaning, and it is drawn inside a layout artifact so a reader skips it rather than announcing an image that says nothing- Both settings are spent on one image, so a later one never inherits a description meant for an earlier one
Changed
AUTOTAG_DEFAULTnow covers figures as well as text and page furniture, so asking for the default asks for all three. Passing the mode as a number keeps whatever it always meant- A heading registered with
RegisterHeadingnow waits for the text it names. An image drawn in between becomes a figure and leaves the heading for the text that follows, rather than taking the heading level itself
Version 3.337.1
Fixed
- A document built with
BeginTagalone is now marked as tagged. Until now such a file carried a complete structure tree that no reader looked at, because a reader takes a document to be untagged unless the catalog says otherwise (ISO 32000-1 §14.7.1); assistive technology announced the page as if it had no structure at all - The mark is added only when a structure tree is actually written, so a document with no tags is still reported as untagged, and a
SetMarkInfosetting made by the caller is left as it stands
Version 3.337.0
Added
- Automatic structure tagging.
SetAutoTagModeturns on a mode in which ordinary drawing carries its own structure: text becomes a paragraph, text drawn straight afterRegisterHeadingbecomes a heading of that level, and running headers and footers become artifacts a reader skips. Producing an accessible document previously meant wrapping every drawing call inBeginTagandEndTagby hand - Turning the mode on also marks the document as tagged, which a reader needs before it will treat the structure as present at all
- Automatic tagging stands aside inside a tag opened by hand, so part of a document can be described by the caller and the rest left to the library, without the two nesting into each other
- Nothing is tagged inside an artifact, and empty text opens no element, so neither can produce a structure element that a reader would announce as blank
Version 3.336.0
Added
- Text flow, for running one passage across several boxes, columns or pages.
NewTextFlowtakes the text andDrawTextFlowfills a box with as much as fits, leaving the flow on the first word it could not take, so the next box carries on exactly there MeasureTextFlowreports how many lines the remaining text needs at a given width without drawing anything, so a layout can be sized before it is committed to- A box with no room for a line takes nothing and leaves the flow untouched, so offering one never loses text
SetTextFlowMinLineskeeps a set number of lines together: a box that could only take fewer takes none and pushes them on, rather than stranding a single line at the foot of a columnGetTextFlowRemaining,TextFlowFinishedandRewindTextFlowreport and reset progress; drawing a box previously dropped whatever overflowed with no way to learn what was lost
Version 3.335.0
Added
- Automatic table of contents. Headings are registered with
RegisterHeadingwhile the body is written, andDrawTOClays them out afterwards: each entry indented by its level, a run of dots reaching across to a right-aligned page number, and the whole row linking to the heading - A heading remembers where it points rather than which page number it had, so inserting the contents page in front of the finished body - which renumbers every page it refers to - leaves every entry and every link correct
MeasureTOCreports how many pages the list needs before anything is drawn, andDrawTOCreturns how many entries it placed, so a list longer than one page is drawn by calling again with the count already placedPopulateOutlineFromHeadingsturns the same headings into document bookmarks, nested by level- A title too wide for the space its page number leaves is shortened a character at a time and given an ellipsis, rather than being allowed to run under the number
Version 3.334.1
Fixed
- Selecting a page after inserting pages ahead of it reached the page that held that number before the insert, so drawing front matter into an existing document could write onto the wrong body page. Page selection now follows the new numbering
Version 3.334.0
Added
GetSignatureModificationVerdictanswers the question a reader actually has about a signed document: were the updates appended after this signature ones its certification level allows? A certifying signature carries a permission level, and the verdict checks every later revision against it, so adding validation material reads as permitted while a page rewrite does notGetSignatureEffectiveMDPLevelreports the level in force andGetSignatureModificationDetailnames the revision and the kind of change behind the answer- The verdict distinguishes "nothing was appended", "only permitted changes", "something not permitted", "could not be determined" and "the signature does not end on a revision boundary". The last of these means bytes sit inside the range the signature claims to cover
- Doubt is never reported as approval: a certification whose structure could not be verified, a field lock whose affected fields cannot be traced, a revision holding something unreadable, or bytes past the signed range that form no recognisable revision all report as undetermined rather than as permitted
Changed
- An indirect array that nothing accounts for is now reported as undetermined rather than as bookkeeping. A page's annotation or content list is an array, and rewriting one changes what the document shows while leaving every dictionary untouched
Version 3.333.0
Added
- Incremental-revision inspection. A signature covers the bytes of the revision it was written into, and everything appended afterwards is a separate update whose contents decide whether the signature still stands for the document as it is now.
GetDocumentRevisionCount,GetDocumentRevisionStartandGetDocumentRevisionEndlay out those revisions, andGetSignatureRevisionIndexsays which one a signature ends at GetDocumentRevisionKindreports what an update did, as the most far-reaching of the objects it touched: bookkeeping, validation material, a document time stamp, a signature, a form field, an annotation, or document content. Adding validation material for long-term validation therefore no longer looks like editing the documentGetDocumentRevisionChangeslists every object an update added, changed or deleted, together with what each one is and, for a changed dictionary, which keys actually differGetDocumentRevisionsCompletereports whether the whole history was recoverable. A chain that is broken, cyclic or longer than the reader will follow leaves the oldest updates unseen, and the counts are then a lower bound rather than an answer- An object whose earlier version cannot be read, or whose stream body was never compared, is reported as undetermined rather than as harmless: an update that rewrites a page while leaving its dictionary untouched is not mistaken for a repack
Version 3.332.0
Added
ApplyPAdESLongTermValidationpromotes an already-signed PDF to PAdES-B-LT in one call. It builds the signer certificate path from the signature itself, gathers OCSP and CRL material for each link through the addresses the certificates name, and writes the certificates and revocation data into the document security store with a VRI entry for the signature, in a single incremental update.ApplyPAdESLongTermValidationToStreamwrites the result to a stream instead of a file- The behaviour is configurable through a
PADES_LTV_*option mask: whether to write the VRI entry, whether to ask OCSP responders, whether to fall back to CRLs, whether to follow issuer addresses to complete the path, and whether to skip revocation for a self-issued root - An empty field name processes every signature into one revision; a named field processes just that one
GetPAdESLTVCertificateCount,GetPAdESLTVCRLCount,GetPAdESLTVOCSPCountandGetPAdESLTVErrorreport what the last call gathered and why it stopped short, so a partial result over an unreachable responder is visible rather than silent- Material identical to something already staged is written once and referenced by every signature that needs it, and a signature that carries no readable certificate is reported rather than passed off as a successful promotion
Version 3.331.0
Added
- A signature carries its own certification path, so the material a long-term validation profile needs can be read from the signed file alone.
GetSignatureSignerCertificateDER,GetSignatureEmbeddedCertificateCountandGetSignatureEmbeddedCertificateDERreturn the certificates a signature embeds, andGetSignatureCertificateChainLengthandGetSignatureCertificateChainDERorder them into a path from the signer outward GetSignatureContentsHashHexreturns the key anAddPAdESDSSVRIentry is addressed by, computed from the signature itself- The signer certificate is matched whether the signature identifies it by issuer and serial number or by subject key identifier, and a path stops at the last issuer the signature actually carries rather than pretending to be complete
Fixed
- The DER reader rejects a declared element length larger than the data instead of letting a near-maximal value wrap its bounds check, and the certificate extension walk no longer reads past the end of a truncated or overlong certificate. Both are reachable from a crafted document, so the accessors above stay safe on untrusted input
- The signature accessors read the document with a shared handle, so they answer while a verifier or viewer already has the file open instead of failing as though the signature were absent
Version 3.330.0
Added
- OCSP status requests.
BuildOCSPRequestencodes an RFC 6960 request for a certificate and its issuer,FetchOCSPResponseposts it to the responder and returns the reply, andAddPAdESDSSOCSPFromCertificatesdoes both and files the result in the document security store - The responder address is optional: when it is omitted, the one the certificate itself names is used, so a caller that has the certificate chain needs no further configuration
- A certificate pair that does not actually belong together is refused before anything is sent, instead of producing the "unknown" answer such a request earns from the responder and which reads like a revocation problem
- Only a successful response is stored; a responder that answered
tryLaterorunauthorizedis reported throughGetTimeStampErrorrather than filed as if it were a status answer
Version 3.329.0
Fixed
- Reusing one result array across successive enumeration calls no longer leaks the strings held in the array slots that a later call does not fill. This affected the documented "call once for the count, resize, call again" pattern whenever a later call returned fewer items than the array could hold, and the stranded text accumulated for the lifetime of the process
- Affected entry points include
EnumPageContentStates,EnumPageContentStatesEx,EnumAttachments,EnumDocumentFonts,EnumPageElements,EnumNamedDestinations,EnumSignatures,EnumFormFields,GetFormValues,GetTextInAreaEx, and the text-search, form-field-action and certificate enumeration calls
Changed
- The result-array parameter of those calls is now passed as
varrather thanout. Existing Delphi and C++Builder code compiles and links unchanged; the only visible difference is that array slots past the returned count keep whatever they held before instead of being silently blanked
Version 3.328.0
Added
- Certificates now tell the library where their status can be checked:
GetCertificateOCSPURLs,GetCertificateIssuerURLsandGetCertificateCRLURLsread the responder, issuing-certificate and CRL addresses out of a certificate, so assembling long-term validation material no longer requires knowing where a given authority publishes FetchRevocationMaterialdownloads material from those addresses, andAddPAdESDSSCRLFromURLandAddPAdESDSSCertificateFromURLdownload and file it in the document security store in one step- Addresses that name no fetchable resource, such as a directory name or a mail address, are skipped rather than reported as something that can be downloaded
Version 3.327.0
Added
- A built-in RFC 3161 time-stamp client.
SetTimeStampServerandSetTimeStampOptionsconfigure the authority, hash algorithm, requested policy, nonce use and timeout;FetchTimeStampTokenreturns a TimeStampToken for any digest ApplyPAdESSignatureTimeStampcompletes a PAdES-B-T signature in one call: it hashes the signature value, obtains the token from the configured authority and attaches it as the signature time-stamp attribute, replacing the previous three-step exchange the caller had to wire up itself- When a nonce is used the token is checked to carry the same value back, so a replayed or substituted response is rejected instead of being embedded in the document
GetTimeStampStatusandGetTimeStampErrorreport the authority's own status and failure text, so a refused request explains itself
Version 3.326.0
Added
- The PDFium renderer now writes the same image formats the GDI+ and Cairo renderers write.
RenderPageToFile,RenderPageToStreamandRenderPagesToFilesaccept BMP (option 0), JPEG (1), PNG (5), GIF (6), TIFF (7) and G4 TIFF (10) afterSelectRenderer(3), instead of accepting BMP alone - The JPEG quality set through
SetJPEGQualityand the active TIFF compression settings now apply to PDFium output as well, so switching renderers no longer changes the encoding of the file that is produced
Fixed
- Requesting PNG or any other non-BMP format from the PDFium renderer used to return 0 and leave an empty file behind. Applications that offered a renderer choice silently produced unreadable output whenever PDFium was the selected engine
- Asking the PDFium renderer for a metafile format it cannot produce (WMF, EMF, EPS, EMF+, HTML5) now reports which formats are available through
LastRenderErrorinstead of naming BMP as the only option
Version 3.324.0
Changed
- The PDFium renderer now feeds the document to the engine through a streaming data source instead of one resident buffer. Rendering and printing previously serialised the document and then copied it again into a string, so every page cost twice the document size in memory; the copy is gone and PDFium reads only the blocks it needs
- Rendering a page range to files parses the document once for the whole batch instead of once per page, so a long range no longer re-reads the entire file for every image it writes
- Older PDFium builds that do not export the streaming entry point keep working unchanged through the in-memory path
Fixed
- The renderer smoke test located the optional PDFium and Cairo libraries one directory too high and silently skipped both engines; it now finds them and exercises the real rendering paths
Version 3.323.0
Added
CreateValidationReportandSaveValidationReportproduce a structured PDF/A and PDF/UA-1 validation report in XML or JSON. Every finding carries the rule id, the standard that owns it, a short rule name, the ISO clause it enforces, a severity and the number of affected objects, and the report closes with per-standard and document-level pass/fail statistics- A standard that was not requested is reported as
not-checkedrather than as a silent pass, so a partial run cannot be mistaken for a clean bill of health - Build pipelines can now gate on a rule id or an ISO clause instead of matching substrings in prose: the preflight report family renders a human report first and converts that text to JSON, HTML or CSV, whereas the validation report is assembled from the raw check output and keeps the machine-readable fields intact
Version 3.322.0
Added
- The reference now documents the four externally-declared public types used across the
TPDFlibsurface that previously had no dedicated page:TPDFlibProgressEvent,TPDFlibLogger,TPDFlibCertificateInfoandTPDFlibWatermarkBase, completing the coverage of public event, logger, enumeration-result and watermark types
Version 3.321.0
Added
CheckDocumentPolicyevaluates declarative house rules such asFonts.NotEmbedded = 0,Security.Encrypted = noorDocument.Pages <= 500against the document and reports each rule as passed or failed with the actual value, turning an ingest gate for publishers, archives and print shops into configuration instead of hand-written inspection code
Version 3.320.1
Fixed
- Drawing text in a PDF/A mode without loading a font first no longer faults: PDF/A requires every font program to be embedded, so the implicit shortcut to a built-in font was refused and left no font selected, and
DrawTextand the other text calls crashed instead of drawing - The implicit font path now resolves a real embeddable face while a PDF/A mode is active, so text drawn without an explicit
AddTrueTypeFontcall is embedded and stays conforming; a directAddStandardFontcall is still refused under PDF/A - On hosts where no embeddable face can be resolved, drawing falls back to the built-in metrics instead of faulting and reports the conformance shortfall through
LastErrorCode605, so the file can be caught before it is published as conforming
Version 3.320.0
Added
GetDocumentFeatureReportreturns a structured feature report in one call — document metadata, page and object counts, encryption state, font and image inventories, tagging and outlines, form fields, signatures, attachments and the byte breakdown by category — replacing the dozen separate queries a cataloguing or ingest pipeline previously had to assemble
Version 3.319.0
Added
SetCollectionView,AddCollectionField,SetCollectionSortandSetCollectionItemValuebuild PDF portfolios on top of the existing attachments, so a set of embedded files is presented as a browsable package with its own columns, sort order and per-file values instead of a plain attachment listGetCollectionViewandGetCollectionFieldCountreport the presentation mode and the number of declared columns of a loaded portfolio
Version 3.318.1
Fixed
- Text extraction option 12 (ignore rotated text) now drops rotated runs whatever way they turn: a quarter turn clockwise and a quarter turn counter-clockwise used to be treated differently, so sideways margin notes were discarded in one direction and returned in the other
- The same option keeps slanted text that is only sheared, such as a synthetic italic, and the tolerance now scales with the text size and the page transformation, so large slanted headings are no longer discarded as if they were rotated
Version 3.318.0
Added
DecodeAllStreamsexpands the compressed streams of a document in place, so saving it produces a copy whose content streams, metadata and structure can be read directly by diff tools, forensic review and support workflows; images, prediction streams and cross-reference streams keep their encoding, and object streams are materialised first so nothing is lost
Version 3.317.0
Added
SetTrappedandGetTrappeddeclare and read the document trapping state that PDF/X requires, written as the/Trappedname the specification calls for rather than as a text stringSetOutputIntentSubtypeandGetOutputIntentSubtyperetag the output intent, so a loaded colour profile can describe aGTS_PDFXprinting condition instead of theGTS_PDFA1archiving condition that the PDF/A modes create
Version 3.316.0
Added
SetEncryptEmbeddedFilesOnlyandGetEncryptEmbeddedFilesOnlyrestrict AES encryption to embedded files: the document opens and renders in any reader with no password prompt while its attachments stay encrypted, the standard arrangement for invoices, medical records and case files whose cover pages are public but whose payload is not
Version 3.315.0
Added
- Text extraction option 18 rotates runs painted at 90, 180 or 270 degrees into the horizontal reading frame and groups each quarter turn separately, so rotated margin notes, table headers and chart axis labels extract as readable lines instead of interleaving with the upright text or being discarded
Fixed
DASetTextExtractionOptionsaccepts option 16 (dehyphenation) and option 17 (character-gap word splitting) instead of rejecting them, and the direct-access extraction path now forwards options 15, 16 and 17 to the extractor, so underscore-rule removal, dehyphenation and character-gap splitting apply to file handles the same way they apply to a loaded document
Version 3.314.0
Added
GetFontHasToUnicodereports whether the selected font carries a Unicode mapping, and the font inventory gains a matching per-fontHasToUnicodefield plus aNoToUnicodeCountsummary, so documents can be checked for extraction-safe and PDF/A-*u or PDF/UA convertible fonts before processing
Version 3.313.0
Added
SetPDFAModegains mode 8 for PDF/A-2u (ISO 19005-2 Level U), the conformance level that declares Unicode text mappings without allowing embedded files, completing the PDF/A-2 family alongside the existing 2b and 2a modes
Version 3.312.0
Added
GetObjectByPathandGetObjectByPathCountread any node of the object tree through path expressions such asRoot/Pages/Kids[0]/MediaBox[2]orpages[0]/Type— types, scalar values, serialized forms and element counts in one call, replacing hand-written object walking for metadata probes, compliance spot checks and support diagnostics
Version 3.311.0
Added
SetBlackPointCompensationdeclares black point compensation (ON, OFF or Default) for subsequent drawing through the PDF 2.0/UseBlackPtCompgraphics state, letting prepress and proofing output pin down dark-tone ICC conversions that were previously viewer-private; the document version is raised automatically and PDF/A modes reject the state
Version 3.310.0
Added
SetCompressionLevelandGetCompressionLevelexpose the deflate level for every compression the library performs: 0 keeps the default SIMD-accelerated engine, 1 favours throughput and 9 squeezes archives smallestRecompressStreamsre-deflates every plain FlateDecode stream of the selected document at the current level and keeps the smaller encoding per stream, shrinking documents that were originally written at a fast compression setting without touching their content
Version 3.309.0
Added
SetObjectStreamModeandGetObjectStreamModeadd a three-state object stream control: disable, generate (default) or preserve, where preserve keeps the loaded file's original compressed grouping and writes the containers verbatim, making conversions of existing PDF 1.5+ files cheaper because nothing is unpacked or regrouped
Changed
- In preserve mode, members edited since loading are promoted to top-level objects so their changes are saved, and any remaining compressed member automatically selects the binary cross-reference stream form
Version 3.308.0
Added
CheckDocumentStructureruns a one-call structural health check: every object and stream is forced through its decoder, plain Flate streams are strictly verified against the zlib end marker so truncated data is caught, and the report flags missing trailers, unresolvable catalogs and pages, unsupported encryption handlers and byte-scan-repaired files with per-object findings and a summary line
Version 3.307.0
Fixed
- Damaged documents that use cross-reference streams now repair successfully: the raw reconstruction recovers the members of compressed object streams and, when no trailer keyword exists anywhere in the file, synthesizes the trailer from the newest reachable document catalog, so a broken startxref offset no longer makes such files unopenable
Version 3.306.0
Added
ExportDocumentDatawrites the document information keys, the whole bookmark tree and the page label ranges as editable plain text in the classic dump_data line formatImportDocumentDataapplies the same format back — information keys update, the bookmark tree is rebuilt with nesting levels and destination pages, and page label ranges are replaced — enabling bulk bookmark editing and metadata migration between documents in one call each way
Version 3.305.0
Added
AuditDocumentSpacebreaks the document's byte usage down by category — images, font programs and dictionaries, content streams, form XObjects, object streams, embedded files, metadata, structure tree, annotations, page tree and other — with object counts, byte totals and percentages, answering why a file is as large as it is and which optimisation pays off best
Version 3.304.0
Added
StructTreeItemCount,GetStructTreeItemTextandGetStructTreeItemIntPropertyread the structure tree of a tagged document as a flattened depth-first item list — element types (raw and role-mapped), alternate and actual text, language, titles, marked-content ids, page numbers and parent/child relationships
Changed
- The structure tree reader guards against damaged documents: reference cycles, out-of-range object numbers and trees nested beyond 64 levels are cut off instead of looping
Version 3.303.1
Fixed
- Translucent underlay stamps created by
StampTextandStampImageno longer bleed their opacity into the original page content — the transparency state is now confined to the stamp itself, so the page keeps its full opacity
Version 3.303.0
Added
OverlayDocumentPagesstamps the pages of another open document onto the selected document's pages, one source page per target page, above or underneath the existing content — letterhead paper, continuous page backgrounds and scanned form templates in one call- Source exhaustion is configurable: stop, cycle through the source pages, or keep repeating the last source page; a further option prevents the stamp from being enlarged beyond its natural size
Changed
- Document stamps are fitted to the target page's CropBox and placed upright on pages carrying a
/Rotateentry, and each source page is imported once as a shared Form XObject so repeated templates never duplicate their resources
Version 3.302.0
Fixed
- AES-256 passwords are now processed with SASLprep (RFC 4013) before hashing, so passwords containing non-ASCII spaces, soft hyphens, compatibility characters or combining sequences open correctly in Acrobat and other conforming readers
- Opening AES-256 documents tries the standard prepared password first and falls back to the legacy byte form, so files written by earlier releases with non-ASCII passwords continue to open
Added
- Error code 604 reports an AES-256 password rejected by SASLprep because it contains prohibited code points or violates the bidirectional rules
Version 3.301.0
Added
SplitDocumentToFilesbursts the selected document into a batch of output files with a fixed number of pages each, using a%pfile name placeholder
Changed
- Batch splitting parses the source document once and copies every chunk from the same in-memory structure, replacing the repeated full re-parse that a loop over
ExtractFilePagesperforms for each range
Version 3.300.0
Added
CollateDocumentsmerges pages from several open documents into the selected document in rotation, taking a configurable number of pages from each source per round (A1, B1, A2, B2, …)CollateDocumentsExaccepts a per-source page range list where descending ranges such as3-1reverse a source, so front and reversed back scanner passes merge into reading order in one call
Changed
- Collated merges import each source through a single object map and interleave by page reordering, so fonts and images shared inside a source are written only once regardless of the group size
Version 3.299.0
Added
SetDeterministicDocumentIDandGetDeterministicDocumentIDswitch the trailer file identifier to a reproducible value so identical inputs produce identical output bytes for build caching, content-addressable storage and byte-level regression comparisonSetDocumentIDSeedsupplies an explicit seed for the reproducible file identifier; without a seed the identifier is derived from the document metadata, version header and page count
Changed
- Reproducible file identifiers are refreshed on full saves only; incremental updates and encrypted documents keep their existing identifier so signatures and password-protected files continue to open correctly
Version 3.298.0
Added
AddLinkToArticleThreadandSetOutlineArticleThreadconnect page hotspots and outlines to an article thread or bead with standard Thread actionsAddActionNextArticleThreadandPDF_ACTION_BUILDER_THREADadd Thread actions to chained, form, page and document action workflows
Changed
- Thread action targets use stable indirect thread and bead references and reject invalid indexes without changing the destination container
- Form-field action builders reject additional actions while PDF/A mode is active, preserving the PDF/A prohibition on field and widget
/AAdictionaries
Version 3.297.0
Added
- The
DLflat-DLL reference now documents everyA-suffix ANSI (char) entry point, adding 353 reference pages that mirror their Unicode counterparts with accuratePAnsiCharDelphi andconst char *C signatures - Rebuilt
BufferUtilities,DirectAccessFunctionalityandMiscellaneousFunctionsas clean function-group index pages driven by the shared category scheme, fixing broken markup, mislabelled sections and missing chips - The navigation index and shared search index now cover the full DLL surface for both Unicode and ANSI callers
Fixed
- Removed the stale
SetLoggerentry, which had no matching symbol in source; the documented property isLogger
Version 3.296.0
Added
AddAlternateImage,AlternateImageCount,GetAlternateImageInfoandRemoveAlternateImageprovide typed authoring and inspection of display and printing image variants- Alternate images can be associated with an optional-content group or membership dictionary, while one variant per base image can be selected as the printing default
Changed
- The built-in renderer now selects optional-content alternate images when a base image is hidden and honours the printing default on printer destinations
FindImagesnow registers alternate image XObjects reachable from page resources so imported variants receive usable image handles
Version 3.295.0
Added
AddArticleThreadcreates standards-compliant article navigation with typed metadata, ordered page rectangles, circular bead links and per-page bead arraysArticleThreadCount,GetArticleThreadInfoandGetArticleThreadBeadinspect created or imported article threads with bounded traversal of damaged link cycles
Changed
DeletePagesnow removes article threads that lose every bead and repairs the circular links of surviving threads- Deleted-page tracking now retains stable indirect page references so outline and article cleanup cannot drift as the page-tree cursor moves
Version 3.294.0
Added
SearchTextBatchsearches multiple text queries while each page extraction is resident and returns the originating zero-based query index with every hitSearchTextBatchEachprovides the same single-pass search through a streaming callback with progress reporting and cancellation
Changed
- Single-query and batch text search now share one matching core, preserving case-sensitive, whole-word and page-range semantics while avoiding repeated page extraction, text folding and hit geometry work
Version 3.293.1
Fixed
- Mesh shading rasterization no longer fails to compile on any Delphi version, resolving
E2089 Invalid typecaston real-to-floating-point casts in the GDI+ painter - Parallel batch page rendering now compiles on Delphi XE5 and XE6, where
System.Threadingis unavailable; older toolchains fall back to the serial render path as on non-Windows - Printer capability probing no longer raises an incompatible-types error on legacy Delphi versions by aligning the
SetPrintercall with the rest of the printing code - Certificate store enumeration now builds on RAD Studio 10.3 Rio, which previously aborted with an internal compiler error while optimizing the enumeration routine
Version 3.293.0
Added
- Optional-content membership dictionaries can now be created, updated and enumerated with
AnyOn,AllOn,AnyOffandAllOffcompatibility policies - Nested PDF 1.6
/VEvisibility expressions supportAnd,OrandNotthrough a compact prefix representation shared by Delphi and C++Builder
Changed
- Optional-content scopes, content streams, captured pages, images, form fields and annotations now accept either a group handle or a membership handle
- Rendering evaluates valid
/VEexpressions first and falls back to/OCGsplus/Pfor malformed or unsupported expressions
Fixed
- Nested optional content can no longer make content visible when an enclosing group or membership is hidden
- Membership dictionaries with no effective optional-content groups now leave visibility unchanged as required by the PDF specification
Version 3.292.0
Added
EnumAttachmentsnow reports creation and modification dates, hexadecimal checksums, associated-file relationships, and file specification object numbers for both document and annotation attachmentsValidateAttachmentChecksumverifies an attachment payload against its stored checksum on demand, while newly embedded files now receive checksum metadata automatically
Fixed
SetEmbeddedFileAFRelationshipnow accepts the same 1-based embedded-file indexes as the rest of the attachment API, including single-attachment documents
Version 3.291.0
Added
DeduplicateResourcesnow consolidates exact duplicate image, Form, pattern, shading, function, ICC profile, font program, CMap, Type 3 CharProc, embedded-file, metadata, and PostScript streams across a loaded document- Resource deduplication provides independent type flags, dry-run analysis, optional orphan collection, and detailed hashing, comparison, payload, reference, and per-category statistics
Changed
- Duplicate detection canonicalises complete stream dictionaries independently of key order, hashes every candidate payload once with SHA-256, and confirms matching buckets byte for byte before redirecting references
- Exact-equivalence groups retain the lowest object number and generation for deterministic output, while malformed direct-object cycles and semantic dictionary differences remain unmerged
Version 3.290.0
Changed
PurgeUnusedResourcesnow computes a transitive dependency closure across tiling patterns, Type 3 glyphs, annotation appearance states, ExtGState soft-mask groups, images, shadings, and nested colour spaces- The default cleanup options now enable pattern, Type 3, appearance, soft-mask, and image dependency analysis, with independent flags for callers that need a narrower scan
- Nested content programs and dependency entries are cached, shared resource scopes are privatised before pruning, and malformed cycles are bounded by active-stream and depth guards
Fixed
- Page resources used only through image colour spaces, Indexed bases, Separation or DeviceN alternates, Pattern underlying spaces, ICCBased alternates, or shading dictionaries are no longer removed as unused
- Resources used only by Type 3 CharProcs, tiling-pattern cells, annotation appearances, or transparency soft-mask groups are no longer removed from their own or inherited scope
Version 3.289.0
Added
PurgeUnusedResourcesnow removes named page resources that are not referenced by selected content layers and can return detailed per-category statistics- Resource cleanup now supports page ranges, dry-run reporting, progress and cancellation, recursive Form XObject analysis, deprecated ProcSet removal, and optional orphan-object collection
Changed
- Resource analysis now follows PDF name case sensitivity, inherited Form resources, custom inline-image colour spaces, and all seven standard resource categories
- Repeated Form programs are cached, used-resource sets use sorted lookup, and dictionary entries are removed in descending order for predictable large-document performance
Fixed
- Dictionary entry removal now invalidates large-dictionary key indexes so later lookups cannot return stale entries
- Malformed streams and unknown operators preserve their complete resource scope by default, while shared or inherited resource dictionaries are cloned before mutation
Version 3.288.0
Added
- Digital signatures can now emit complete DocMDP certification and FieldMDP field-lock structures, with structural permission reports for every selected signature
- RFC 3161 document timestamps, signature timestamps, PAdES-B-T token injection, certificate-chain validation, OCSP evidence, and DSS or VRI validation material now have complete authoring and verification workflows
- RichMedia annotations now support embedded assets, activation and deactivation settings, poster appearances, enumeration, extraction, and removal
- Poster printing now supports vector page imposition, overlap and crop marks, hard-margin-aware placement, and reusable tile plans
- Tagged tables now emit semantic Table, TR, TH, and TD structure with stable identifiers, header associations, spans, repeated headers, and artifacted decoration
- The viewer now provides keyboard-accessible AcroForm editing for text, choice, check box, radio, and push-button fields while dispatching actions to the host application
Changed
- Type 1 function-based and Type 4 through 7 mesh shadings now render through native function evaluation and bounded mesh tessellation
- ICCBased colour rendering now shares cached transforms across images and shadings while preserving calibrated colour-space behavior
- Incremental saves now rebuild object streams and cross-reference streams consistently, and selected signatures are verified against their own signed revision
Fixed
- SHA-1 signature timestamp requests now hash the signer signature value with SHA-1 instead of falling back to SHA-256
- Rejected field-lock replacements no longer discard a previously valid field-lock configuration
- Radio widgets with duplicate appearance-state names now preserve the selected widget and keep sibling widgets off
Version 3.287.0
Changed
- Inline image dictionaries now follow PDF comment, delimiter, literal, hexadecimal, array, and dictionary boundaries with bounded nesting
- Inline image payloads now use format-aware termination for raw, DCT, ASCII85, ASCIIHex, RunLength, and Flate data
- Flate payload discovery now performs one bounded inflate from the content-stream offset with exact compressed-byte accounting, while chained lossless filters share an end-to-end output ceiling
- ASCII85, ASCIIHex, LZW, predictor, colour-profile, and auxiliary image streams now enforce bounded intermediate output without oversized temporary allocations
Fixed
- Malformed or truncated inline images no longer read beyond source data, loop on unterminated values, or retain stale state across decoder reuse
- Packed image rows now calculate component bits before byte rounding, preventing incorrect lengths for low-bit RGB and multi-row images
- Resource colour spaces now preserve their original names while deriving Lab, indirect ICCBased, and DeviceN component counts and decoding Indexed palette streams under strict limits
- Inline image boundaries now reject invalid dimensions, bit depths, unsupported filters, unsafe filter chains, compressed streams, and ambiguous end markers consistently
- Indexed colour rendering now validates every palette access and rejects truncated lookup data instead of reading beyond the decoded table
- PNG predictors 10 through 15 now decode correctly for Flate and LZW streams, reject invalid row filters, and validate all row and state sizes before allocation
- JPEG and JPEG 2000 payloads now verify their encoded dimensions, components, precision, marker structure, box lengths, and decoded storage footprint before image allocation
- Inline image validation now limits both packed and expanded bitmap storage and bounds ICC profiles, JBIG2 globals, and terminal filter parameters
- Binary filter payloads containing embedded end-marker text now continue to the first candidate that passes bounded format validation
Version 3.286.0
Changed
- Content stream tokenization now follows PDF whitespace, comment, delimiter, literal string, hexadecimal string, and name boundaries
- Text splitting and resource replacement now use geometrically grown output buffers for linear processing of large content streams
- Reusable content stream processors now reset derived output and parser state before every
Processcall
Fixed
- Malformed or truncated literal and hexadecimal strings no longer read beyond the source buffer or emit an extra empty token
- Resource replacement now preserves case-sensitive PDF name semantics, accepts optional leading slashes, and updates duplicate mappings deterministically
- XObject and shading operands at the beginning of a stream are now excluded from text output, while unmatched restore operators no longer cancel later saved graphics states
Version 3.285.0
Changed
- LZW encoding now uses constant-time dictionary lookup and buffered stream writes, while decoding uses compact prefix and suffix tables with geometric output growth
- Flate predictor decoding now processes rows directly in the output buffer and supports packed, 8-bit, and 16-bit TIFF samples with arbitrary colour counts
- Stored Deflate streams now write into an exact pre-sized result, and zlib wrappers release temporary buffers safely when compression or decompression fails
Fixed
- LZW code-width changes now follow PDF
EarlyChangesemantics across 9-bit through 12-bit codes, including dictionary resets andEarlyChange=0 - LZW decoding now rejects invalid future codes and truncated bit streams without reading beyond the source buffer
- PNG predictors now use the ceiling byte width of a pixel, preserve previous decoded rows, and safely pad a partial final row
- TIFF predictor decoding now handles 1-bit, 2-bit, 4-bit, 8-bit, and 16-bit components consistently in both LZW and Flate paths
Version 3.284.0
Changed
- Buffer searches now scan fixed 64 KiB blocks, use byte lookup tables for set membership, and preserve the caller's position across every search path
- Unicode, Latin-1, hexadecimal digest, and ARC4 conversions now reserve bounded output once instead of repeatedly growing strings or temporary arrays
- ASCII85 encoding now reads input streams in 32 KiB blocks, while decoding uses exact integer arithmetic and writes directly into a pre-sized output buffer
- MD5 string hashing now avoids a temporary memory stream, digest comparison examines every byte, and ARC4 key scheduling no longer allocates an expanded key array
Fixed
DistanceToAnyBytenow returns the correct offset beyond its first block instead of rereading the same prefix and overcounting skipped bytes- Stream-backed buffer reads now honour the actual byte count returned by custom streams, shrinking results and advancing positions only by bytes received
- Buffer length reductions now clamp the current position, and nil pointer or stream sources behave as empty inputs instead of exposing invalid memory
- Latin-1 decoding now maps the complete byte range 0x00-0xFF instead of replacing bytes 0x7F-0xFF
- ASCII85 decoding now preserves the valid maximum 32-bit group
s8W-!and stops at the first end marker without floating-point boundary loss
Version 3.283.0
Added
TPDFlibSignatureVerifiercan now enumerate signature fields and CMS signers, open files, streams, or strings, and verify a selected field and signer by index or field name- Detailed verification reports now separate cryptographic integrity from signed-revision coverage, current-file coverage, later revisions, strict Contents-gap validation, and native crypto errors
Changed
- Detached CMS validation now streams both ByteRange segments through Windows CryptoAPI in bounded chunks instead of materialising the complete PDF in memory
- Signature fields under nested AcroForm Kids arrays and inherited
/FT /Sigentries are now enumerated with fully qualified names, and direct signature value dictionaries are supported
Fixed
- ByteRange validation now rejects overflow, overlap, truncation, a gap that is not exactly the selected hexadecimal
/Contentstoken, and a signed revision that does not end at its own%%EOF - Certificate lookup no longer falls back to an unrelated embedded certificate when the selected CMS signer identifier has no exact issuer-and-serial match
- Incremental updates that use cross-reference streams now include the cross-reference stream object's own type 1 entry, preventing strict PDF validators from reporting a missing self entry after signing
Version 3.282.1
Changed
- Full saves now rebuild imported object streams from the live object graph, preserve private trailer roots, and retain free-object generations without reusing structural object numbers
- Cross-reference streams now size their offset fields for large files, preallocate their payload, include their own entry, and preserve trailer extension keys
Fixed
- Object-stream packing now writes real
/ObjStmcontainers and type 2 member entries instead of only switching to an xref stream - Garbage collection no longer writes missing object numbers as in-use entries at offset zero and now emits a linked free-object chain in both plaintext and stream cross-references
- Loaded packed PDFs can now be saved repeatedly with packing enabled or disabled without retaining stale object streams, losing live members, or requiring cross-reference repair
Version 3.282.0
Added
- Imported ICCBased colours now use the embedded ICC profile across vector painting, function and mesh shadings, indexed palettes, raw bitmap, CCITT and JBIG2 images, CMYK JPEG images, and JPEG 2000 images
Changed
- ICC transforms now use a bounded Windows Color System lookup table with multilinear interpolation, replacing the temporary PNG round trip used during image rendering
- The renderer now honours content-stream and graphics-state rendering intents, ICCBased
/Range, image/Decode, and original-domain colour-key masks while validating profile channel counts against the PDF colour-space dictionary - Repeated uses of the same profile and rendering intent now share one lookup table across vector colours, patterns, shadings, and images
Fixed
- Encrypted ICC profile streams are now decrypted only while decoded and restored afterward, and embedded profiles are no longer compressed twice while writing image output
Version 3.281.0
Added
- The built-in GDI+ renderer now paints imported PDF function-based shadings and free-form, lattice, Coons, and tensor mesh shadings (types 1 and 4-7), including transparency and clipping
- Shading dictionaries now support component Function arrays, calibrated Lab, CalGray, and CalRGB spaces, Separation and DeviceN tint transforms, PatternType 2 Background fills, and BBox clipping across the GDI+ and Cairo renderers
Changed
- Type 1 shading functions now use bounded adaptive colour sampling with additional quarter-cell probes for higher narrow-feature accuracy and lower work on constant or smooth regions
- PatternType 2 matrices around mesh shadings are now composed exactly once in both GDI+ and Cairo, preserving translated, scaled, and rotated pattern placement
- Mesh colour components are now interpolated in their source colour space before Function evaluation and conversion to RGB, preserving nonlinear functions, DeviceCMYK gradients, and the correct ordering for managed colour transforms
- Coons and tensor surfaces now use bounded device-pixel error subdivision for smoother high-curvature output at large render sizes
- Encrypted shading and Function streams are decoded through the document crypt callbacks, and Type 5 vertex records honour their required byte alignment
Version 3.280.1
Fixed
MergeFileList/MergeFileListFast/MergeFileListStrictleaked aTSmartPDFReader/TSmartPDFDocumentpair (and everything they own) when a non-PDF file appeared in the merge list: the reader and document were constructed before thetryblock that frees them, so a parse failure on the malformed file's content orphaned the already-constructed reader instead of being cleaned up by the surrounding exception handler; construction now happens inside the protectingtryin both the single-file and multi-file prescan paths- Mesh shading parsing (
TPLMeshShading.Parse, shading types 1 and 4-7) leaked the decoded/Functionobject on every parse - every early-exit path and the normal completion skipped freeing it; the function is now released in afinallyblock regardless of howParseexits TPDFlibSignDoc.Closenow nils its smart-reader/document/info fields after freeing them, and the exception paths inOpen,OpenStreamandOpenStringnow release any partially-constructed smart objects instead of only clearing the stream reference, preventing a leak when opening a signing target fails partway through
Version 3.280.0
Added
- Error category enumeration
TPDFlibErrorCategory(ecSuccess/ecStructure/ecSave/ecCrypto/ecGeneric/ecCompliance/ecAcroForm) layered on top of the existing numericLastErrorCodetaxonomy, so callers can classify failures without memorising code ranges; exposed viaTPDFlib.LastErrorCategory,TPDFlib.ErrorCategory(Code)andTPDFlib.ErrorMessage(Code) - Form-field error codes 701-704 (field not found, field read-only, no AcroForm, invalid value) with human-readable messages, letting callers distinguish "field is locked" from "no such field" instead of receiving a single generic failure
SetFormFieldValueForcedforce-write variant that bypasses the read-only guard, used internally bySetFormValues(SkipReadOnly=False)so bulk imports can still overwrite locked fields when the caller explicitly opts out
Changed
SetFormFieldValuenow setsLastErrorCodeto 701/702/703 on failure (field not found / read-only / no AcroForm) instead of returning 0 silently;LastErrorCategoryis a non-consuming read so callers can inspect the category before retrieving the numeric code
Version 3.279.0
Added
ReplacePageRangesreplaces visual page content from another open document without changing the target page count or target page object identities, preserving bookmarks, links, annotations, and form widgets already attached to those pages
Changed
- Cross-document page copying no longer creates and removes an extra placeholder page before importing the requested range
Version 3.278.0
Added
PrintPagesAdvancedapplies copies, collation, duplex, orientation, color, quality, paper-size and input-bin settings to arbitraryPrintPagesrange expressions while retaining one printer profile and one print job
Changed
- Advanced print settings are validated before the job starts, positive print-quality values above the four named presets are applied as DPI, and paper or input-bin identifiers may use the full positive range supported by the corresponding
DEVMODEfields
Fixed
- Damaged cross-reference recovery now dispatches its bounded block reads through the traditional
TStream.Readoverride on Win64, preserving instrumentation and custom-stream behavior while retaining 64 KiB sequential I/O
Version 3.277.0
Changed
- Damaged cross-reference recovery now scans source data in 64 KiB sequential blocks instead of seeking once for every matching character, keeping auxiliary memory bounded while scaling to large PDF files and non-memory streams
- Recovery validates complete indirect-object tokens, skips object-like data inside comments, strings, and streams, confirms stream endings with a following
endobjtoken, preserves headers split across read boundaries, and selects the last valid trailer dictionary
Fixed
- Trailer reconstruction now supports nested dictionaries and delimiter text inside literal strings and is no longer truncated to the first 2048 bytes or the first apparent
>>pair
Version 3.276.0
Added
ActivateWebLinksandActivateWebLinksExscan existing page text once per page and create non-duplicate URI link annotations for HTTP, HTTPS,www., FTP,mailto:, and bare email targets with selectable detection and border options- Generated links use matched-character geometry, precise quadrilaterals for rotated or skewed text when permitted, PDF/A print flags, progress and cancellation support, and selected-page restoration; tagged PDF and PDF/UA documents are protected from incomplete structure-tree updates
Changed
SetAutoCreateWebLinksnow uses the same boundary-aware detector and target normalization when creating links for newly drawn text, addingwww., FTP, and bare email support
Fixed
- Updating annotation
/Contents, name, date, title, or subject properties no longer overwrites the subtype of an existing action dictionary, so URI and other actions remain valid after annotation metadata changes
Version 3.275.0
Added
ExtractPageRangeText,SavePageRangeTextToStream, andSavePageRangeTextToFileextract a parsed page range in one traversal with caller-defined page separators; stream and file output writes UTF-8 data incrementally so large documents do not require a complete document-sized text bufferSetPageBoxRangeandRemovePageBoxRangeapply page-boundary changes across the standard page-range syntax while preserving the caller's selected pageSetPageTransitionRangeandSetPageTransitionRangeExapply legacy or extended presentation transitions to page ranges with per-page progress and cancellation supportGeneratePageThumbnailsrenders requested pages directly into reusable memory and attaches their/Thumbimages without intermediate files or nested progress operations
Version 3.274.0
Fixed
- GDI+ rendering of axial shading patterns now honours the PDF
/Extendarray:SetupGDIPlusPatternpassesWrapModeClampwhen either end is extended (matching the Cairo backend) instead of always usingWrapModeTile, so end colours paint the area outside the gradient axis correctly
Added
- The scroll-hint bubble (
"Page N / M") shown while dragging the vertical scrollbar now auto-hides after 3 seconds of inactivity via aWM_TIMERhandler, so it no longer lingers until a separate scroll event dismisses it ZoomInStep/ZoomOutStepnow snap ontoActualSize(100%),FitWidthandFitPagepercentages when they fall between the current zoom and the next preset on the 14-step ladder, matching the behaviour of professional PDF viewers- The viewer disk page cache writes a build-version marker (
cache.version) and wipes the whole cache root when the library version changes, so a build upgrade never reuses stale bitmaps rendered by an older code path
Version 3.273.1
Fixed
- Object-stream container and xref-stream objects created during save were leaked because they bypassed
TPDFStructure.AddObjectregistration; both call sites now use theNewStreamWithDictownership-tracking factory, eliminating theTPDFStreamleak reported by the test runner underReportMemoryLeaksOnShutdown - Cross-reference stream
/Sizewas off by one: it must be one past the highest object number in the whole file, and the xref stream is itself an indirect object numberedMaxObj+1, so/Sizeis nowMaxObj+2
Changed
- Peephole content-stream optimiser now also removes identity text-matrix operators (
1 0 0 1 0 0 Tm), covering bothcmandTmwith the same six-operand identity check - Mark-sweep GC preserves object 1 (the
/Linearizedparameter dictionary) when the source document was loaded linearized, since that dictionary is never referenced from/Rootbut must survive
Version 3.273.0
Added
- Object-stream packing on save (
TPDFDocument.PackObjectsIntoStreams) collects eligible non-stream indirect objects, serialises them into PDF 1.5 object streams (/Type /ObjStm) with Flate compression, and emits a binary cross-reference stream (/Type /XRef) carrying type-0, type-1 and type-2 entries, reducing the size of saved files 10-40% on object-dense documents TPDFlibSaveOptions.PackObjectStreamsflag plusTPDFlib.SetPackObjectStreams/GetPackObjectStreamsAPI; defaults to enabled, auto-gated by PDF version (1.5+ activates packing and xref streams, 1.4 and below keep the traditional plaintext xref for compatibility), andTPDFlib.GetLastSaveUsedObjectStreamsreports whether the last save actually packed
Version 3.272.0
Added
- Mark-sweep garbage collection of unreferenced indirect objects (
TPDFDocument.GarbageCollectUnusedObjects) walks the object graph from the trailer roots (/Root,/Info,/Encrypt) and removes every indirect object that is not reachable, stopping the file-size growth that accumulates when pages are deleted and their font, content and XObject resources become orphans TPDFlibSaveOptions.GarbageCollectflag plusTPDFlib.SetGarbageCollect/GetGarbageCollectAPI let callers opt in to GC during a full save (defaults to off for backward compatibility), andTPDFlib.GarbageCollectObjectsruns GC immediately and returns the number of orphaned objects removed
Version 3.271.0
Added
- Peephole content-stream optimiser (
TPDFContentPeepholeOptimizer) rewrites a parsed page content stream before Flate compression, removing semantically redundant PDF operators: identitycmmatrices, emptyq/Qpairs, emptyBT/ETobjects, no-op paths terminated bynwith no clip, duplicate graphics-state setters (colour, line width, cap/join, dash, text state), and deadnafter a painting operator - all transforms are output-equivalent so visible page output is unchanged TPDFlibSaveOptions.OptimizeContentStreamsflag and matchingTPDFlib.SetOptimizeContentStreams/GetOptimizeContentStreamsAPI let callers opt in or out of the peephole rewrite duringCompressContent/CompressPage; enabled by default
Changed
TPDFDocument.CompressPagenow forwards the optimisation flag to the page tree so the peephole pass runs insideTPDFPageTree.Compressbefore the existing Flate compression, stacking operator-level reduction on top of byte-level compression
Version 3.270.0
Added
- New
PLParseDefaultAppearancedecodes a/DAdefault-appearance byte string (ISO 32000-2 12.7.4.3) into the font resource name, font size and fill colour, covering therg,kandGcolour operators so form-field and annotation appearance generators can paint text with the author-intended styling
Changed
- Page content-stream assembly (
TPDFRenderer.GetContents) now concatenates multi-part/Contentsarrays through aTStringBuilderinstead of repeatedResult := Result + chunk, removing the O(n^2) string growth that penalised pages with many content-stream parts
Version 3.269.0
Added
- New
BeginMarkedContent/EndMarkedContentwrite inline marked-content sequences with accessibility properties (/Alt,/ActualText,/Lang,/E) directly in the BDC property list per ISO 32000-2 14.9.2–14.9.5, so screen readers and accessibility tooling can read substitute text without a structure-tree entry - Annotation reader exposes
GetAnnotEffectiveBorderimplementing the Errata #287 precedence (border style dict/BSwins over the legacy/Borderarray) and resolving width, style and dash pattern into one call - Signature documents expose
GetSignatureSeedValueto read the seed-value dictionary (/SV, ISO 32000-2 12.7.5.5 Tables 236–237): required filter, allowed SubFilters and allowed digest methods, so a signer can honour the constraints the author embedded GetSignatureFieldLockreads the/LockFieldMDP seed dictionary (Table 238): action (/All,/Include,/Exclude) and the affected field names that must be locked at sign time
Version 3.268.0
Added
- New
PLParsePDFDateparses ISO 32000-2 7.9.4 date strings (D:YYYYMMDDHHmmSSOHH'mm') into a localTDateTime, honouring the mandatoryD:prefix, the field-dependency ladder (each field only when all preceding fields are present) and the UT offset (+/-/Zwith optional apostrophe-minute), returning the local equivalent of the documented instant - Text-string decoding (
PLDecodeTextString) now recognises the PDF 2.0 UTF-8 BOM (EF BB BF) per 7.9.2.2.1, so UTF-8-authored metadata decodes correctly instead of being misread as PDFDocEncoding - File specifications expose
GetFileNamehonouring the PDF 2.0 precedence (Path > UF > F) per Errata #444, plusGetEmbeddedFileStreamandGetRelatedFilesaccessors for the/EFand/RFdictionaries - Annotation readers expose appearance-precedence helpers
GetAnnotNormalAppearance,GetAnnotDefaultAppearanceandGetAnnotOffStateAppearanceimplementing the Errata #23/#34/#42/#170 rules (AP/N is authoritative; DA is the byte-string fallback; Off state lives under the nameOff) - PDF/UA validation reports a new code 10045 when a non-standard structure type fails to terminate at a standard type through the role-map chain (ISO 14289-1:2014 7.1), with cycle protection to a depth of 8
- PDF/A and PDF/UA font audits now validate that embedded CIDFontType2 fonts carry a
/CIDToGIDMapwhose value is either the nameIdentityor a stream, not merely present (ISO 32000-1 9.7.4)
Changed
- Name-tree lookup (
NameTreeLookup) now binary-searches the sortedNamesarray per ISO 32000-2 7.9.6 before falling back to a linear scan, turning large EmbeddedFiles/JavaScript/Dests lookups from O(n) into O(log n) on conformant files - PDF/UA standard-structure-type set expanded with PDF 2.0 additions (
Artifact,DocumentFragment,FENote,MarkedContent,Title) so the role-map no-remap and chain-termination checks recognise the full tag vocabulary
Version 3.267.0
Added
EnumPageContentStatesExcan recursively enumerate Form XObject instructions with configurable depth, cycle protection and depth-first execution ordering- Content snapshots now expose invocation-tree identity, containing stream and parent XObject information, resource-scope identity, Form traversal status and descendant counts
- Standalone content trackers can register scoped fonts and initialise isolated Form execution state with matrix concatenation and bounding-box clipping
Changed
- Recursive content tracing selects each Form resource dictionary independently, inherits invoking resources for compatible legacy Forms, preserves inherited font identity and caches decoded Form programs across repeated invocations
Version 3.266.0
Added
- Text, color, and redaction.
GetTextRunsexposes glyph origins and the full text matrix. Mesh shadings render Lab, CalRGB, and CalGray fills through color management. Content removal can also emit a Redact annotation with a rectangle, interior color, and optional overlay text - Operational diagnostics. Load and save emit structured logs with UTC timestamps. EMF interpretation exposes an unknown-record count. Memory regression checks cover document creation, rendering, save, and reset cycles
Changed
- Rendering and lookup performance. Repeated page access uses the page cache, large dictionaries index keys, and content operators dispatch through a shorter lookup. sRGB and Lab conversion and mesh bit packing reduce per-pixel or per-sample overhead
- PDF/A color audits. Inspect nested base and alternate color spaces in Indexed, Separation, DeviceN, and ICCBased resources up to eight levels, so hidden incompatible spaces are reported
- Save and font performance. Finalize only used shaped glyphs, reduce repeated allocation in string escaping and AES stream processing, and grow TrueType composite-glyph buffers efficiently. Painter circle and arc calculations also avoid redundant work
Fixed
- Corrected the non-Windows
PDFlibRenderPagesParallelstub signature so the parallel rendering unit compiles
Version 3.265.0
Added
- Added 59 C++Builder console demos to align the C++Builder demo suite with Delphi, bringing the total from 33 to 92 demos covering the same API surfaces
- Added Demo/C++Builder/index.html expansion from 35 to 92 entries with Navigation, Color & ICC, Barcode & media, and Structure & compliance sections
Fixed
- Fixed all 33 existing C++Builder cbproj files that were missing 20 library units (PDFlibMeshShading, PDFlibGraphics, PDFlibWindows, PDFlibParallel, PDFlibLogger, PDFlibMail, PDFlibViewer, etc) from their DelphiCompile list, which prevented every C++Builder demo from compiling
Version 3.264.0
Added
- Content graphics-state snapshots now resolve
Dooperands as image, form or PostScript XObjects and report their resource names, object numbers and transformed bounds - Form snapshots expose the original
/Matrixand/BBoxtogether with resource, group, transparency-group and reference-form indicators - Standalone content trackers can pre-register XObject streams through
RegisterXObject
Changed
- Page content-state enumeration now precompiles selected-page XObject resources and calculates invocation bounds from all four transformed corners
Version 3.263.0
Added
- Content graphics-state snapshots now expose current path bounds, current point, path complexity, pending clipping rules and effective clipping bounds
- Standalone content trackers can initialise an explicit clipping boundary through
SetInitialClipBounds
Changed
- Page content-state enumeration now follows delayed
WandW*clipping, exact transformed cubic extrema,q/Qclipping restoration and selected-pageCropBoxboundaries
Version 3.262.0
Added
- Content graphics-state snapshots now report font writing mode, exact per-instruction text displacement and whether font metrics were resolved
- Standalone content trackers can provide font measurements through
OnMeasureText
Changed
- Page content-state enumeration now advances text matrices for
Tj,TJ,'and"using simple or composite font metrics, horizontal scaling, spacing and vertical writing rules
Version 3.261.0
Added
- Content graphics-state tracing can now resolve page
ExtGStateresources, including transparency, blending, overprint, soft masks, device controls and embedded font references TPDFContentStateTrackercan pre-register external graphics-state dictionaries for standalone content-program analysis
Changed
- External graphics-state parameters now apply cumulatively and participate in complete
q/Qsave and restore snapshots
Version 3.260.0
Added
- Added single-pass effective graphics-state tracing for structured content programs and complete selected pages
- Snapshots expose CTM, text matrices, line style, dash pattern, colours, text state and graphics-state stack depth before or after each instruction
Changed
- Image placement enumeration now maps all four unit-square corners, producing correct bounds under rotation and shear
Version 3.259.0
Added
- Added typed time, special-pattern and arbitrary-mask helpers for interactive form fields
- Added range validation with independently optional zero-safe bounds
- Added sum, average, product, minimum and maximum field calculations with automatic calculation-order registration
Security
- Generated JavaScript string values now escape quotes, backslashes, control characters and JavaScript line separators
Version 3.258.0
Added
- Added typed
SetOCGStateaction creation for form-field events, existing actions and action chains - Optional-content actions preserve left-to-right state changes, repeated groups and the optional radio-button relationship preference
Changed
- Optional-content action enumeration now returns canonical group handles that round-trip through the writer APIs
Version 3.257.0
Added
- Added complete explicit remote-destination writing with zero-based pages, all standard fit types, nullable XYZ values and tri-state window preferences
- Added complete launch-action writing for portable files, Windows parameters, default directories and open or print operations
- Existing action handles can now update these payloads or append them to action chains without container-specific duplicate APIs
Security
- Remote go-to and launch action builders now reject PDF/A mode before modifying an action chain
Version 3.256.0
Added
- Remote go-to action inspection now reports named and explicit destinations, zero-based target pages, fit types, coordinates and zoom values
- Launch action inspection now reports Windows application parameters, default directories and open or print operations
- Action information distinguishes an absent
/NewWindowpreference from an explicit false value and identifies array-based targets
Version 3.255.0
Added
- Added typed builders for remote named-destination and external application launch actions
- URI action builders now support coordinate-map requests through the standard
/IsMapflag - The new action kinds work across lifecycle, form-field and chained-action APIs through the existing extended builder interface
Version 3.254.0
Added
- Added 14 Delphi API-coverage demos for library surfaces that had no dedicated demo: OutlineBuilder, NamedDestinations, DocumentActions, EmbeddedFiles, LinearizeDemo, BarcodeGallery, XfaFields, TaggedPDF, OutputIntent, HtmlTextFlow, RichMediaAnnotations, MailSendDemo, TextBlockExtraction, and PadesDssDemo
- Added a Navigation section, Color & ICC section, Barcode & media section, and Structure & compliance section to the Delphi demo index, bringing the total from 56 to 92 listed demos
- Added Readme.en-us.html guides for the 20 demos that previously shipped without one
Changed
- Applied the project Formatter.config across all Delphi demo sources so operator spacing, indentation, and keyword casing follow one style, and set NewLineBeforeThen to False so If...Then stays on a single line
- Hardened error handling across the classic GUI demos: SaveToFile return values are now consistently checked, TPDFlib and secondary object lifetimes are always protected by try/finally, and failure messages include LastErrorCode
Fixed
- Fixed inverted SaveToFile polarity in ImageToPdf that treated success as failure, and stopped AddTrueTypeSubsettedFont from opening a stale file when the save failed
- Fixed resource leaks in CreateWithImageToStream, DoInTheStream, CanvasText, ExtractText, ExtractImage, PdfDecrypt, PdfEncrypt, and PdfPermission where TPDFlib, TStream, TBitmap, TOpenDialog, or TStringList instances could escape on an exception path
- Removed dead code in AddFormattedTitle (unused RectParts allocation, redundant try/except around StrToFloatDef) and MultiFunction (overwritten SetTextSize call)
Version 3.253.0
Added
- Added typed action details for thread, sound, movie, optional-content, rendition, transition and 3D-view actions
- Added reusable action-handle lookup and ordered optional-content state enumeration
- Added complete PDF transition records covering replacement, Fly, Push, Cover, Uncover and Fade styles
Fixed
- Wipe and Glitter transitions now store their direction in
/Di, read page display duration from the page dictionary and clear both transition and timing entries - Standard pre-PDF-1.5 transition styles no longer force a PDF 1.5 output version
Version 3.252.0
Added
- Added single-pass form-field action discovery with typed action details across primary, widget and field triggers
- Added complete calculation-order enumeration, per-field lookup and removal for interactive forms
- Extended bulk form-field snapshots with calculation order and action count
Changed
- Widget lifecycle triggers now support page-open, page-close, page-visible and page-hidden actions with the required PDF 1.5 version handling
Version 3.251.0
Added
- Added single-pass named-destination enumeration across legacy catalog entries and modern name trees with resolved page and view parameters
- Added named-destination removal, complete push-button captions, button text positioning and form-field mapping names
- Extended bulk form-field snapshots with mapping names, button captions and button text position
Fixed
- Name-tree editing now supports direct destination values and uses unambiguous multi-node index encoding
Version 3.250.0
Added
- Added single-pass form field snapshots with field identity, type, page, flags, values and Choice state
- Added typed Choice-field flag queries plus validated selected-index and top-visible-index accessors
Fixed
- Single-selection Choice fields no longer retain a multi-selection
/Iarray, and switching from multi-select to single-select now replaces the old/Varray with a string value
Version 3.249.0
Added
- Added one-pass stateful text search traversal so applications can iterate cached hits without extracting pages twice
- Added bulk form value export and name-based application with optional read-only field protection
Version 3.248.0
Added
- Added retained Viewer selections with page-space geometry, extracted text, enumeration, clearing and a vetoable marquee event
- Added exact current-viewport bitmap capture and file output including persistent overlays
Version 3.247.0
Added
- Added independent Viewer controls for user form editing and annotation activation
- Added configurable foreground colour for text and choice form editors
Version 3.246.0
Added
- Added typed line ending styles, shape interior colours, link highlight modes, FreeText alignment, Text annotation open state and Caret symbols
- Annotation setters validate compatible subtypes and automatically raise the minimum PDF version where required
Version 3.245.1
Fixed
- Corrected FastReport export page sizing and memo layout so A4 reports retain their intended scale, text stays within memo bounds and unconfigured memo frames remain hidden
Version 3.245.0
Added
- Added
OnPasswordso applications can supply another password after an encrypted document rejects the initial credential - Password retries now work consistently for file, stream and string loads, expose the next attempt number and allow the handler to cancel
Security
- Password callbacks are limited to sixteen total attempts and every retry uses a fresh parser and decryption state
Version 3.244.0
Added
- Added
SetXMPPropertyExfor safely writing scalar properties in caller-defined XMP namespaces - Custom XMP values are escaped through the XML DOM, repeated writes replace the matching namespace property and invalid or reserved XML names are rejected
Version 3.243.0
Added
- Added typed document lifecycle actions for before close, before save, after save, before print and after print triggers
- Added typed page open and close actions with shared support for URI, named, JavaScript, form and destination action builders
- Added action inspection and removal methods for every document and page lifecycle trigger
Version 3.242.0
Added
- Added
SaveChangesto append changes to the originally loaded file and automatically reload the updated xref chain for repeated incremental saves SaveChangesvalidates the reload password before writing and preserves the selected public document handle after reload
Changed
AppendToFilenow rejects a target whose current length differs from the loaded source, preventing stale incremental offsets from being appended to an externally changed file
Version 3.241.0
Added
- Added
GetLastOutlineandGetLastChildOutlinefor direct access to the tail of a bookmark list - Added
GetOutlineChildCountandGetOutlineSiblingIndexfor lightweight bookmark tree inspection without allocating a full tree snapshot
Version 3.240.0
Added
- Added
SaveAllAttachmentsExwith overwrite, skip and automatic rename conflict policies plus a per-attachment naming callback - Attachment exports now reduce requested names to safe leaf names and protect Windows reserved device names
Fixed
- Fixed
SaveAllAttachmentsreturning without writing files because its attachment snapshot was counted but not allocated and populated
Version 3.239.0
Added
- Added
OnPageMouseDown,OnPageMouseMoveandOnPageMouseUpso Viewer hosts receive one-based page numbers and top-down PDF point coordinates independent of zoom, scrolling and view rotation - Added
RegionAtClientPoint,ActiveRegionandOnActiveRegionChangeto distinguish links, non-link annotations and form fields as the pointer enters or leaves them - Added
CreatePDFlibViewerDefaultPopupMenuandInstallPDFlibViewerDefaultPopupMenu, which compose the existing Viewer action classes into a ready context menu for copy, zoom, fit, rotate, navigation, save and print
Version 3.238.0
Added
- Added
OnOperationProgresswith typed operation kind, lifecycle phase, current and total units, percentage and detail text while preserving the classicOnProgresspercentage callback - Load, save, search, merge and page-render file, stream and string entry points now report starting and terminal phases; operations with intermediate progress also report
opRunning - Setting
CancelduringopStartingoropRunningactivates the existingAbortstate, providing one cancellation path for old and new callers
Fixed
LoadFromFilenow preserves error code 404 for a wrong password instead of overwriting it with the generic load error 401 after cleanup
Version 3.237.0
Added
- Added
SearchTextEachandTPDFlibSearchHitEventto emit every text hit immediately without allocating or sizing a result array SearchTextandSearchTextEachnow report page progress throughOnProgressand honour bothAbortand callback cancellation; callback cancellation uses the existing abort state untilResetAbort- The Viewer search panel and search-highlight layer now consume the streaming API in one pass, removing their former 256-row and 512-highlight limits
Fixed
- Whole-word search now continues past an earlier substring occurrence in the same text block to find a later correctly bounded match
Version 3.236.0
Added
- Added
GetPrinterCapabilitiesto capture a live printer-driver snapshot without starting a print job - The typed
TPDFlibPrinterCapabilitiesresult includes paper IDs, names and millimetre dimensions, input-bin IDs and names, duplex, colour, landscape and collation support, the printer port and the maximum driver-reported copy count - Drivers that omit paper or bin metadata still return the remaining capabilities with empty arrays, while invalid printer names return a fully cleared snapshot
Version 3.235.0
Added
- Added
SendDocumentByMailfor saving the loaded document to a temporary PDF and delivering it as an SMTP attachment through the built-in Windows CDO provider - Added the reference-counted
IPDFlibMailProviderextension point so applications can supply another transport, support non-Windows hosts and test mail workflows without network access - Each send uses an isolated temporary directory, sanitises the attachment display name and removes both the PDF and its directory after the provider returns;
GetLastMailErrorreports validation, save, transport and platform failures
Version 3.234.0
Added
- Added variable placeholders to stamp, header and footer text:
<%PageNo%>,<%TotalPages%>,<%ShortDate%>,<%LongDate%>,<%ShortTime%>and<%LongTime%>expand per page alongside the classic &-tokens - Any custom
<%name%>placeholder resolves through the newOnCalcVariableevent, which receives the name and the page number and supplies the replacement - running numbers, batch codes and client fields stamp without pre-processing the text; without a handler unknown placeholders stay verbatim
Version 3.233.0
Added
- Added superscript/subscript detection to text extraction: the new
GetTextBlockVAlignreports each extracted text block's baseline classification (0 = baseline, 1 = superscript, 2 = subscript) relative to its visual line, so chemical formulas, exponents and footnote markers can be recognised - A block classifies as super-/subscript when it is markedly smaller than the line's dominant text and its vertical centre sits above/below the dominant centre within one text height
Version 3.232.0
Added
- Added character-level word splitting to text extraction:
SetTextExtractionOptions(17, 1)re-splits show-text runs that carry no space characters into words wherever a per-character advance step is much wider than the run's median glyph advance - documents that paint whole lines as a single operator with kerning gaps standing in for spaces now extract as separate words inGetPageTextmodes 7 and 9-11 - The advance arrays stay aligned with the widened text, so block quads and per-character width outputs remain consistent
Version 3.231.0
Added
- Added layout-preserving fixed-grid text export:
GetPageText(11)maps the page geometry onto a monospace character grid - rows cluster by baseline, every block lands at its column computed from the average character width, and shorter cells pad with real spaces - so tables and forms keep their visual alignment in plain-text viewers, terminals and diffs without relying on tab stops - The reference page for
GetPageTextnow documents the reading-order (9), tab-separated table (10) and fixed-grid (11) modes
Version 3.230.0
Added
- Added dehyphenation to text extraction:
SetTextExtractionOptions(16, 1)re-joins words hyphenated across line breaks ("inter-" at a line end followed by "national" becomes "international") in the line-oriented outputs ofGetPageTextmodes 7 and 9 - The heuristic only merges when a letter precedes the hyphen and a lowercase letter starts the next line, so numeric ranges, proper nouns and sentence-initial capitals keep their hyphens
Version 3.229.0
Added
- Added the
OnBeforeSnapshotevent to theTPDFlibViewercontrol: it fires before a snapshot drag is captured with the dragged region, and setting Handled cancels the default clipboard capture so applications can process the region themselves - Exposed
PrefetchEnabled: the background pre-render worker can now be switched off and on at run time (the worker stops immediately and restarts on the open document) - Exposed
DiskCacheMaxDocuments: the number of documents the cross-session disk page cache keeps before pruning is now tunable (default 10)
Version 3.228.0
Added
- Added precise navigation to the
TPDFlibViewercontrol:GoToPagePointjumps to a page and scrolls a given page point to the top-left of the viewport, so link destinations and search hits land exactly in view - Added programmatic scroll control:
ScrollBypixel stepping, read/writeHScrollPos/VScrollPosproperties (ideal for synchronising two side-by-side viewers over the same document), andGetScrollPosForPagereporting each page's scroll anchor in continuous mode - Added public coordinate bridges
ClientPointToPageandPageRectToClientRectconverting between client pixels and page user space through zoom, rotation and scroll; the internal hit-testing now shares the exact geometry of the paint path and also works on unparented (headless) controls
Version 3.227.0
Added
- Added view-state events to the
TPDFlibViewercontrol:OnZoomChangefires on every effective-zoom move (explicit zoom, preset steps, fit-mode recomputation on resize, rotation or DPI change) andOnHScroll/OnVScrollfollow the scroll position, so toolbars and status displays stay in sync without polling - Dragging the vertical scrollbar thumb now shows a floating "Page N / M" bubble that previews the page the view will land on - a big help in long documents; the
ScrollHintEnabledproperty (on by default) turns it off
Version 3.226.0
Added
- Completed the fill-and-save loop in the
TPDFlibViewercontrol:SaveToFileandSaveToStreamwrite the displayed document - committed form edits included - back to disk or a stream (any open in-place editor commits first) - Multiline text fields now edit in a proper multi-line memo: Enter inserts a line break, Ctrl+Enter commits, Escape cancels; single-line fields keep the plain Enter-commits behaviour
- Tab and Shift+Tab cycle the in-place editor through the document's editable text and choice fields, following each field's page;
FocusNextFormFieldexposes the same navigation programmatically
Version 3.225.0
Added
- Added preset-ladder zooming to the
TPDFlibViewercontrol:ZoomInStepandZoomOutStepsnap the zoom to the standard preset sequence (1, 5, 10, 25, 50, 75, 100, 150, 200, 400, 800, 1600, 2400, 3200 percent), starting from the zoom currently in effect so fit modes step naturally; the toolbar zoom actions now use the same ladder - Ctrl+mouse wheel now zooms along the preset ladder while a plain wheel keeps scrolling
- Added keyboard shortcuts: Ctrl+'+'/'-' step the zoom, Ctrl+1/2/3 switch to actual size, fit width and fit page, and Shift+Up/Down jump to the first and last page
Version 3.224.0
Added
- Added
CreateSelfSignedCertificatewith Delphi, DLL and ActiveX entry points: generates a self-signed RSA certificate (SHA-256 signature, configurable subject, validity and key length) and exports it with its private key to a password-protected PFX file, ready forSignFileand the sign-process APIs - so signing workflows can be built and tested without an external certificate authority - The certificate is created in a throwaway key container that is deleted after the export; only the PFX keeps the key material. Self-signed certificates are meant for testing and internal documents - viewers flag them as untrusted unless installed explicitly
Version 3.223.0
Added
- Added
TPDFlibShapeWatermarkto the composable watermark layer: rectangles, circles, ellipses, polygons, Bezier curve chains and straight lines stamp onto a page range with fill and stroke colours, line width and opacity, through the sameApplyWatermarkentry point as text and image watermarks - Rectangle, circle and ellipse shapes size themselves from Width/Height; polygon, curve and line shapes take their geometry from
SetPoints(local X,Y pairs), so the nine-point Position grid and custom placement apply to every shape kind; degenerate geometry (too few points) is rejected
Version 3.222.0
Added
- Added
AddLinkToEmbeddedPDFwith Delphi, DLL and ActiveX entry points: a page hotspot that opens a PDF embedded in the current document (by its EmbeddedFiles name) and jumps to a chosen page there, using the standard embedded go-to (/GoToE) action of ISO 32000-1 §12.6.4.4 with an optional new-window request; the document version rises to PDF 1.6 automatically GetAnnotActionInfoand its outline/form-field siblings now recognise embedded go-to actions, reporting the newakGoToEkind together with the embedded target name, the parent/child target relationship, the optional file specification and the /NewWindow flag
Version 3.221.0
Added
- Added
SetSignProcessAppearanceTextwith Delphi, DLL and ActiveX entry points: digital signatures can now show an automatically generated visible text appearance composed of the signer name, reason, location and signing date, with optional descriptive labels ("Signed by:", "Reason:", ...) selected through a bit mask - The text block lays out inside the signature field rectangle in Helvetica with a configurable colour; font size 0 auto-fits the lines to the field. A field image set through
SetSignProcessFieldImageFromFilekeeps precedence, and document time-stamp processes ignore the text appearance
Version 3.220.0
Added
- Added interactive form filling to the
TPDFlibViewercontrol: clicking a checkbox or radio button toggles it, and clicking a text or choice field opens an in-place editor over the field (Enter commits, Escape cancels, leaving the editor commits); read-only fields are left alone and the changed page re-renders automatically - Every write fires the new
OnFormFieldValueChangedevent, andHighlightFormFieldswithFormHighlightColorpaints a translucent backdrop over each fillable area so users can spot form fields - Added the programmatic counterparts
FormFieldAtPagePoint,GetFormFieldPageRect,ToggleCheckBoxField,SetFormFieldValueAndRefresh,BeginEditFormFieldandCommitInplaceEditor, driving the same machinery without mouse input
Version 3.219.0
Added
- Added annotation interaction to the
TPDFlibViewercontrol: clicking a non-link annotation fires the newOnAnnotClickevent with the page, annotation index and subtype, andAnnotAtPagePointexposes the hit test programmatically (Popup companions are skipped) - Hovering an annotation now shows its Contents text as the control's hint (the
AnnotHintsswitch, on by default, works with the standardShowHintproperty) - Added
SaveAnnotAttachmentToFileto write a FileAttachment annotation's embedded file to disk, completing click-to-save attachment workflows in the viewer
Version 3.218.0
Added
- Added a cross-session disk page cache to the
TPDFlibViewercontrol: settingDiskCacheFolderpersists rendered pages on disk so a recently viewed document reopens instantly without re-rendering - Cached pages are keyed by a fingerprint of the document's path, size and last write time, so editing the file automatically invalidates its stale pages; the cache keeps up to ten documents and prunes the least recently used ones
- Added the
DiskCacheHitscounter reporting how many page renderings the disk cache saved
Version 3.217.0
Added
- Added the
PDFlibViewerActionsunit with twenty ready-madeTActiondescendants forTPDFlibViewer, so toolbars and menus work without glue code: page navigation (First/Prior/Next/Last), zoom (In/Out/FitWidth/FitPage/ActualSize), view rotation (clockwise/anticlockwise), printing, file open and save-as dialogs, copy selected text, and the five mouse-tool mode switches - Each action targets a viewer through its
Viewerproperty and keeps its enabled state (document open, page position, selection present) and checked state (active zoom fit or mouse tool) up to date automatically; all actions register in the losLab PDF category for the Action List editor - Added
TPDFlibViewer.EffectiveZoomPercentreporting the zoom actually in effect (including computed fit-width/fit-page factors) so zoom steps can build on it
Version 3.216.0
Added
- Added search-hit highlighting to the
TPDFlibViewercontrol:HighlightSearchHitssearches the whole document and paints a translucent bar over every match that stays in place while scrolling, zooming and rotating, withClearSearchHighlights,SearchHighlightCountand a configurableSearchHighlightColor TPDFlibSearchPanel.RunSearchnow also paints the hit bars in the attached viewer (the newHighlightInViewproperty, on by default, turns this off), so search results are visible on the pages, not just in the hit list
Version 3.215.0
Added
- Added mouse tool modes to the
TPDFlibViewercontrol through the newViewerModeproperty:vmSelecttext selection (default),vmHandpan-by-dragging with a grab cursor (a plain click still follows links),vmZoommarquee zoom that magnifies the dragged band to fill the viewport,vmSnapshotregion capture to the clipboard, andvmHighlightpersistent translucent region highlighting - Added
CaptureRegionto render any client region (pages plus highlights) into a caller-owned bitmap, theOnSnapshotevent andSnapshotToClipboardswitch for snapshot handling, andAddHighlightRegion/ClearHighlightRegions/HighlightRegionCountwith a configurableHighlightColorfor page-anchored highlights that survive zoom, rotation and navigation
Version 3.214.0
Added
- Added printing to the
TPDFlibViewercontrol:PrintDocshows the standard Windows print dialog (printer choice, page range, copies, collation) and hands the job to the library's printing engine, whilePrintDoc(False)prints the whole document to the default printer without any UI - Added
PrintDocRangefor fully programmatic viewer printing with an explicit printer name, page range, copy count and collation flag
Version 3.213.0
Added
- Added view rotation to the
TPDFlibViewercontrol:RotateClockwise90andRotateAntiClockwise90turn the displayed pages in 90-degree steps, and theViewRotationproperty reads or sets the angle directly (0, 90, 180 or 270) - Rotation is a pure view attribute: the document is never modified, link clicking and text selection keep working at every angle, fit-width and fit-page zoom modes adapt to the rotated page shape, and opening a new document resets the view to 0 degrees
- Rotated page bitmaps are cached per angle, so switching between angles reuses previous renderings instead of re-rendering
Version 3.212.0
Changed
- Improved XFA datasets SOM path compatibility:
GetXFAFormFieldValueandSetXFAFormFieldValuenow accept simple FormCalc-style predicate selectors such as$data.Receipt.Detail.[Total_Price > 200].Descriptionand update every matching data node when a predicate selects a subset
Version 3.211.0
Changed
- Improved XFA datasets SOM path compatibility:
GetXFAFormFieldValueandSetXFAFormFieldValuenow accept Data DOM class selectors#dataGroupand#dataValuewith numeric or wildcard occurrences, allowing class-based paths such as$data.Receipt.#dataGroup[0].#dataValue[0]
Version 3.210.0
Changed
- Improved XFA datasets SOM path compatibility:
GetXFAFormFieldValueandSetXFAFormFieldValuenow accept the$recordroot in non-record-processing packets, so paths such as$record.Taxand$record/Detail[0]/Total_Priceresolve from the outer data record element
Version 3.209.0
Changed
- Improved XFDF annotation interchange: annotation exports now write standard border style attributes
width,style, anddashesfrom PDF annotation/BSvalues, and annotation imports restore those attributes on inserted annotations
Version 3.208.0
Changed
- Improved XFDF annotation interchange: annotation exports now write standard
creationdateandopacityattributes from PDF annotation/CreationDateand/CAvalues, and annotation imports restore those attributes on inserted annotations
Version 3.207.0
Changed
- Improved XFDF annotation interchange: annotation exports now write standard
flagsnames from PDF annotation/Fvalues, and annotation imports restore those names to the inserted annotation flags
Version 3.206.0
Changed
- Improved XFA datasets SOM path compatibility:
GetXFAFormFieldValueandSetXFAFormFieldValuenow accept direct child wildcard selectors such as$data.Receipt.*.Total_Priceto read or update matching child branches without selecting same-name fields on the parent node
Version 3.205.0
Changed
- Improved XFA datasets SOM path compatibility:
GetXFAFormFieldValueandSetXFAFormFieldValuenow accept descendant selectors such as$data..Total_Priceand$data.Receipt..Total_Priceto read or update the first matching descendant data node
Version 3.204.0
Changed
- Improved XFA datasets SOM path compatibility:
GetXFAFormFieldValueandSetXFAFormFieldValuenow accept theparentproperty in paths such as$data.Receipt.Detail[1].parent.Taxto read or update a selected node's parent sibling data
Version 3.203.0
Changed
- Improved XFA datasets SOM occurrence handling:
GetXFAFormFieldValueandSetXFAFormFieldValuenow support[*]selectors such as$data.Receipt.Detail[*].Total_Priceto read or update every matching repeated data node
Version 3.202.0
Changed
- Improved XFA SOM path compatibility: XFA datasets and template field APIs now preserve literal periods in slash-delimited field paths and accept escaped periods such as
Line\.Itemin dot-delimited SOM paths
Version 3.201.0
Changed
- Improved XFA datasets path compatibility: XFA field value APIs now accept slash-delimited paths after standard data SOM roots such as
$data/...,xfa.datasets.data/..., andxfa.datasets/
Version 3.200.0
Changed
- Improved XFA datasets SOM compatibility: XFA field value APIs now accept the standard
!data...short form, including slash-delimited!data/...paths
Version 3.199.0
Changed
- Improved XFA template path compatibility: template editing APIs now accept slash-delimited field paths returned by XFA field-name enumeration, including
$template/...paths
Version 3.198.0
Changed
- Improved XFA datasets namespace compatibility: field value APIs now read and update data nodes by local XML name when the business data inside the datasets packet uses its own namespace prefix, and field-name enumeration returns prefix-free paths
Version 3.197.0
Changed
- Improved XFDF annotation interchange: annotation exports now include the common
nameanddateattributes from PDF/NMand/M, annotation imports restore those values on inserted annotations, andSetAnnotStrPropertynow accepts tag 104 for annotation modified dates
Version 3.196.0
Changed
- Improved XFA field-name enumeration: field list APIs now scan every top-level data record in the datasets packet and return leaf data fields without adding container groups as fields
Version 3.195.0
Changed
- Improved XFA datasets compatibility: XFA field value APIs now read and update complete XDP packets whose datasets packet uses an unprefixed
dataelement
Version 3.194.0
Fixed
- Improved XFA template field updates: XFA template field APIs now accept standard template SOM roots such as
$templateandxfa.template, and template-only changes in complete XDP streams are saved correctly
Version 3.193.0
Changed
- Improved XFA field addressing: XFA field value APIs now accept standard data SOM roots such as
$dataandxfa.datasets.datain addition to relative field paths
Version 3.192.0
Changed
- Improved XFA XML packet handling: XFA streams with UTF-16 byte order marks or UTF-16 XML byte patterns now decode before XML parsing, so UTF-16 encoded form values remain available through XFA field read/write APIs
Version 3.191.0
Changed
- Improved XFA packet authoring:
SetXFAFromStringnow creates the requiredAcroFormcontainer when a document does not already have form data, replaces stale parsed XFA state when a complete XFA packet is stored, and keeps the saved packet available through XFA field read/write APIs
Version 3.190.0
Changed
- Improved XFDF annotation interchange: annotation exports now write the common
colorattribute from the PDF/CRGB array, and annotation imports now restorecolor="#RRGGBB"values into the inserted annotation color array
Version 3.189.0
Added
- Added XFDF annotation interchange APIs:
ExportAnnotationsToXFDF,ExportAnnotationsToXFDFString,ImportAnnotationsFromXFDFandImportAnnotationsFromXFDFStringnow read and write ISO 19444<annots>data for text-style annotation comments, including page, rectangle, title, subject and plain contents data
Version 3.188.0
Changed
- Improved XFDF rich text field import: fields with
<value-richtext>now preserve the rich text XML in the fieldRVvalue while still applying the plain<value>fallback when present
Version 3.187.0
Changed
- Improved XFDF form-data interchange for multi-select choice fields: repeated
<value>elements now import into the selected-value array, and exporting a multi-select choice field now writes one<value>element per selected item instead of flattening them into one escaped text node
Version 3.186.0
Changed
- Improved XFDF form-data export for rich text fields: fields with an
RVrich text value now include a<value-richtext>element while preserving the plain<value>fallback
Version 3.185.0
Changed
- Improved XFDF form-data import for rich text fields: when a field provides
<value-richtext>without a plain<value>, the importer now extracts the XHTML text content and applies it to the matching AcroForm field instead of skipping the field
Version 3.184.0
Changed
- Improved XFDF form-data interchange: exports now use the standard XFDF namespace with
xml:space="preserve", emit nested<field>elements for hierarchical AcroForm names, skip non-terminal parent field values, write file exports as UTF-8, and import whitespace-flexible XFDF with nested fields, single-quoted attributes, CDATA, XML entities, and numeric character references
Version 3.183.0
Added
- Added
SanitizeDocument(Flags)which strips sensitive content in one call: removes all global JavaScript, removes the catalog OpenAction, strips /A actions from every annotation, blanks Author/Subject/Keywords/Creator/Producer metadata (both /Info and XMP), and optionally deletes all annotations. Flag bitsSANITIZE_JAVASCRIPT/SANITIZE_ACTIONS/SANITIZE_METADATA/SANITIZE_ANNOTATIONS/SANITIZE_OPEN_ACTIONcombine;SANITIZE_ALLapplies every strip. Closes the classic data-leak hole where redaction removes visible content but leaves metadata or hidden scripts recoverable - Added
TPDFAnnots.RemoveAnnotAction(Index)to strip the /A action dictionary from an individual annotation (used by SanitizeDocument, also useful standalone)
Version 3.182.0
Added
- Image elements returned by
EnumPageElementsnow carry their real placement rectangle (Left/Top/Right/Bottom) instead of zeros. Backed by a newTPDFContentProgram.EnumImagePlacementsmethod that walks the content stream tracking the CTM (cm/q/Q) and maps eachDooperator's 1x1 unit square into page coordinates - Added four showcase demos: DocumentProperties (DocInfo/page-box/rotation/transition/viewer-preferences/XMP round-trip), FormProperties (per-field property grid: type/value/readonly/MaxLength/MultiLine/description), SignatureValidator (enumerate signature fields + verify + signer certificate), Reader (VCL TPDFlibViewer with open/navigate/zoom/copy-text)
Version 3.181.0
Added
- Added
SetXMPPropertyexposing the existing schema-aware XMP engine (PDFlibXMP) through the public facade: set any Dublin Core (dc:), XMP Basic (xmp:), Adobe PDF (pdf:), PDF/A ID (pdfaid:), PDF/UA ID (pdfuaid:), or XMP Media Management (xmpMM:) property by namespace + key without hand-writing RDF XML - Added
ImportFormDataFromFDF/ImportFormDataFromFDFStringwhich parse an FDF /Fields array (each<< /T (name) /V (value) >>) and apply each value to the matching AcroForm field by title, inverting the EscapePDFText octal/paren escaping. Closes the asymmetric export-only gap - Added
ExportFormDataToXFDF/ExportFormDataToXFDFString/ImportFormDataFromXFDF/ImportFormDataFromXFDFStringfor XFDF (XML Forms Data Format) bidirectional interchange - the modern XML counterpart of FDF - Made the six namespace-scoped XMP setters (
SetDublinCore,SetXMPBasic,SetAdobePDF,SetPDFA,SetPDFUA,SetXMPMM) public onTPDFlibXMPso advanced callers can drive the engine directly
Version 3.180.0
Added
- Added
SearchAndReplaceTextInContentwhich performs TRUE content-stream text replacement (rewriting the Tj/TJ/'/" show-text operators in place viaTPDFContentProgram.ReplaceTextRun), unlike the existing mask-basedSearchAndReplaceTextthat only overlays a rectangle on top of the original glyphs. The original text is gone from the stream and cannot be recovered. Locates hits viaSearchText, maps each hit rect to its covering instruction viaFindInstructionsInRect, rewrites, and writes the layer back
Version 3.179.0
Added
- Added a structured internal logger (
TPDFlibLogger) in a newLib/PDFlibLogger.pasunit with four levels (Debug/Info/Warn/Error), a host callback (OnLog), an optional thread-safe file sink, and an error-code-to-message map (PDFlibErrorMessage) that finally gives the existing numeric codes (1xx/3xx/4xx/5xx) human text. Exposed onTPDFlibvia theLoggerproperty - Added
RenderPagesToFilesParallelwhich renders a page range to one file per page using aTTaskpool with oneTPDFlibinstance per worker (TPDFlib is not thread-safe) and per-threadCoInitializefor GDI+ apartment safety. Scales near-linearly with CPU cores for CPU-bound raster output
Version 3.178.0
Added
- Added
EnumCertificatesto enumerate every certificate in a Windows system store ("MY", "Root", ...) returning subject, issuer, serial number, validity window, HasPrivateKey, and Qualified (eIDAS QCStatements extension, OID 0.4.0.1862.1.7, detected via a new built-in DER decoder in PDFlibASN1) - replaces the previous single-cert-by-CNSetSignProcessCertFromStorelimitation - Added
SetSignProcessCertFromStoreByHandleto select a signing certificate by raw PCCERT_CONTEXT handle obtained from enumeration, letting callers pick by any criterion (qualified filter, validity, fingerprint) rather than only by Subject CN - Added
RedactRegionwhich truly removes text, vector paths, and image XObjects whose painted area intersects a rectangle (editing the content stream so removed content cannot be recovered, unlikeMaskRectwhich only covers it), with optional black fill and /Redact annotation. Backed by a CTM-tracking content-stream analyser in PDFlibContentModel (FindInstructionsInRect) - Added minimal DER decoder functions (
DERDecodeLength,DERFindExtensionByOID) to PDFlibASN1 for in-process certificate extension inspection without CryptDecodeObjectEx
Version 3.177.0
Added
- Added page stitching APIs that compose existing pages into new layouts via vector Form XObject capture (preserving full vector fidelity, unlike content-stream concatenation):
StitchPageOverlayoverlays one page onto another at a position with optional opacity,StitchPagesSideBySideplaces two pages left/right on a new wider page, andStitchPagesVerticallystacks a page range into a new tall poster-style page - Added a composable watermark template layer in a new
Lib/PDFlibWatermark.pasunit:TPDFlibWatermarkBasewith nine-point positioning (wpTopLeft..wpBottomRightpluswpCustom),TPDFlibTextWatermark,TPDFlibImageWatermark, andTPDFlibCompositeWatermarkwhich applies a list of sub-watermarks recursively across a shared page range - Added
TPDFlib.ApplyWatermarkas a convenience entry point that delegates to a watermark template's own page range and settings
Version 3.176.0
Added
- Added named render-output format constants (
PDF_RENDER_BMP,PDF_RENDER_EMF,PDF_RENDER_EMFPLUS,PDF_RENDER_EMF_DUAL, etc.) that map 1:1 to the integerOptionsvalues accepted byRenderPageToFile,RenderPageToStream,RenderPagesToFiles, andRenderDocumentToFile - Added
TPDFlibMetafileFormatenum and the convenience methodsRenderPageToMetafileStreamandRenderPageToMetafileFile, which accept a named metafile variant (mfEMF, mfEMFPlus, mfEMFDual, mfWMF) instead of a bare integer - Added EMF+ Dual output mode (Options value 11 / mfEMFDual), which records both GDI and GDI+ commands in the same metafile for compatibility with older GDI-only consumers
- Added
TPDFlibClipboardFormatenum andRenderPageToClipboard, which places a rendered page on the Windows clipboard as an enhanced metafile (CF_ENHMETAFILE), a DIB bitmap (CF_DIB), the page Unicode text (CF_UNICODETEXT), or all three at once - Added a new
Lib/PDFlibClipboard.pasunit with low-level Win32 clipboard placement helpers used byRenderPageToClipboard - Added full per-monitor DPI awareness to
TPDFlibViewer: a new publicScreenDPIproperty, aCreateWndoverride that auto-detects the host monitor DPI viaGetDpiForWindow(with aGetDeviceCapsfallback), and aWM_DPICHANGEDhandler that rebuilds the layout and clears the bitmap cache when the window moves between monitors - Added
TPDFRenderer.SetEMFPlusMetafileTypeto select between EMF+ Only and EMF+ Dual recording at the renderer level
Fixed
- Fixed the
RenderPageToFilereference page where the Options value list was misplaced in the Page row and the Options cell was empty
Version 3.175.3
Added
- Added a Lib/PDFlibTableExport.pas unit that renders any TDataSet (FireDAC, ClientDataSet, query result) into a paginated PDF table with styled header, zebra striping, right-aligned numeric columns, and automatic page continuation, plus a Demo/Delphi/DataSetExport console demo that loads the RAD Studio customer.FDS sample via FireDAC and exports it
Version 3.175.2
Added
- Added end-to-end Demo/ReportBridges projects that build a minimal report in FastReport, QuickReport, and ReportBuilder and export it to PDF through the matching Addons bridge, with a dedicated build-ReportBridges.cmd that supplies the engine source paths and gating symbols so the standard demo build still compiles the projects as stubs
Version 3.175.1
Added
- Added a Delphi JBIG2 options matrix demo that sweeps SymbolExtract, SkipBlackDots, BlackDotSize, and LossyLevel combinations against CCITT G4 and Flate baselines, with per-row PDF, CSV, and summary outputs
- Added a Delphi Pattern showcase demo covering axial and radial RGB shaders, a Coons-patch mesh shader, and a custom tiling pattern applied as fill, stroke, and text colour
- Added a Delphi CCITT fax matrix demo comparing Group 3 1-D, Group 3 2-D, and Group 4 compression with BlackIs1 and Interpolate option bits, reporting each output size and the resulting /Filter name
- Added FastReport, QuickReport, and ReportBuilder export bridges under Addons that render a prepared report into a PDF Library for Delphi PDF via the engine's native object, metafile, and DrawCommand surfaces respectively
Version 3.175.0
Changed
- Expanded the WorkflowGallery demo with an annotation variant matrix that records text highlight fills, markup styles, note icons, free text, caret, and stamp annotations in companion CSV and HTML reports
Version 3.174.0
Changed
- Expanded the C++Builder AdvancedWorkflowMatrix demo to map action navigation, PDF/A and AcroForm workflows, font diagnostics, streaming delivery, and the latest scan-compression helpers into the generated matrix reports
Version 3.173.0
Added
- Added the DeliveryWorkflowMatrix Delphi demo for streamed Web and CGI PDF output, page-thumbnail validation, and watermark delivery workflows using one generated PDF byte buffer
Version 3.172.0
Added
- Added outline tree convenience APIs for ordered sibling insertion, child creation, subtree deletion, and preorder outline enumeration with parent, sibling, level, destination page, open-state, and title details
Version 3.171.0
Added
- Added the FontDiagnosticsMatrix Delphi console demo for CJK and Unicode font paths, TrueType subset updates, installed-font probes, document font enumeration, and font diagnostics reports
Version 3.170.0
Added
- Added the CanvasMigrationMatrix Delphi console demo for Canvas DC migration, raw content and path entry points, Delphi color helpers, pattern-filled text, watermarking, page thumbnail workflows, and rendered validation previews
Version 3.169.0
Added
- Added dedicated LayerCompositionMatrix, TransparencyMaskMatrix, and ComplianceFormWorkflowMatrix Delphi console demos for optional-content print/export policy, Pattern/Form XObject composition, transparency mask comparison, PDF/A-1b success and failure examples, AcroForm action workflows, appearance rebuilds, and visible signature templates
Version 3.168.0
Added
- Added dedicated ImageCompressionMatrix and SecurityPermissionMatrix Delphi console demos with generated PDF, CSV, and HTML reports for image compression strategy selection, scan compression, JPEG render quality, and encrypted permission profile auditing
Version 3.167.0
Added
- Added named helper APIs for JBIG2 bitmap encoding, EMF import options, AcroForm event actions, and chained actions so callers can use explicit option switches instead of composing integer bitmasks manually
Version 3.166.0
Added
- Added a runnable C++Builder AdvancedWorkflowMatrix console demo with PDF, CSV, and HTML outputs that map advanced canvas migration, EMF import, image compression, AcroForm, signature, security, PDF/A, optional-content, pattern, and Form XObject workflows to C++Builder project entry points
Version 3.165.0
Added
- Added a Delphi action navigation matrix demo that demonstrates open-document actions, document-level JavaScript, embedded-file links, remote GoTo links, AcroForm event actions, Submit/Reset/Hide link helpers, and chained Next actions with PDF, CSV, and HTML outputs
Fixed
- Fixed remote file link helpers so AddLinkToFile, AddLinkToFileEx, AddLinkToFileDest, and local file launch links create one annotation and return instead of looping indefinitely
Version 3.164.0
Added
- Added a Delphi PDF/A guard matrix demo that checks early rejection or allowed-path decisions for PDF/A mode setup, transparency, blend modes, encryption, JavaScript, multimedia, embedded files, and PDF/A-3 associated-file workflows, with generated PDF, CSV, and HTML reports
Version 3.163.0
Added
- Added an explicit ReportAdapter bridge matrix for FastReport, QuickReport, ReportBuilder, DBGrid, and custom canvas export paths, including generated CSV and HTML mapping output plus a PDF page that shows the reusable adapter strategy
Version 3.162.0
Added
- Added an advanced workflow demo matrix that generates concrete outputs for canvas migration, EMF import options, image compression comparisons, AcroForm action workflows, visible empty signatures, security permissions, PDF/A-1b checks, optional content, tiling patterns, Form XObjects, DBGrid-style table export, and large-file peak memory reporting
Version 3.161.0
Added
- Added Delphi helpers for compact open-document action construction, form-field visibility event actions, TColor and gray color setters, and direct raw content, path, text, and matrix content stream injection
Version 3.160.0
Added
- Added Delphi helpers for bitmap-to-JBIG2 scanned-image compression, one-call image mask and color-key transparency setup, GoTo action chaining, and readable AcroForm event names for JavaScript or existing action assignment
- Extended
ImportEMFFromFileExandImportEMFFromStreamExso theirOptionsflags can force bitmap import, enable EMF color-image JPEG recompression, and request GDI+ processing controls
Version 3.159.1
Changed
- Improved
SaveToStreamand bound output stream saving so large PDF stream objects are written in bounded chunks instead of copying each stream object into one intermediate output string
Version 3.159.0
Added
- Added image placement helpers that draw or fit a specified image and release its handle immediately afterward, with Delphi, DLL, and ActiveX entry points for lower peak memory in one-use image generation workflows
- Added
RenderPageToMonochromeFileExfor 1-bit BMP rendering with threshold conversion and isolated black-pixel cleanup before scanned-image compression workflows
Version 3.158.1
Added
- Added Delphi workflow demos for reusable report-style export, RichEdit-to-EMF rich text import, and combined page-thumbnail, annotation, form XObject, table, compression, JavaScript, and bound-stream output scenarios
Version 3.158.0
Added
- Added metadata encryption control APIs with Delphi, DLL, and ActiveX entry points: SetEncryptMetadata can write Standard-security PDFs with unencrypted XMP metadata streams, while GetEncryptMetadata reports the pending or loaded /EncryptMetadata state
Version 3.157.0
Added
- Added direct tiling-pattern drawing APIs with Delphi, DLL, and ActiveX entry points: BeginTilingPattern creates a temporary pattern cell drawing surface, EndTilingPattern registers it as a reusable pattern, and CancelTilingPattern discards the build without leaving a named pattern behind
Version 3.156.0
Added
- Added Delphi bound-output stream helpers:
BeginOutputToStream,EndOutputStream,CancelOutputStream, andOutputStreamActivelet streaming, web, and report-export code bind a targetTStream, finish it through the existing chunked writer, or cancel the pending target without taking stream ownership
Version 3.155.0
Added
- Added
Abort,Aborted, andResetAbortfor Delphi, DLL, and ActiveX callers so applications can mark an instance as cancelled and prevent save or append output operations from starting until the flag is cleared
Version 3.154.0
Added
- Added page-thumbnail helpers for image import options and in-memory sources, optional-content group lookup and state setters by group name, and
SetOpenActionNamedDestinationfor document-open jumps through named destinations
Fixed
GetDestNamenow resolves explicit destination array handles, including arrays returned from a named document open action
Version 3.153.0
Added
- Added convenience APIs for chained form actions, Hide and ImportData field triggers, initial optional-content group states, optional EMF imports, and color-key transparent image imports
Version 3.152.0
Added
- Added automatic URL link creation for text drawing, CCITT Group 3/4 image import helpers, JBIG2 direct-image helpers, EMF extended import wrappers, image mask attachment helpers, visible signature field creation, and form-field event/action helpers for JavaScript, SubmitForm, and ResetForm workflows
Version 3.151.0
Added
- Added
DrawPie,DrawChord,DrawEllipticPie, andDrawEllipticChordfor explicit closed circular and elliptic arc drawing with outline, fill, or fill-and-outline modes
Version 3.150.0
Added
- Added
NewGraphicsStateandSetGraphicsStateso callers can create reusable ExtGState resources for combined fill transparency, stroke transparency, line width, line cap, line join, and miter-limit settings
Version 3.149.1
Fixed
- Fixed duplicate ActiveX dispatch IDs for the Form XObject and miter-limit methods so late-bound COM callers resolve each method unambiguously
Version 3.149.0
Added
- Added
SetMiterLimitto control stroke miter-limit ratios for paths that use miter joins - Exposed
BeginFormXObject,EndFormXObject, andCancelFormXObjectthrough the DLL and ActiveX APIs
Version 3.148.0
Added
- Added reusable Form XObject builder APIs:
BeginFormXObject,EndFormXObject, andCancelFormXObjectlet callers draw a reusable template with normal page drawing calls and place it repeatedly through captured-page drawing APIs
Version 3.147.0
Added
- Added
SetTextTilingPatternandSetLineTilingPatternso captured-page tiling patterns can be reused for text, underline, and stroked graphics without duplicating drawing commands
Fixed
- Stroked shader and tiling-pattern colors now write the stroking pattern color operator instead of updating the nonstroking color state
Version 3.146.0
Added
- Added
BeginOptionalContentandEndOptionalContentso callers can mark only subsequent drawing commands with an optional content group without rewriting the existing content stream
Fixed
- Scope-closing marked-content operators are now flushed immediately when optional content, tagged PDF or artifact scopes are closed at the end of a content stream
Version 3.145.0
Added
- Added
SetTransparencyExso callers can set separate fill and stroke transparency values for subsequently drawn text and graphics while keeping the existing PDF 1.4 auto-upgrade behavior
Version 3.144.0
Added
- Added
AddLinkToNamedDestinationso a page hotspot can jump to a same-document named destination without resolving the target page at link creation time
Fixed
- Annotation action readers now return no action for pages without annotations instead of dereferencing an empty annotation cache
Version 3.143.0
Added
- Added form-field action management APIs so callers can bind an existing action to a field trigger, inspect the typed trigger action, and remove primary or additional field actions
Fixed
FormFieldJavaScriptActionnow rejects PDF/A documents and invalid trigger names instead of writing non-conforming field action dictionaries
Version 3.142.0
Added
- Added action chaining APIs so callers can append URI, named, and JavaScript next-actions to an existing annotation, outline, or form-field action and inspect chained actions through
GetActionNextCountandGetActionNextInfo
Version 3.141.0
Added
- Added
AddLinkToSubmitFormandAddLinkToResetFormso page hotspots can submit or reset AcroForm fields through standard PDF actions without JavaScript
Version 3.140.0
Added
- Added
AppendToStreamso incremental update workflows can write directly to a caller-provided stream instead of first materialising the update as anAnsiString
Changed
SaveToStreamnow serializes directly into the target stream, andAppendToString(1)now returns only the incremental update section without copying the original source bytes into a temporary buffer
Version 3.139.0
Added
- Added
GetAnnotReplyToandGetAnnotReplyTypeso threaded annotation replies can be inspected through named read-side accessors instead of generic annotation property tags
Version 3.138.0
Added
- Added the Delphi
DocumentInspectionWorkbenchsample to batch-inspect PDFs with combined font diagnostics, image sampling, color-space discovery, load timing, and JSON, CSV, and HTML reports
Version 3.137.0
Added
- Added the Delphi
ImageDecodeBenchmarksample to measure page image discovery, decoded image bytes, and page color-space discovery with CSV and HTML timing reports
Version 3.136.0
Added
- Added
GetDocumentFontDiagnosticsandTPDFlibFontDiagnosticsto summarize document font embedding, subsetting, Standard 14, CID, Type3, and unknown-font counts in one call
Version 3.135.0
Added
TPDFlibSignatureVerifier.VerifySignerCertificateChainnow builds the embedded signer certificate chain with Windows CryptoAPI and returnsvsValidonly when the chain satisfies the Windows base trust policy, while self-signed or otherwise untrusted signer certificates returnvsInvalidwithout changingVerifySignature's content-integrity result
Version 3.134.0
Fixed
TPDFlibSignatureVerifier.VerifySignaturenow validates legacyadbe.pkcs7.sha1signatures, returningvsValidwhen the signed digest matches the covered/ByteRangebytes andvsInvalidafter covered content changes
Version 3.133.0
Added
- Added
RenderPagesToFilesandDARenderPagesToFilesto render arbitrary page ranges to numbered output files while reusing renderer setup across the selected pages
Version 3.132.0
Added
- Added
AddPageHeaderandAddPageFooterconvenience stampers that place text at a fixed top or bottom margin on every page in a range, with left/centre/right alignment and token expansion (&Pcurrent page,&Ntotal pages,&Ddate,&Tdocument title,&&literal ampersand) StampTextandStampImagewithsoUnderlaynow truly place content beneath existing page content by prepending a fresh content layer (previously it drew on top likesoOverlay); backed by a newPrependContentLayerpage-tree method
Version 3.131.0
Added
- Added
ScalePage(ScaleX, ScaleY, Anchor)which scales the selected page's content by wrapping every content layer in aq sx 0 0 sy tx ty cm ... Qgraphics-state block and resizing the MediaBox and CropBox; the anchor keeps the lower-left origin (0), centres the content (1) or keeps the top-left (2) - Extended
EnumPageElementswith a newekPathelement kind: each page now also reports its vector paths with a bounding box, point count, closure flag and paint operator, lifted from the content streams via the structured content model
Version 3.130.0
Added
- Added three file-size optimisation APIs that shrink loaded documents on re-save:
SubsetEmbeddedFontsrewrites every embedded TrueType font program (FontFile2) down to the Unicode characters the document actually renders via the FontSub.dllCreateFontPackageservice;DownsampleImages(MaxDPI, Quality, Filter)decodes each image XObject above the target DPI, resamples it (box or bilinear) and re-encodes as JPEG or PNG;NormalizeLZWStreamsrewrites every stream still filtered with LZWDecode to FlateDecode through the existing LZW decoder and Flate encoder, preserving Predictor parameters
Version 3.129.0
Added
- Added mesh shading creation APIs for the four shading types that previously only had read/parse support:
NewRGBFreeFormTriangleMesh(ShadingType 4, free-form Gouraud triangles),NewRGBLatticeTriangleMesh(ShadingType 5, lattice-form Gouraud),NewRGBCoonsPatchMesh(ShadingType 6, Coons patch mesh) andNewRGBTensorPatchMesh(ShadingType 7, tensor-product patch mesh) — each builds a named mesh shading pattern from a flat vertex or patch list with selectable coordinate/colour bit depth and a bounding box, selectable withSetFillShader/SetLineShader/SetTextShaderlike the existing axial and radial shaders
Version 3.128.0
Added
- Added a thumbnail strip for the viewer:
TPDFlibThumbnailBarshows a miniature of every page, rendered lazily as rows scroll into view, with the page number underneath; clicking a thumbnail jumps the attached viewer to that page — completing the viewer control family (viewer, bookmark panel, search panel, thumbnails)
Version 3.127.0
Added
- Added a search panel for the viewer:
TPDFlibSearchPanel.RunSearchsearches the whole attached document and lists one row per hit with its page number and matching text; clicking a hit jumps the viewer to that page
Version 3.126.0
Added
- Added a bookmark panel for the viewer:
TPDFlibOutlineViewerlists the document outline tree with indentation and jumps the attached viewer (viaAttachViewer) to a bookmark's destination page when clicked; it is built on a reusable panel base class that later side panels share
Version 3.125.0
Added
- Added text selection to the viewer control: drag with the left mouse button to select, press Ctrl+C or call
CopySelectedTextto copy the selection to the clipboard; the captured text is available through theSelectedTextproperty, ordered top to bottom with line breaks between bands - Added
GetTextInRegion, which returns the text of a rectangular page region directly — the same block-based lookup the mouse selection uses, available for custom selection interfaces
Version 3.124.0
Added
- The viewer control now pre-renders neighbouring pages on a background thread, so paging forward or backward shows the next page instantly; the worker uses its own document instance and hands finished renderings to the cache without blocking the UI
- Added link interactivity to the viewer: clicking a link annotation fires
OnLinkClickwith the page number and the same typed action summaryGetAnnotActionInfoproduces (web address, document destination, named action and so on);LinkActionAtPagePointexposes the underlying hit test for custom handling
Version 3.123.0
Added
- The viewer control gained continuous scrolling:
SetDisplayModeswitchesTPDFlibViewerbetween single-page display and a continuous vertical scroll through the whole document, with only the pages visible in the viewport rendered and the current page tracking the scroll position (firingOnPageChangeas pages come into view) - Rendered pages are now kept in a least-recently-used bitmap cache, so scrolling back and forth does not re-render; the memory budget defaults to 128 MB and adjusts with
SetCacheLimit, evicting the oldest pages when the budget shrinks or fills - Added mouse-wheel scrolling and keyboard navigation to the viewer: PageUp/PageDown (page steps in single-page mode, viewport steps in continuous mode), arrow keys, Home and End
Version 3.122.0
Added
- Added an interactive PDF viewer control:
TPDFlibVieweris a VCL scrolling control that opens a document from file or attaches to an existingTPDFlibinstance, displays pages through the selected rendering engine (GDI+, Cairo or PDFium), and offers page navigation (GoToPage/NextPage/PrevPagewith anOnPageChangeevent) and zoom control — a fixed percentage, fit-to-width or fit-to-page, recomputed automatically when the control resizes; pages wider than the viewport scroll, narrower pages centre - Added a design-time package (
Package\PDFlibViewerPkg.dpk) that registers the control on the losLab PDF palette page for drag-and-drop use in the IDE
Version 3.121.0
Added
- Automatic complex-script shaping in
DrawText: text containing Arabic, Hebrew, Indic or other complex-script characters is now detected and shaped automatically — contextual letter forms, mandatory ligatures and right-to-left ordering come out correctly with no code changes; the standard-14 names map to their metric-compatible installed faces (Helvetica to Arial, Times to Times New Roman, Courier to Courier New) andGetTextWidthmeasures through the same shaping pass so alignment stays consistent; Latin, Cyrillic, Greek and CJK text keeps its existing drawing path byte for byte - Added
SetTextShapingto toggle the automatic routing (enabled by default; pass 0 to restore the exact pre-shaping behaviour)
Version 3.120.0
Changed
- Shaped-text companion fonts are now subsetted at save time to just the glyphs the document shows, shrinking output files dramatically (a full font program of over a megabyte reduces to the used glyphs); the subsetted font keeps its glyph numbering, carries a subset-tagged
BaseFontname and real per-glyph/Wwidths, and gains a ToUnicode map that translates each shaped glyph back to its source characters — so copying or extractingDrawShapedTextoutput returns the original string, including both letters behind a lam-alef ligature
Version 3.119.0
Added
- Added complex-script text drawing:
DrawShapedTextshapes Arabic, Hebrew and other complex-script strings before drawing them — contextual letter forms, mandatory ligatures such as lam-alef, and right-to-left ordering all come out correctly — and writes the shaped glyphs through a companion Type0 (Identity-H) font embedding the whole font program, so forms without a character code of their own render exactly; one companion font is created per face and reused across calls - Added
GetShapedTextWidth, which measures text through the same shaping pass so ligated text measures at its true drawn width — use it to right-align or centre shaped paragraphs
Version 3.118.0
Added
- Added the foundation for complex-script text shaping: a new Uniscribe (usp10.dll) binding turns Arabic, Hebrew and other complex-script strings into correctly ordered and shaped glyph runs — contextual Arabic forms, mandatory ligatures such as lam-alef, and right-to-left ordering — reporting each glyph's font glyph index, advance and source-character cluster; this is the shaping engine that later versions build the drawing path on, and it is loaded lazily so platforms without Uniscribe simply keep the existing per-character path
Version 3.117.0
Added
- Added ICC profile introspection:
GetOutputIntentICCInfoparses the ICC profile attached to the document's OutputIntent and reports its version, device class, data colour space, profile connection space, rendering intent and component count — useful for inspecting the print condition of PDF/A and PDF/X files; the renderer's ICCBased colour-space handling now also derives the component count from the profile header itself when a shading's colour space carries neither/Alternatenor/N
Version 3.116.0
Added
- Added a table-aware text extraction mode:
GetPageTextoption 10 clusters the left edges of the page's text blocks into global column positions and emits tab-separated rows, so tabular layouts extract as ready-to-import TSV with vertically aligned cells staying aligned across rows
Version 3.115.0
Added
- Added page imposition:
ImposePagesNUplays every page of the document out on new sheets in an n-up grid (2-up, 4-up, 9-up or any Columns x Rows arrangement) with each page aspect-fit and centred in its cell as live vector content, or — with the booklet option — produces saddle-stitch sheets whose page pairing folds into a booklet when printed duplex and stacked
Version 3.114.0
Added
- Extended the typed action readers
GetAnnotActionInfoandGetOutlineActionInfoto four more action kinds — Hide (with the number of hidden targets and the hide/show flag), SubmitForm (submission URL and field count), ResetForm (field count) and ImportData (source file) — and to expose the name payload of Named actions (e.g.NextPage); both readers now share one parser, so annotation links and bookmarks report identical information
Version 3.113.0
Added
- Added form-field formatting helpers:
SetFormFieldNumberFormat(decimal places, separator style, negative style and currency placement),SetFormFieldPercentFormatandSetFormFieldDateFormat(Acrobat date picture strings such asmm/dd/yyyy) each write the standard Acrobat formatting JavaScript pair onto the field's additional actions — a keystroke filter plus a display formatter — so conforming viewers validate input and render formatted values without hand-written JavaScript
Version 3.112.0
Added
- Added Sound annotation creation:
AddSoundAnnotationFromFilereads an uncompressed PCM WAV file (8 or 16 bit, mono or stereo) and embeds its samples behind a speaker-icon annotation as a/Soundstream in the signed encoding the PDF sound machinery expects, completing the round trip with the existingGetAnnotSoundToFile/GetAnnotSoundToStringreaders
Version 3.111.0
Added
- Added threaded annotation replies (ISO 32000-1 §12.5.6.3):
AddAnnotationReplyappends a reply to any existing annotation as a hidden Text annotation whose/IRTreferences the target with the/RTreply relationship, so Acrobat and other viewers show it threaded under the target in the comment panel; combine withAddAnnotationStateand the FDF comment interchange for complete collaborative-review round trips
Version 3.110.0
Added
- Added mesh and function-based shading rendering, completing coverage of all seven PDF shading types: free-form Gouraud triangle meshes (type 4), lattice-form Gouraud meshes (type 5), Coons patch meshes (type 6) and tensor-product patch meshes (type 7) are decoded from their bit-packed data streams — including shared-edge patch flags,
/Decodevalue mapping and optional colour/Functionramps — and painted through the Cairo engine's native mesh gradients; function-based shadings (type 1) are approximated by sampling the shading function over its domain into a fine patch grid; supported colour spaces cover DeviceRGB, DeviceGray, DeviceCMYK and ICCBased alternates (the GDI+ engine has no mesh gradient primitive and leaves mesh-shaded areas unpainted)
Version 3.109.0
Added
- Completed the content editing framework (phase 4) with text-level editing:
TPDFContentProgram.GetTextRunsenumerates the text-showing instructions of a page with the font resource and size active at each one (tracking font state through save/restore nesting), andReplaceTextRunswaps the shown text in place — a true content-stream replacement that keeps the original position, font and colour, unlike overlay-based approaches that mask the old text and redraw on top
Version 3.108.0
Added
- Added an object model for page geometry to the content editing framework (phase 3):
TPDFContentProgram.LiftPathraises a path object (move/line/curve/rectangle construction operators plus the clipping and painting operators that end it) into an editableTPDFPathof subpaths and segments;TPDFPath.Transformapplies an affine matrix to every point (move, scale, rotate or skew existing artwork);LowerPathwrites the modified geometry back over the original instructions, ready forWritePageContentLayer
Version 3.107.0
Added
- Extended the content editing framework (phase 2) with instruction-level conveniences on
TPDFContentProgram:InsertFromSourceparses a content snippet and splices its instructions at any position;SetOperandrewrites a single operand from source syntax (renumber a coordinate, recolour a fill);OperandTextreads an operand back;InstructionGroup,FindNextOpandFindNextGroupnavigate the instruction list by operator or by the ISO 32000-1 operator category
Version 3.106.0
Added
- Added the first phase of the structured content editing framework:
ParsePageContentLayerdecodes a page content layer into an editableTPDFContentProgram— a list of instructions, each one PDF content operator (all 73 operators of ISO 32000-1 Table 51) with its decoded operand objects — andWritePageContentLayerserialises the program back into the page, so callers can parse, inspect, delete or reorder drawing instructions and rewrite the page;GetPageContentLayerCountreports the number of content layers, which are edited independently; the emitter is behaviour-preserving (an unmodified round trip renders pixel-identically), unknown operators survive unchanged and inline images are carried verbatim
Version 3.105.0
Added
- Added a reading-order text extraction mode:
GetPageTextoption 9 returns the page text in visual reading order using recursive whitespace analysis (XY-cut), so multi-column layouts come out column by column — a full-width heading first, then the whole left column, then the right column — instead of interleaving the columns line by line as the geometric top-then-left orderings do
Version 3.104.0
Added
- Added signer-certificate introspection to the signature verifier:
GetSignerCertificatedecodes the PKCS#7 payload of the first signature field and returns a typed summary of the embedded signer certificate — subject and issuer display names, the serial number in conventional hex form, the UTC validity window (NotBefore/NotAfter) and a convenience flag reporting whether the certificate is currently within that window; the signer is matched among the embedded certificates by issuer and serial number
Version 3.103.0
Added
- Added
NewRGBRadialShader, the radial counterpart ofNewRGBAxialShader: registers a named two-circle radial gradient (ShadingType 3, ISO 32000-1 §8.7.4.5.3) blending between two RGB colours, with optional colour extension beyond the circles; select it with the existingSetFillShader,SetLineShaderorSetTextShaderto paint circular “glow” fills, strokes and text
Version 3.102.0
Added
- Added radial (ShadingType 3) gradient rendering (ISO 32000-1 §8.7.4.5.4): the page renderer now paints two-circle radial shadings used by
shoperators and shading-pattern fills, in addition to the previously supported axial (ShadingType 2) gradients; supported through both the GDI+ and Cairo raster engines with multi-stop colour functions, DeviceRGB/DeviceCMYK/DeviceN/Separation/ICCBased colour spaces and/Extendhandling
Version 3.101.0
Added
- Added cloudy border effects (ISO 32000-1 §12.5.4):
SetAnnotCloudyEffectturns the border of a Square, Circle, Polygon or FreeText annotation into a “revision cloud” of connected semicircles by writing the/BEborder effect dictionary, with intensity 1 or 2 matching Acrobat's Cloudy styles and 0 removing the effect again;GetAnnotCloudyEffectreads the setting back (0 = no cloud, else the 1..2 intensity)
Version 3.100.0
Added
- Added annotation review states (ISO 32000-1 §12.5.6.3):
AddAnnotationStaterecords a review status change for an existing annotation by appending a hidden Text annotation whose/IRTpoints at the target and whose/State+/StateModelcarry the status, supporting theReviewmodel (None/Accepted/Rejected/Cancelled/Completed) and theMarkedmodel (Unmarked/Marked) used by Acrobat's comment-review workflow;GetAnnotStateandGetAnnotStateModelread the recorded strings back from any annotation (empty when absent)
Fixed
- Fixed a load-time failure that prevented applications built with recent development versions from starting (a Windows certificate-name lookup was bound to a non-existent DLL entry point), and repaired compile regressions in the FDF comment import, page-range rotation and signature-flag paths
Version 3.99.0
Added
- Added document fingerprint and transition read APIs:
GetDocumentFileIDreturns the permanent document identifier from the trailer/IDarray (hex-encoded first element), useful as a stable cache key or document fingerprint;GetPageTransitionis the read-side counterpart ofSetPageTransition, returning the transition style as a typedTPDFlibPageTransitionvalue plus the display duration and transition duration by reverse-mapping the stored/Trans/S,/Dmand/Mentries
Version 3.98.0
Added
- Added page-range rotation and thumbnail introspection:
RotatePageRangeapplies a 0/90/180/270 rotation to every page in a range (wrapping the existing single-pageRotatePageso callers no longer need a per-page loop);HasPageThumbnailreports whether a page carries a/Thumbentry;GetPageThumbnailInforeads the thumbnail image XObject’s width, height and bits-per-component
Version 3.97.0
Added
- Added extended annotation property readers:
GetAnnotColorreads the/Ccolour array (0..1 RGB, with a HasColor flag distinguishing “no explicit colour” from “explicit black”);GetAnnotBorderWidthreads/BS /W, falling back to the legacy/Borderarray;GetAnnotOpacityreads the/CAstroke alpha (default 1.0);GetAnnotCreationDatereads the/CreationDatetimestamp;GetAnnotFlagsreads the/Fvisibility/print flags byte
Version 3.96.0
Added
- Added read-side security introspection APIs:
IsEncryptedreports whether the loaded document carries an/Encryptdictionary;GetEncryptionLevelreturns a typed strength (0=none, 1=RC4-40, 2=RC4-128, 3=AES-128, 4=AES-256, 5=AES-256 Acrobat X) matching the write-side encryption options;GetUserPermissionsreturns the raw/Ppermission word for direct bit testing;IsOwnerPasswordreports whether the document was opened with the owner credential
Version 3.95.0
Added
- Added advanced printing and text replacement:
PrintDocumentAdvanceddrives the full printer DEVMODE (duplex, orientation, color, print quality, paper size, paper tray) on top of copies/collation through a typedTPDFlibPrintSettingsrecord, applying each non-default field via the existing custom-printer profile mechanism;SearchAndReplaceTextruns a search across a page range and, for each hit, masks the original text block with an opaque white rectangle and redraws the replacement text at the block origin in the caller’s selected font, using an overlay replacement model
Version 3.94.0
Added
- Added annotation FDF interchange (Acrobat “Export/Import Comments”):
ExportAnnotationsToFDFStringandExportAnnotationsToFDFwalk every page’s/Annotsand serialise each annotation as a/Type /Annotentry inside an FDF/Annotsarray, carrying/Subtype,/Contents,/Rect, the/Tauthor label,/Subjand the 0-based/Pageindex;ImportAnnotationsFromFDFStringandImportAnnotationsFromFDFparse such an FDF with a small state machine and re-create each entry as a new annotation on the matching page, preserving the full annotation dictionary rather than collapsing it to a sticky note
Version 3.93.0
Added
- Added signature certification and form-field property APIs:
SetSignProcessDocMDPturns the next signature produced by a sign process into a certifying (author) signature by attaching a DocMDP/Referencetransform at level 1/2/3 (no changes / form fill-in / annotations) and setting the AcroForm/SigFlagsAppendOnly bit;GetSigFlags/SetSigFlagsread and write the raw AcroForm/SigFlagsbyte directly;GetFormFieldIsComb,GetFormFieldIsMultiLine,GetFormFieldJustificationandGetFormFieldAllowedValuesexpose the per-field/Ffstyle bits, the/Qtext quadding and the/Optchoice array as typed values
Version 3.92.0
Added
- Added attachment-export and form-field convenience APIs:
SaveAllAttachmentswalks the unified attachment list (document-level/EmbeddedFilesplus per-page/FileAttachmentannotations) and writes every stream to a directory under its file-spec name, disambiguating collisions with a numeric suffix;RemoveFormFieldByNameresolves a fully-qualified field name to its index and deletes it;RenameFormFieldrenames a field by name without a separate index lookup
Version 3.91.0
Added
- Added document-wide enumeration APIs:
EnumDocumentFontswalks every Font dictionary (callingFindFontsfirst if needed) and returns oneTPDFlibDocumentFontper font with its object number,/BaseFontname, type, encoding and embedding/subset status, removing the need toSelectFonteach entry and query scalar getters;EnumAttachmentsunifies the document-level/EmbeddedFilesname tree with per-page/FileAttachmentannotations into a singleTPDFlibAttachmentlist, recording each entry’s source, 1-based source index, file name, MIME subtype, description and byte size
Version 3.90.0
Added
- Added read-only introspection APIs for annotations, bookmarks and the document version:
GetPDFVersionreturns the effective PDF version string (e.g.1.7);GetAnnotType,GetAnnotTitle,GetAnnotSubject,GetAnnotContentsEx,GetAnnotModifiedDate,GetAnnotNameandGetAnnotRectExexpose the per-annotation fields as named wrappers (so callers no longer need magic property Tag numbers) over the existingAnalyseAnnotcache;GetOutlineLevelreturns a bookmark’s depth relative to the outline root andGetOutlineIsOpenreports whether it is expanded in a viewer (negative/Countmeans collapsed), mirroring the layout state a bookmark panel would render
Version 3.89.0
Added
- Added a JBIG2 image encoder unit
PDFlibJBIG2Enc(TPLJBIG2Encoder.EncodeToByteArray) with two backends: on Win64 the C++jbig2encarithmetic coder (ITU-T T.88) is linked statically viaPDFlibJBIG2EncC+HPDFCLibs(228 leptonica/jbig2enc objects underthirdparty/Win64x/) and registered as the default backend; on other targets, or whenUseExternalEncoderis False, a pure-Pascal MMR fallback compresses bi-level scanlines with the CCITT G4 encoder and wraps them in JBIG2 segment headers (page-info type 48 + immediate generic-region type 38) - Added an LZW encoder unit
PDFlibLZWEnc(TPLLZWEncoder.Compress), the encoder counterpart to the existingPDFlibLZWdecoder: produces a PDF-spec/LZWDecodestream with 9..12-bit variable-width codes, ClearCode/EOI and PDF-default EarlyChange semantics, plus optional TIFF Predictor 2 (horizontal differencing) so a round-trip through the decoder reproduces the original bytes
Version 3.88.0
Added
- Added a CCITT Group 3 / Group 4 (T.6) bi-level image encoder unit
PDFlibCCITTEnc(TPLCCITTEncoder), the encoder counterpart to the existingPDFlibCCITTdecoder: it encodes apf1bitbitmap to a CCITT G3 1D / G3 2D / G4 (T.6) byte stream viaCompressImage/Execute; this supplies the missing encoder so monochrome image data can be produced forCCITTFaxDecodeoutput, with full image-pipeline andRenderPageToMonochromeFileG4-output integration to follow
Version 3.87.0
Added
- Implemented cryptographic signature verification for detached PKCS#7 signatures:
TPDFlibSignatureVerifier.VerifySignature(previously a stub returningvsUnknown) now recomputes the document digest over the two/ByteRangesegments and validates it against the signedmessageDigestattribute and the signer's public key via the Windows CryptoAPI (CryptVerifyDetachedMessageSignature), returningvsValid/vsInvalidforadbe.pkcs7.detachedandETSI.CAdES.detachedsubfilters; this is the first verification layer and covers digest+signature integrity only (certificate chain, CRL/OCSP revocation and RFC 3161 timestamp-token validation remain out of scope and will be added in later layers)
Version 3.86.0
Added
- Added a merge-time per-bookmark callback: the
OnMergeOutlineevent fires for each top-level source outline whileMergeFileList/MergeFileListFast/MergeFileListStrictlinks the merged outline tree, letting the caller rename (Title) or drop (Skip=True) an incoming bookmark before it lands in the target document; the callback receives the 0-based source document index so callers can apply per-document policies
Version 3.85.0
Added
- Added signing from the Windows system certificate store:
SetSignProcessCertFromStoreresolves the signing certificate from a named store ("MY"/"Root"/...) by Subject simple-display name (typically the CN, matched case-insensitively; an empty name picks the first certificate that has a private key) and reuses the existing PKCS#7 sign pipeline, so a document can be signed without supplying a.pfx/.p12file; pair it withSetSignProcessKeysetto chooseCURRENT_USER(1) vsLOCAL_MACHINE(2)
Version 3.84.0
Added
- Added font program embedding for already-loaded documents:
EmbedMissingFontswalks every Font dictionary, reads the matching installed system font program by BaseFont name and writesFontFile2orFontFile3back, returning the number of fonts that gained a program;EmbedFontProgramembeds a single font by name using the installed system font;EmbedFontProgramFromFileembeds a single font using a caller-supplied.ttfor.otffile for fonts not installed on the system - Added
SetEmbedAllFonts, a writer-side guard that promotesAddTrueTypeFontEmbed=0toEmbed=1so newly created documents cannot accidentally reference non-embedded system fonts outside PDF/A mode as well
Version 3.83.0
Added
- Added rendering convenience APIs:
RenderPageToMonochromeFilerenders a page to a 1-bit monochrome bitmap (for fax/archiving/OCR scenarios) by downscaling from 24-bit via GDI halftone dithering without modifying the rendering core;RenderPageRegionToFilerenders only a specified sub-rectangle (“Left,Top,Width,Height”) of the page to a bitmap, wiring up the previously disconnectedRenderPageToDCClipClip pipeline
Version 3.82.0
Added
- Added FDF form data export:
ExportFormDataToFDFwrites all form field names and values of the current document into a standalone FDF file (a/Fieldsarray wrapped in%FDF-1.2), andExportFormDataToFDFStringreturns a string of the same structure, making it easier to store form data separately from the PDF or merge it later; non-ASCII bytes are escaped as 3-digit octals per ISO 32000-1
Version 3.81.0
Added
- Added page and structure convenience APIs:
SetPageTransitionwrites presentation transition effects (17 standard transitions for/Trans, including Split/Blinds/Wipe/Dissolve/Glitter, etc.) and page display duration for a specified page;GetPageFontCountandGetPageFontIDenumerate the fonts referenced by a specified page;SetMeasurementUnitaccepts a typed unit enumeration (adding twips and points to the existing pixels/millimeters/inches), along withConvertToPointsandConvertFromPointsunit conversion helpers;SaveToFileOptionsaggregates save options such as compression, linearization, and preserving the modification date into a single record
Version 3.80.0
Added
- Added security and signature convenience APIs:
EncryptFileExaccepts a typed named permission set (TPDFlibUserPermissions, distinguishing 8 named permission bits like low-resolution printing and high-resolution printing) instead of a raw permission bit integer;TPDFlibSignatureVerifier.GetSignatureMetadatareads the field name, Filter, SubFilter, signing time, reason, location, contact info, signer, and ByteRange structure validation directly from the signature dictionary without PKCS#7 decoding;PrintDocumentExspecifies the number of print copies and collation mode in a single call
Version 3.79.0
Added
- Added editing convenience APIs:
MaskRectdraws an opaque filled rectangle over a region on a specified page (for masking/redacting);SetPageThumbnailFromFileattaches a page/Thumbdirectly from an image file without polluting the content stream drawing state;FlattenFormFieldsOnPageRangeflattens all form fields across a page range (baking appearances into static content and removing active fields);InsertAnnotationinserts a built annotation dictionary at a specified location;NewMarkupAnnotationcreates highlight/strikeout/underline/squiggly markup annotations in one step and writes quad points, color, and opacity;StampTextandStampImagestamp watermarks across a page range, supporting opacity, rotation angle, and stacking position
Version 3.78.0
Added
- Added text search and page element enumeration APIs:
SearchTextsearches for a query term across a specified page range and returns the page number and bounding rectangle of each hit, supporting case-sensitive and whole-word matching options;EnumPageElementsenumerates all text blocks and embedded image elements on a specified page, uniformly returning the element type, rectangle, text, font name, and image ID;GetTextInAreaExis a rectangle-aware version ofGetTextInArea, returning each text block within the area and its bounding rectangle
Version 3.77.0
Added
- Added read-only introspection APIs to fill the previous "can write but cannot read" asymmetry:
FindOutlineByTitlefinds bookmarks by title (supporting 3 depths: sibling-only/child-only/full-subtree);GetOutlineActionInfoandGetAnnotActionInforeturn the action type of a bookmark or annotation (GoTo/GoToR/URI/Launch/Named/JavaScript) and the URI, JavaScript, or filename payload as a typed structure;GetOutlineDestinationInforeturns the target page, Fit type (XYZ/Fit/FitH/FitV/FitR/FitB/FitBH/FitBV), and coordinates;EnumSignatures,GetSignatureFieldCount, andGetSignatureFieldInfoenumerate signature fields and report whether they are signed
Version 3.76.3
Changed
- The E-Invoice demo’s Factur-X EXTENDED profile now uses the standard conformance value and guideline ID, and the ZUGFeRD 1.0 invoice adds the
ChargeTotalAmountandAllowanceTotalAmountsummation elements; all 6 profiles now produce PDF/A-3b and PDF/A-3u output that passes both veraPDF (PDF/A compliance) and Mustang (e-invoice business rule) validation
Version 3.76.2
Fixed
- XMP metadata for Factur-X/ZUGFeRD hybrid invoices now declares the PDF/A extension schema (
pdfaExtension:schemas) to describe thefx:invoice properties; the missing declaration previously caused the generated PDF/A-3 to be judged non-conformant by validators such as veraPDF
Changed
- The E-Invoice demo’s invoice XML now includes seller and buyer electronic addresses and the seller’s phone number, letting more profiles pass ZUGFeRD/Factur-X business-rule validation
- The E-Invoice demo’s profile catalog, XML construction, and PDF/A-3 generation flow were extracted into a shared unit that the GUI and the new external-validator test tool both reuse
Version 3.76.1
Fixed
- Fixed a crash when clicking Generate in the E-Invoice demo: built-in standard fonts are unavailable under PDF/A mode, so the demo now embeds a TrueType font to render the invoice page
Changed
- The E-Invoice demo removes the PDF/A-3a option (rarely used for e-invoices), and the XRechnung profile now defaults to PDF/A-3u
Version 3.76.0
Changed
- The E-Invoice GUI demo is now data-driven: invoice number, issue date, buyer and seller, net amount, tax rate, and currency are editable, and the invoice XML matches the visible page amounts exactly instead of using fixed placeholder content
- The demo generates structurally correct invoice XML per profile: Factur-X, XRechnung, and ZUGFeRD 2.0 use the
CrossIndustryInvoicestructure, while ZUGFeRD 1.0 COMFORT uses its ownCrossIndustryDocumentstructure with line items, tax totals, and payment terms - Amounts are written to XML in a fixed English decimal-point format to avoid localized thousands separators or commas breaking the schema, and user input is escaped before writing
- The demo adds a live XML preview, profile-level content self-checks, parsing of the same-named
.validation.jsonexternal validation report, and explicitly loads the repository’s sRGB ICC output intent at generation time
Version 3.75.6
Added
SetPDFAModeadds mode7, allowing PDF/A-3u metadata while continuing to permit PDF/A-3 associated files; the E-Invoice GUI demo also provides a PDF/A-3u option, and the ZUGFeRD 2.0 BASIC profile now uses PDF/A-3u by default
Version 3.75.5
Added
- Adds a Delphi E-Invoice GUI demo that can choose Factur-X, ZUGFeRD, and XRechnung profiles, generate PDF/A-3 hybrid invoices, embed the matching XML file name and guideline ID, run container validation in the interface, and show XMP invoice information, validation issues, and extracted XML
Version 3.75.4
Added
- Adds PDF/A-3 associated file and e-invoice XML support:
AddPDFA3AssociatedFileFromStringcan create Catalog/AFassociated files directly from in-memory bytes,AddFacturXAssociatedFileFromStringcan write Factur-X, ZUGFeRD, and XRechnung XML, synchronize XMP metadata, and validate the file name, profile, XMP namespace, and XML guideline ID combination, while the reading side adds detection, validation, issue-list, and XML extraction APIs
Version 3.75.3
Fixed
- PDF merge function: local variables
GlobalRootObjNum,GlobalRootGenNum,StructRootGlobalObjNum, andStructRootGlobalGenNumwere assigned only inside conditional blocks, causing W1036 “variable might not be initialized” warnings on Delphi Win64 compilers 26 and 29 (RAD Studio 12 and 16); added zero-initialization at function entry
Version 3.75.2
Fixed
- Multi-version build compatibility:
forloop in hex-string parser (PDFlibStruct) used anInt64control variable, which Delphi XE3/XE5 (compilers 26/27) reject as non-ordinal; rewritten as aWhileloop to restore compatibility with RAD Studio 12 and 14 - Reference XObject checker (
PDFlibPDFUA): dictionary pointerDwas not initialized on the non-stream/non-dictionary branch, causing a compiler hint on all targets; restructured the branch to always assignDbefore theAssignedcheck CreateFontPackagewrapper (PDFlibFont): suppressed spurious W1035 “return value might be undefined” on Delphi ≤ XE8 while avoiding the complementary H2077 dead-assignment hint on newer compilers, via{$IF CompilerVersion}guard- BMP DPI writer and PDF incremental-save path: replaced deprecated
TStream.Seek(Longint, Word)calls withPosition :=assignments (PDFlibPDFium,PDFlibDocument)
Version 3.75.1
Fixed
- TIFF multi-page parser: the loop-termination guard against excessively large page counts was ineffective because
FPageCountwas declared asWord(maximum 65 535), making the> 65535comparison always false; changed toIntegerso the guard now fires correctly on pathological files - CFF/Type 2 charset parser (Format 1 and Format 2): removed dead
Done := Trueassignments that immediately preceded aBreakand were therefore never read, eliminating compiler hints
Version 3.75.0
Security
- Hardened parsing of untrusted embedded fonts (TrueType, Type 1, CFF and CMap) against out-of-bounds writes, unbounded charstring recursion and oversized memory allocations from malformed font data
- Hardened the image decoders (PNG, GIF, TIFF, JBIG2 and CCITT Group 3 and 4) against out-of-bounds reads and writes, integer overflow in width and height calculations, and empty-palette dereferences from malicious images
- Hardened the stream filters (LZW, ASCII85 and Flate predictors) against buffer over-reads, division by zero and non-terminating loops on crafted stream data
- Hardened cross-reference, document-rebuild and name-tree parsing against out-of-bounds access and infinite loops caused by malformed or circular cross-reference data
- AES-CBC decryption now validates ciphertext block alignment and zero-initialises its output buffer, preventing uninitialised heap memory from leaking into decrypted strings and streams
Fixed
- SHA-256, SHA-384 and SHA-512 detached-signature digests are now produced with the correct cryptographic provider; they previously returned an empty digest and yielded invalid signatures
- ASCII85 and RC4 decoding no longer return uninitialised data or raise an exception on truncated input or an empty key
- The GIF background colour is now read with the correct blue channel instead of duplicating the green channel
Version 3.74.1
Fixed
- Fixed an E2010 incompatible-types compile error in the PAdES signature validation data (VRI) support that prevented the library from compiling
- Removed the last compiler warning and unused-variable hints; all Win32 and Win64 trial and release library builds now compile cleanly
Version 3.74.0
Added
- The direct file paths of
EncryptFileandDecryptFilenow read PDFs whose cross-reference data lives in cross-reference streams, including incrementally updated chains and hybrid-reference files with an/XRefStmside section, instead of falling back to the slower full reader: AES-256 protection of a 1.25 GB benchmark document dropped from about 4.4 to 2.5 seconds and decryption from about 1.7 to 1.3 seconds - Rewrites that carry objects stored in compressed object streams now emit a cross-reference stream trailer, keeping those objects addressable in the encrypted or decrypted output
Fixed
- A revision without a document
/IDin an incrementally updated file no longer erases the identifier inherited from an earlier revision during a direct rewrite
Version 3.73.2
Changed
DASaveAsFilenow aggregates its output writes and locates each object's closing keyword without per-step string allocations, cutting the rewrite of a 2 GB benchmark document with over a million objects from about 57 to 11 seconds
Version 3.73.1
Changed
- The direct file paths of
EncryptFileandDecryptFilenow read the source through a sliding window and aggregate output writes, so AES-256 protection of very large PDFs with millions of objects runs several times faster: on a 2 GB benchmark document, encryption dropped from about 123 to 32 seconds and decryption from about 127 to 23 seconds - Object bodies that fit the read window are no longer fetched from disk twice during a direct AES-256 rewrite
Fixed
- Direct AES-256 rewrites of hybrid-reference PDFs (files carrying an
/XRefStmtrailer entry) now fall back to the full reader instead of risking dropped compressed objects - Cross-reference parsing in the direct file path no longer reads everything from the cross-reference section to the end of the file at once, which could exhaust memory on multi-gigabyte files whose
/Prevchain points near the start of the file, and a broken/Prevchain now falls back to the full reader instead of producing an incomplete document
Version 3.73.0
Added
- The SigningWorkbench demo now performs full cryptographic digest verification of detached CMS signatures (
adbe.pkcs7.detachedandETSI.CAdES.detached) through the Windows CryptoAPI: the signed byte ranges are re-hashed and checked against the CMS signature, an altered document is reported with the new SG203 failure code, and every signature carries a three-statedigestValidfield in the JSON, CSV, and HTML reports - New SigningWorkbench automation switches:
--quietprints only the batch summary and report paths,--fail-faststops the batch at the first failing file, and the JSON report now records the library version
Version 3.72.0
Added
- The ComplianceWorkbench demo gains professional batch workflows:
--policy-fileloads the audit policy from a JSON file so teams can version and share their document rules,--baselinecompares the run against an earlier compliance-report.json and lists new failures, fixed files, and files that keep failing, and--preflight-detailsembeds preflight issue lines into the JSON and HTML reports - New ComplianceWorkbench automation switches:
--quietprints only the batch summary and report paths,--fail-faststops the batch at the first failing file, and the JSON report now records the library version
Version 3.71.2
Fixed
AppendToFileagain appends incremental updates to the same PDF file that was loaded withLoadFromFile; the streaming loader now keeps the source file readable without blocking the write handle needed for the update
Version 3.71.1
Added
- ComplianceWorkbench and SigningWorkbench reports now include finding severity labels, highest-severity per-file fields, batch severity frequency summaries, and matching JSON, CSV, HTML, and console output for faster policy triage
Version 3.71.0
Added
- The SigningWorkbench demo inspection now reports the revision order and the DocMDP certification level of every signature, flags weak MD5/SHA-1 certificate signature algorithms and the legacy adbe.pkcs7.sha1 SubFilter with
--forbid-weak-digest(SG303/SG405), self-signed certificates with--forbid-self-signed(SG406), documents without a certification signature with--require-certified(SG304), and always checks whether the signing time lies inside the certificate validity period (SG407) - SigningWorkbench sign mode now uses the sign process API with new
--subfilter(sha1, detached, or cades for PAdES baseline signatures) and--digest(auto to sha512) switches, and modernadbe.pkcs7.detachedwith SHA-256 is the new signing default - New
TPDFlibSignDoc.GetSignatureDocMDPLevelByNameread-side accessor returns the DocMDP certification level of a signature field per ISO 32000-1 §12.8.2.2
Version 3.70.0
Added
- The ComplianceWorkbench demo now also enforces permission, metadata, and size policies:
--require-print-allowedand--require-copy-allowedcheck the document permission bits (PC205/PC206),--require-authorand--require-creation-datecheck metadata completeness (PC306/PC307), and--max-pagesand--max-file-sizebound the document scale (PC308/PC309) - The archive profile now also requires an author and a creation date, and the accessible profile requires the copy permission that assistive technology relies on
- ComplianceWorkbench reports now aggregate a failure-code frequency summary across the batch, and the per-file metrics include author, creation date, file size, and the print and copy permission states
Version 3.69.1
Fixed
DecryptFileagain removes encryption from AES-128 and RC4 protected documents, including documents that only carry an owner password; since v3.67.4 the large-file fast path misreported these documents as having a wrong password (error 404) instead of handing them to the regular decryption path, while AES-256 documents were not affected
Version 3.69.0
Added
- New SigningWorkbench Delphi demo: a signature and certificate workbench console tool that inspects the signature fields of one PDF or a whole directory (SubFilter, signing time, ByteRange coverage, and the signing certificate with expiry checks), batch-signs PDFs with a PKCS #12 certificate, and audits PFX files; every violation maps to a stable policy failure code (SG101–SG501) and the results are written as JSON, CSV, and HTML reports with localized demo guides for all 18 documentation languages
- New signature read-side accessors on
TPDFlibSignDoc:GetSignatureFieldNameslists the signature fields of a document,GetSignatureTextValueByNamereturns the /M signing time, /Name, /Reason, /Location, /ContactInfo, and /Type entries (with decryption on encrypted documents), andGetSignatureValueByNamereturns /Filter, /SubFilter, /Contents, and the ByteRange entries by field name
Fixed
- Fixed the
CertCloseStoreWindows CryptoAPI import, which was declared without its flags parameter and could corrupt the caller stack on Win32 when a certificate store was closed
Version 3.68.0
Added
- New ComplianceWorkbench Delphi demo: a batch policy audit console tool that checks one PDF or a whole directory against a configurable compliance policy covering PDF/A and PDF/UA preflight, encryption rules, PDF version range, Tagged PDF, linearization, and document title, reports every violation as a stable policy failure code (PC101–PC501), and writes JSON, CSV, and HTML reports with automation-friendly exit codes
- The new demo ships policy profiles that bundle common requirement sets—archive, accessible, secure, and web—with explicit command-line switches overriding profile values, and includes localized demo guides for all 18 documentation languages
Version 3.67.4
Changed
EncryptFileandDecryptFilenow use a direct AES-256 rewrite path for large classic-xref PDFs, streaming encrypted data between files instead of loading and reserializing every object; a 2 GB benchmark file now completes file-to-file AES-256 encryption and decryption through the Direct File API with result code 1 andLastErrorCode0
Fixed
- Fixed direct AES-256 string-token handling so dictionary delimiters are not mistaken for hex strings and encrypted empty strings decrypt correctly
Version 3.67.3
Changed
- Expanded the Delphi and C++Builder demos for DrawShapes, CreateWithImage, CreateTable, EditFormField, and EmbeddedFonts so their generated PDFs now demonstrate practical drawing, image placement, table layout, form-field styling, and font-embedding comparison workflows instead of minimal single-action output
Fixed
- Fixed the CreateTable demo to set an explicit A4 page size before rendering the table, avoiding the previous uninitialised page-size variable in the Delphi sample
Version 3.67.2
Fixed
- Fixed a regression from the lazy loader-side detection introduced in v3.67.0: content feature detection could run at save time and overwrite an explicitly requested save version (SetInformation 0) or a locked version (LockSaveVersion), so a strict lower-version save no longer rejected higher-version content and a locked version could drift upward; detection now runs before any explicit version set and never runs for documents that were created rather than loaded, restoring the pre-v3.67.0 version-control behaviour while keeping the lazy load-time savings
Version 3.67.1
Changed
- Feature detection now reads stream objects with a shallow parse that inspects only the object dictionary and skips the stream body, since the scan never examines stream contents; on documents with large image streams this avoids reading the body bytes during detection, lowering the object-read time of a detection pass by roughly 40% (about 13 s instead of 20 s on a 2 GB, 1.6-million-object file), while the detected feature list and effective PDF version remain identical
Version 3.67.0
Changed
- Loader-side content feature detection is now lazy – instead of scanning the whole document during load, it runs on first use, when the effective PDF version or detected feature list is queried or when the document is saved; read-only workloads such as page count, text or image extraction and rendering that never query the version or re-save skip the scan entirely, cutting load time on very large documents by roughly 80% (about 10 s instead of 56 s on a 2 GB, 1.6-million-object file), while the detected feature set and effective PDF version remain identical once detection runs
Version 3.66.1
Changed
- Loading very large multi-page documents is now substantially faster: loader-side content feature detection skips rule checks that cannot change the result – both rules that have already matched and rules that cannot apply to a given object – roughly halving load time on huge files while keeping the detected features and effective PDF version identical
Version 3.66.0
Changed
- Loading very large multi-page documents now uses dramatically less peak memory. Loader-side content feature detection no longer materialises the entire object model at once – it streams through the random-access reader one object at a time – cutting peak working set by roughly 90 % on huge files while keeping the detected features and effective PDF version identical
Version 3.65.0
Added
- Documents larger than 2 GB can now be opened. The previous in-memory buffer that limited document size to about 2 GB has been removed
Changed
- Loading a PDF from a file now reads object data on demand from the source instead of buffering the entire document in memory, sharply reducing peak memory use for large files
- A document loaded from a file keeps that file open with shared-read access until the document is closed or cleared
Fixed
- Improved robustness when loading documents that contain leading bytes before the %PDF- header and when handling malformed cross-reference data
Version 3.64.0
Changed
- Direct API operations on very large or object-heavy PDFs – EncryptFile, DecryptFile and DASaveAsFile – are now dramatically faster and no longer stall. A 2 GB document with about 1.6 million objects that previously could not finish now encrypts in roughly a minute, and processing time scales about linearly with the document instead of collapsing as the object count grows
- Encrypting large documents is substantially faster – an operation that previously took many minutes now completes in seconds to about a minute – with no change to encryption strength, ciphertext compatibility, or output
Version 3.63.0
Fixed
- Fixed a process crash when loading large PDF files whose internal byte offsets cross the 32-bit (about 2 GB) boundary; the loader now uses 64-bit offsets throughout, so files approaching 2 GB load reliably and files at or beyond 2 GB report a load error gracefully instead of crashing
Version 3.62.0
Changed
- AES-256-CBC encryption and decryption now take the hardware-accelerated AES-NI path on 32-bit Windows as well, not only 64-bit, still with an automatic pure-C fallback on processors without AES-NI. The ciphertext is unchanged on every platform
Version 3.61.0
Changed
- AES-256-CBC encryption and decryption now use a hardware-accelerated AES-NI backend on 64-bit Windows, with an automatic fallback to the portable software implementation on processors that lack AES-NI. The ciphertext is identical on every platform; only the speed of password-based AES-256 PDF encryption changes
Version 3.60.0
Added
MergeFileListnow merges the logical structure (Tagged PDF) trees of the input documents into a single, reachable structure tree, instead of only preserving the first document's tree and leaving the others as unreachable objects. Top-level structure elements, the parent tree (with remapped page/StructParentsand annotation/StructParentkeys),/RoleMap,/ClassMapand/IDTreeare combined, and the merged catalog is marked as Tagged (/MarkInfo /Marked true)
Changed
- Merging documents with conflicting
/RoleMap,/ClassMapor/IDTreekeys keeps the first occurrence. The fast path (MergeFileListFast) continues to drop structure information
Version 3.59.0
Changed
MergeFileListnow merges documents in a single pass (O(N) instead of O(N²)), making large multi-file merges substantially faster; it also gains the multi-document bookmark merging added to the fast path- By default
MergeFileListnow skips unreadable or encrypted input files and continues merging the rest, instead of aborting the whole operation on the first bad file. Use the newMergeFileListStrictto restore the previous stop-on-first-failure behavior - Logical structure (Tagged PDF) objects from the inputs are now preserved by
MergeFileList(the fast path continues to drop them)
Added
MergeFileListStrictmerges a file list but stops at the first unreadable or encrypted file, keeping the strict stop-on-failure semantics of earlier releases
Version 3.58.0
Added
MergeFileListFastnow merges document outlines (bookmarks) across all input files, so the fast merge path preserves bookmarks in addition to AcroForm form fields- Merged bookmarks keep their hierarchy and page destinations; the top-level bookmark count of the merged output equals the sum of the inputs
Version 3.57.1
Changed
- Direct File API saves (
DASaveAsFile,DASaveToStream,DASaveCopyToStream) are now significantly faster on very large documents: unchanged objects are copied directly from the source bytes instead of being re-parsed and re-serialized. Re-saving a 60,000-page / 883 MB document dropped from about 33 seconds to roughly 23 seconds
Version 3.57.0
Changed
- Further optimized
TPDFlib.MergeFileListFastfor multi-document merges: unchanged non-stream objects in the appended documents are now reused directly from their original source bytes with a byte-level indirect-reference shift, skipping the parse-and-reserialize round-trip and improving throughput on multi-page documents. Merge output is unchanged, with identical page counts - Objects that contain streams or belong to the structure tree continue to use the existing decode path, so the faster byte path is applied only where it is provably safe
Version 3.56.44
Changed
- Optimized
TPDFlib.MergeFileListFastby preallocating merge metadata and writing unchanged first-document objects from their original source data, reducing memory churn and avoidable object decode/output work in fast multi-file merges - The Delphi
MergePDFGUI now batches fast-mode result logging and avoids repeated full memo-text scans, keeping large input lists more responsive after a merge completes
Version 3.56.43
Changed
- Optimized the ordinary
TPDFlib.MergeFileListmerge path by alternating its intermediate temporary files instead of copying the growing merged PDF before every additional input, reducing disk I/O for multi-file workflows while preserving the existing return-count contract
Version 3.56.42
Added
- Added AES regression coverage for input-buffer/result-alias cases used by encrypted stream save rollback, including large 504 KB payloads that previously exposed the failure
Changed
- The normal API
LoadFromFile,Encrypt,SaveToFile, reload,Decrypt, andSaveToFileworkflow now completes again on large loaded PDFs while retaining the reduced-copy AES-CBC decrypt optimization
Fixed
- Fixed the buffer-based AES-256 decrypt path introduced in v3.56.41 so callers can assign the decrypt result back to the same
AnsiStringthat supplied the ciphertext buffer without access violations
Version 3.56.41
Added
- Added
TPDFlib.DACopyFilefor Direct Access workflows that need a page count and an unchanged file copy without building the full normal object graph - The Delphi
HugeFileBenchmarkdemo now includes adirect-copyrow plus--opsand--skipfilters for focused large-file runs
Changed
- Optimized AES-256 decryption by adding buffer-based AES-CBC decrypt paths and using them when decrypting loaded strings and streams, reducing extra ciphertext copying on large encrypted streams
Version 3.56.40
Changed
- The Delphi and C++Builder
HelloWorlddemos now create a richer starter PDF with document information, selected standard font output, a styled title block, simple vector drawing, and next-step guidance while keeping the same build-and-run workflow - All Delphi and C++Builder demo notes have been replaced with browser-friendly
Readme.htmlpages, including auxiliary password, restricted-file, and signing-result notes, and the demo indexes now direct users to the HTML notes