public class ImageConverter
extends java.lang.Object
Example
ImageConverter.process("template.xlsx", "res.png");
| Modifier and Type | Method and Description |
|---|---|
static void |
process(LowCodeLoadOptions loadOptions,
LowCodeSaveOptions saveOptions)
Converts template file to images
|
static void |
process(LowCodeLoadOptions loadOptions,
LowCodeSaveOptions saveOptions,
AbstractLowCodeSaveOptionsProvider provider)
Converts template file to images
|
static void |
process(java.lang.String templateFile,
java.lang.String resultFile)
Converts template file to images.
|
public static void process(java.lang.String templateFile,
java.lang.String resultFile)
Remarks
The output files will be build from the specified result file by appending sequence number of the sheet and split part. For example, if the specified output file is Image.png, then the generated image files will be Image_0_0.png, Image_0_1.png, ..., Image_1_0.png, ...templateFile - The template file to be converted to images.resultFile - The resultant file(name pattern) for generated images.public static void process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions)
Remarks
When converting to image of format that supports multiple pages(such as tiff), the specifiedLowCodeSaveOptions.getOutputFile()
or LowCodeSaveOptions.getOutputStream() will be used directly for the resultant image.
loadOptions - Options for input and loadingsaveOptions - Options for output and savingpublic static void process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, AbstractLowCodeSaveOptionsProvider provider)
loadOptions - Options for input and loadingsaveOptions - Options for saving.
Its output(LowCodeSaveOptions.getOutputFile() or LowCodeSaveOptions.getOutputStream())
takes no effect because all outputs will be specified by the "provider" parameterprovider - Provider of save options for saving the generated imagesSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.