setVerticalResolution ( new Resolution ( 200, UnitType. setHorizontalResolution ( new Resolution ( 200, UnitType. PdfSaveOptions options = new PdfSaveOptions () options. Set up the page-size, margins, resolutions, JpegQuality, and change the background color SVGDocument document = new SVGDocument ( documentPath ) try // Initialize PdfSaveOptions. combine ( getOutputDir (), "aspose-options.pdf" ) // Initialize an SVG document from the file combine ( getDataDir (), "aspose.svg" ) // Prepare a path for converted file saving The following Java example shows how to useĪnd create a PDF file with custom page-size, margins, resolutions, and background color: The method takes the document, options, output file path savePath and performs the conversion operation.
0 Comments
Leave a Reply. |