Repository navigation
Added
PdfExportOptions.RefuseWhenstops a render withPdfExportRefusedExceptionon the compromises
it selects, using the existing diagnostics.PdfExportRefusalhas ready-made policies.SaveSanitizedAsyncwrites a copy without the chosenContentCategories(macros, embedded
objects, external links, custom XML, signatures) and reports what was removed and what was kept.
Fixed
- Template generator output names use bounded hashes of complete type identities, so long or
nested model names do not exceed filesystem file-name limits. - Saving a document again after adding an image, header or footer no longer reuses a part name that
is already taken. The later part used to replace the earlier one, and two pictures or sections
showed the same content. Writing a package part twice now raisesInvalidOperationException. - Tracked formatting changes count as revisions and are resolved by
AcceptAllRevisionsand
RejectAllRevisions, which restore the previous formatting on rejection.ApplyFormat(Func)
records them likeApplyFormat(start, length, ...), and a run changed twice rejects to its
original look. - Tracked paragraph-property changes are resolved the same way. Tracked table, row and section
property changes are now detected and can be accepted; rejecting them is not supported and
leaves them in place, reported byHasRevisions. - Accepting a deleted paragraph mark keeps the next paragraph's runs, pictures, links and bookmarks.
The merged paragraph takes the formatting of the mark that survives. - Headers and footers are identified by their relationship type, so a footer in a part with any
name loads as a footer. A root element that disagrees with the relationship raises a warning. - Removing the last custom property no longer leaves a root relationship pointing at a missing
part. An application properties part the model cannot read is copied through unchanged instead
of being lost.
Deprecated
LoadOptions.PreserveUnknownContentnever had any effect and is now marked obsolete. Package
parts the model does not represent are always preserved, so it cannot remove macros, embedded
objects or custom XML.
Changed
- PDF export uses Inkwright 0.1.5 through exact package ranges.
Validated with .NET SDK 10.0.403. Package API compatibility, Source Link, clean-cache consumers and Native AOT smoke tests passed. See attached SHA256SUMS for the exact package and symbol artifacts.