PptxSaveOptions
Inheritance: java.lang.Object, com.aspose.pdf.SaveOptions, com.aspose.pdf.UnifiedSaveOptions
public class PptxSaveOptions extends UnifiedSaveOptions
Save options for export to SVG format
Constructors
Constructor | Description |
---|---|
PptxSaveOptions() | Constructor |
Methods
Method | Description |
---|---|
getSlidesAsImages() | If set to true then all the content is recognized as images (one per page) |
setSlidesAsImages(boolean value) | If set to true then all the content is recognized as images (one per page) |
getImageResolution() | Gets or sets the image resolution (dpi). |
setImageResolution(int value) | Gets or sets the image resolution (dpi). |
getSeparateImages() | If set to true then images are separated from all other graphics |
setSeparateImages(boolean value) | If set to true then images are separated from all other graphics |
isOptimizeTextBoxes() | Toggles text columns recognition |
setOptimizeTextBoxes(boolean value) | Toggles text columns recognition |
getCustomProgressHandler() | This handler can be used to handle conversion progress events f.e. |
setCustomProgressHandler(UnifiedSaveOptions.ConversionProgressEventHandler value) | This handler can be used to handle conversion progress events f.e. |
PptxSaveOptions()
public PptxSaveOptions()
Constructor
getSlidesAsImages()
public boolean getSlidesAsImages()
If set to true then all the content is recognized as images (one per page)
Returns: boolean - boolean value
setSlidesAsImages(boolean value)
public void setSlidesAsImages(boolean value)
If set to true then all the content is recognized as images (one per page)
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getImageResolution()
public final int getImageResolution()
Gets or sets the image resolution (dpi). Default is 192 dpi.
Returns: int - int value
setImageResolution(int value)
public final void setImageResolution(int value)
Gets or sets the image resolution (dpi). Default is 192 dpi.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
getSeparateImages()
public boolean getSeparateImages()
If set to true then images are separated from all other graphics
Returns: boolean - boolean value
setSeparateImages(boolean value)
public void setSeparateImages(boolean value)
If set to true then images are separated from all other graphics
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
isOptimizeTextBoxes()
public final boolean isOptimizeTextBoxes()
Toggles text columns recognition
Returns: boolean - boolean value
setOptimizeTextBoxes(boolean value)
public final void setOptimizeTextBoxes(boolean value)
Toggles text columns recognition
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getCustomProgressHandler()
public final UnifiedSaveOptions.ConversionProgressEventHandler getCustomProgressHandler()
This handler can be used to handle conversion progress events f.e. it can be used to show progress bar or messages about current amount of processed pages, example of handler’s code that shows progress on console is :
public static void ConvertWithShowingProgress()
{
(new com.aspose.pdf.License()).setLicense("Aspose.Total.lic");
Document doc = new Document("input.pdf");
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.setCustomProgressHandler(new HtmlSaveOptions.ConversionProgressEventHandler(ShowProgressOnConsole));
doc.save("output.html", saveOptions);
}
public static void ShowProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo)
{
switch (eventInfo.EventType)
{
case HtmlSaveOptions.ProgressEventType.TotalProgress:
System.out.println(string.Format("{0} - Conversion progress : {1}% .", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString()));
break;
case HtmlSaveOptions.ProgressEventType.SourcePageAnalized:
System.out.println(string.Format("{0} - Source page {1} of {2} analyzed.", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString(), eventInfo.MaxValue.ToString()));
break;
case HtmlSaveOptions.ProgressEventType.ResultPageCreated:
System.out.println(string.Format("{0} - Result page's {1} of {2} layout created.", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString(), eventInfo.MaxValue.ToString()));
break;
case HtmlSaveOptions.ProgressEventType.ResultPageSaved:
System.out.println(string.Format("{0} - Result page {1} of {2} exported.", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString(), eventInfo.MaxValue.ToString()));
break;
default:
break;
}
}
Returns: ConversionProgressEventHandler - ConversionProgressEventHandler instance
setCustomProgressHandler(UnifiedSaveOptions.ConversionProgressEventHandler value)
public final void setCustomProgressHandler(UnifiedSaveOptions.ConversionProgressEventHandler value)
This handler can be used to handle conversion progress events f.e. it can be used to show progress bar or messages about current amount of processed pages, example of handler’s code that shows progress on console is :
public static void ConvertWithShowingProgress()
{
(new com.aspose.pdf.License()).setLicense("Aspose.Total.lic");
Document doc = new Document("input.pdf");
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.CustomProgressHandler = new HtmlSaveOptions.ConversionProgressEventHandler(ShowProgressOnConsole);
doc.Save("output.html", saveOptions);
}
public static void ShowProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo)
{
switch (eventInfo.EventType)
{
case HtmlSaveOptions.ProgressEventType.TotalProgress:
System.out.println(string.Format("{0} - Conversion progress : {1}% .", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString()));
break;
case HtmlSaveOptions.ProgressEventType.SourcePageAnalized:
System.out.println(string.Format("{0} - Source page {1} of {2} analyzed.", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString(), eventInfo.MaxValue.ToString()));
break;
case HtmlSaveOptions.ProgressEventType.ResultPageCreated:
System.out.println(string.Format("{0} - Result page's {1} of {2} layout created.", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString(), eventInfo.MaxValue.ToString()));
break;
case HtmlSaveOptions.ProgressEventType.ResultPageSaved:
System.out.println(string.Format("{0} - Result page {1} of {2} exported.", DateTime.Now.ToLongTimeString(), eventInfo.Value.ToString(), eventInfo.MaxValue.ToString()));
break;
default:
break;
}
}
Parameters:
Parameter | Type | Description |
---|---|---|
value | ConversionProgressEventHandler | ConversionProgressEventHandler instance |