v2.1.0 — markup annotations + radio/flatten fixes
Minor, additive release.
Added
- Markup annotations on existing documents (
PdfDocumentEditor.Pages) and when authoring new ones (PdfPageBuilder):AddSquare,AddCircle,AddLine,AddInk,AddFreeText. Each generates a real/APappearance stream, so it renders in this library''s renderer and in external viewers. /APgeneration for the existing Highlight and Note add paths.- Richer annotation reader:
PdfAnnotationInfonow exposesAnnotationId,StrokeColor,InteriorColor,BorderWidth,LineEndpoints,InkPaths,Quadding,DefaultAppearance. PdfPageCollection.RemoveAnnotation(page, annotationId)— identity-based delete.
Fixed
PdfRadioGroupBuildernow emits valid radio fields (parent/Btn+ per-option widgets with vector-circle/AP); previously they read back asUnknown.FormFlattenernow bakes state-keyed checkbox/radio/APand removes the widget, fixing orphaned widgets that vanished after an Acrobat resave.
Published packages: Lxman.PdfLibrary 2.1.0 and Lxman.PdfLibrary.Rendering.Wpf 2.1.0.