Packages

 

com.aspose.imaging.imageoptions

Class OdgRasterizationOptions

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public class OdgRasterizationOptions
    extends OdRasterizationOptions

    The Odg rasterization options

    See Also:
    OdRasterizationOptions
    Code example:

    The following example shows how to export a FODG (Flat XML ODF Template) image to PDF format.


    String dir = "c:\\aspose.imaging\\java\\issues\\1509\\";
    
    String inputFileName = dir + "VariousObjectsMultiPage.fodg";
    String outputFileName = inputFileName + ".pdf";
    
    com.aspose.imaging.Image image = com.aspose.imaging.Image.load(inputFileName);
    try {
        com.aspose.imaging.imageoptions.OdgRasterizationOptions rasterizationOptions = new com.aspose.imaging.imageoptions.OdgRasterizationOptions();
        rasterizationOptions.setBackgroundColor(com.aspose.imaging.Color.getWhite());
        rasterizationOptions.setPageSize(Size.to_SizeF(image.getSize()));
    
        com.aspose.imaging.imageoptions.PdfOptions saveOptions = new com.aspose.imaging.imageoptions.PdfOptions();
        saveOptions.setVectorRasterizationOptions(rasterizationOptions);
    
        image.save(outputFileName, saveOptions);
    }
    finally {
        image.close();
    }
    

    • Constructor Detail

      • OdgRasterizationOptions

        public OdgRasterizationOptions()