In This Topic
New Features and Improvements
- Ability to render SVG (Scalable Vector Graphics) images to PDF, see GrapeCity.Documents.Svg.GcSvgDocument class and GcGraphics.DrawSvg()/MeasureSvg() methods.
- Method GcPdfDocument.OptimizeFonts(): optimizes font usage by merging subsets of same fonts, and by removing duplicate and unused fonts.
- An arbitrary PDF can be linearized ("fast web view") by loading it into GcPdfDocument and saving with SaveMode.Linearized parameter passed to an appropriate Save()/Sign() method overload.
Changes From the Previous Version
- When using a Security Handler Revision 4 or earlier with unspecified owner password, it is set to user password. This behavior is consistent with PDF spec.
Resolved Issues
- After loading some PDFs the value of GcPdfDocument.Linearized property is incorrect.
- StackOverflow exception occurs when merging or linearizing certain PDFs.
- Pen.DashOffset is not handled correctly when rendering to GcPdfGraphics.
- Saving a certain PDF to PNG produces incorrect result.
Breaking Changes
- GcPdfDocument.Linearized property is now read-only (was read-write). Use GcPdfDocument.Save(.., SaveMode.Linearized) to linearize the current document.
Breaking changes affecting all GrapeCity.Documents packages:
- GrapeCity.Documents.Common package has been removed, types defined in it have been moved to GrapeCity.Documents.Imaging.
- GrapeCity.Documents.Common.Windows package has been replaced by GrapeCity.Documents.Imaging.Windows.
- GrapeCity.Documents.Pdf.Resources has been removed, types defined in it have been moved to GrapeCity.Documents.Pdf.