OdgRasterizationOptions

Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.ImageOptionsBase, com.aspose.imaging.imageoptions.VectorRasterizationOptions, com.aspose.imaging.imageoptions.OdRasterizationOptions

public class OdgRasterizationOptions extends OdRasterizationOptions

The Odg rasterization options

Constructors

ConstructorDescription
OdgRasterizationOptions()
OdgRasterizationOptions(VectorRasterizationOptions imageOptions)

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();
}

OdgRasterizationOptions()

public OdgRasterizationOptions()

OdgRasterizationOptions(VectorRasterizationOptions imageOptions)

public OdgRasterizationOptions(VectorRasterizationOptions imageOptions)

Parameters:

ParameterTypeDescription
imageOptionsVectorRasterizationOptions