Saving a Document to Fixed-page Format
Contents
[
Hide
]
After the page layout is built and the geometry of objects and their position on the page are calculated, the document can be saved in a fixed-page format supported by Aspose.Words.
When saving documents to fixed-page formats, the rendering options common to all of these formats can be used. They allow to control:
- The number and range of pages contained in the output document (PageIndex, PageCount).
- Progress of page-by-page document saving (PageSavingCallback).
- A set of characters that are used to numbers rendering (NumeralFormat).
- A metafile player (MetafileRenderingOptions). For more details, see the Handling Windows Metafiles article.
- A quality rate for recompressing JPEG images, the value of which may differ slightly, depending on the selected save format (JpegQuality).
- Optimization of vector graphics in Aspose.Words output (OptimizeOutput).
- Graphics options when saving to Tiff, Png, Bmp, Jpeg, Emf formats (UseAntiAliasing, UseHighQualityRendering).
- Saving the document in grayscale (ColorMode).
- Switching between the rendering of DrawingML shapes and fallback shapes (DmlRenderingMode).
- Switching between DML effects rendering modes (DmlEffectsRenderingMode).
The example below demonstrates how to save a document to JPEG format using the Save
method and rendering options: