Repository navigation
v0.1.0-preview.7
Pre-release
Pre-release
·
360 commits
to main
since this release
Highlights
- Bit-identical rendering on every platform (#233). The software rasterizer uses a managed deterministic math library (trig, exp, log, pow, cbrt), so the same page renders to the same bytes on Windows, Linux, macOS, iOS and Android. A CI workflow checks render fingerprints across platforms.
- Public, typed diagnostic catalog (#242–#248). Every diagnostic now carries a
DiagnosticCodefrom a public catalog grouped by area (FileStructureDiagnostics,FilterDiagnostics,FontDiagnostics, ...), with severity and clause. Extension points report typed codes, and third parties can define owner-prefixed codes withDiagnosticCode.Create. - Unencrypted wrapper documents (#234, #235). Read the encrypted payload of a PDF 2.0 unencrypted wrapper, and write wrappers around an encrypted payload.
- Bounded memory for multi-gigabyte files (#237). Cross-reference entries are stored compactly and large streams are copied in windows on save.
- Every file-structure repair is recorded (#238). The remaining silent repairs now report diagnostics; table entries beyond
/Sizeare kept in lenient mode and rejected in strict mode. - Order 3 sampled functions (#236) interpolate with a cubic spline.
- API shaping before the freeze (#249–#254). Async entry points mirror their synchronous overloads, associated files are read through their owners, annotation subtypes own their entries, the image API is tidied and the DCT decoder is split by responsibility.
- Conformance map closed for v1 (#240, #241). Clause citations in XML docs are checked against the map, every open row links a tracking issue, and known limitations are listed in
docs/known-limitations.md.
New API
DiagnosticCode,DiagnosticArea,DiagnosticCatalog,Diagnostic.Kind, and one*Diagnosticsclass per area; typedDiagnosticSinkoverloads.PdfEncryptedPayload,PdfUnencryptedWrapperOptions,CreateUnencryptedWrapper.AssociatedFileson the document, pages, annotations and other owners.- Async
Open/Saveoverloads matching every synchronous one; path saves write a temporary file and move it into place. ImageGeometry,PdfSoftMaskInData,AdobeColorTransform,IsImageMask,MaxDecodedLength.
Breaking changes
- Extension-point contexts (
FilterContext,FontProgramContext,SecurityHandlerContext,CMapContext) take aDiagnosticCodeinstead of a string. ReadAssociatedFilesis replaced by theAssociatedFilesproperties.- Subtype-specific readers on
PdfAnnotationmoved to the annotation subtypes. - Image geometry moved to
ImageGeometry;WithMaxDecodedStreamLengthis nowWithMaxDecodedLength.
Fixes
- Recorded diagnostics for xref entries beyond
/Size, comments in xref sections, malformed xref lines and a damaged laststartxref(#238). - Every
Use*/With*option and every diagnostic reaches the hosted engine (#239). - The Android viewer smoke test reports the log when the app exits early.
Known limitations: docs/known-limitations.md lists what this release does not do yet, each item with the issue that tracks it.
What's Changed
- Phase 7 sweep: API shaping and coverage before the freeze (#233-#254) by @michaelstonis in #534
- Broadside v0.1.0-preview.7: bit-identical rendering, typed diagnostic catalog, API shaping for v1 by @michaelstonis in #535
Full Changelog: v0.1.0-preview.6...v0.1.0-preview.7