public class PptxSaveOptions extends UnifiedSaveOptions
Save options for export to SVG format
UnifiedSaveOptions.ConversionProgressEventHandler, UnifiedSaveOptions.ProgressEventHandlerInfo
SaveOptions.BorderInfo, SaveOptions.BorderPartStyle, SaveOptions.HtmlBorderLineType, SaveOptions.MarginInfo, SaveOptions.MarginPartStyle, SaveOptions.NodeLevelResourceType, SaveOptions.ResourceSavingInfo
ProgressEventsRetranslator, TryMergeAdjacentSameBackgroundImages
Constructor and Description |
---|
PptxSaveOptions()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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}%
|
int |
getImageResolution()
Gets or sets the image resolution (dpi).
|
boolean |
getSeparateImages()
If set to true then images are separated from all other graphics
|
boolean |
getSlidesAsImages()
If set to true then all the content is recognized as images (one per page)
|
boolean |
isOptimizeTextBoxes()
Toggles text columns recognition
|
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}%
|
void |
setImageResolution(int value)
Gets or sets the image resolution (dpi).
|
void |
setOptimizeTextBoxes(boolean value)
Toggles text columns recognition
|
void |
setSeparateImages(boolean value)
If set to true then images are separated from all other graphics
|
void |
setSlidesAsImages(boolean value)
If set to true then all the content is recognized as images (one per page)
|
isExtractOcrSublayerOnly, setExtractOcrSublayerOnly
getSaveFormat, getWarningHandler, isCloseResponse, setCloseResponse, setWarningHandler
public boolean getSlidesAsImages()
If set to true then all the content is recognized as images (one per page)
public void setSlidesAsImages(boolean value)
If set to true then all the content is recognized as images (one per page)
value
- boolean valuepublic final int getImageResolution()
Gets or sets the image resolution (dpi). Default is 192 dpi.
public final void setImageResolution(int value)
Gets or sets the image resolution (dpi). Default is 192 dpi.
value
- int valuepublic boolean getSeparateImages()
If set to true then images are separated from all other graphics
public void setSeparateImages(boolean value)
If set to true then images are separated from all other graphics
value
- boolean valuepublic final boolean isOptimizeTextBoxes()
Toggles text columns recognition
public final void setOptimizeTextBoxes(boolean value)
Toggles text columns recognition
value
- boolean valuepublic 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; } }
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; } }
value
- ConversionProgressEventHandler instance