public class DocSaveOptions extends UnifiedSaveOptions
Save options for export to Doc format
Modifier and Type | Class and Description |
---|---|
static class |
DocSaveOptions.DocFormat
Allows to specify .doc or .docx file format.
|
static class |
DocSaveOptions.RecognitionMode
Allows to control how a PDF document is converted into a word processing document.
|
UnifiedSaveOptions.ConversionProgressEventHandler, UnifiedSaveOptions.ProgressEventHandlerInfo, UnifiedSaveOptions.ProgressEventType
SaveOptions.BorderInfo, SaveOptions.BorderPartStyle, SaveOptions.HtmlBorderLineType, SaveOptions.NodeLevelResourceType, SaveOptions.ResourceSavingInfo
Modifier and Type | Field and Description |
---|---|
UnifiedSaveOptions.ConversionProgressEventHandler |
CustomProgressHandler
This handler can be used to handle conversion progress events
f.e.
|
ProgressEventsRetranslator
Constructor and Description |
---|
DocSaveOptions()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getFormat()
Output format
|
int |
getMode()
Recognition mode.
|
boolean |
getRecognizeBullets()
Switch on the recognition of bullets
|
float |
getRelativeHorizontalProximity()
Relative proximity between textual elements means that distance is normed by the font size.
|
void |
setFormat(int value) |
void |
setMode(int value) |
void |
setRecognizeBullets(boolean value) |
void |
setRelativeHorizontalProximity(float value) |
getCloseResponse, getSaveFormat, getWarningHandler, setCloseResponse, setWarningHandler
public UnifiedSaveOptions.ConversionProgressEventHandler CustomProgressHandler
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 Aspose.Pdf.License()).setLicense("F:\\_Sources\\Aspose_5\\trunk\\testdata\\License\\Aspose.Total.lic"); Document doc = new Document("F:\\ExternalTestsData\\Booklet.pdf"); HtmlSaveOptions saveOptions = new HtmlSaveOptions(); saveOptions.setCustomProgressHandler ( new HtmlSaveOptions.conversionProgressEventHandler(ShowProgressOnConsole)); doc.save("F:\\ExternalTestsData\\Booklet.doc", saveOptions); System.in.read(); } public static void showProgressOnConsole(HtmlSaveOptions.ProgressEventHandlerInfo eventInfo) { switch (eventInfo.getEventType()) { case HtmlSaveOptions.ProgressEventType.TotalProgress: Console.WriteLine("%s - Conversion progress : %s ."format(new Date().getTime(), eventInfo.getValue().toString())); break; case HtmlSaveOptions.ProgressEventType.SourcePageAnalized: Console.WriteLine("%s - Source page %s of %s analyzed.", (new Date().getTime().toString(), eventInfo.getValue().toString(), eventInfo.getMaxValue().toString())); break; case HtmlSaveOptions.ProgressEventType.ResultPageCreated: Console.WriteLine("%s - Result page's %s of %s layout created.", (new Date().getTime(), eventInfo.getValue().toString(), eventInfo.getMaxValue().toString())); break; case HtmlSaveOptions.ProgressEventType.ResultPageSaved: Console.WriteLine("{0} - Result page {1} of {2} exported.", (new Date().getTime(), eventInfo.getValue().toString(), eventInfo.getMaxValue().toString())); break; default: break; } }
public int getMode()
Recognition mode.
public void setMode(int value)
public float getRelativeHorizontalProximity()
Relative proximity between textual elements means that distance is normed by the font size. Bigger fonts may have bigger distances between syllables and still may be looked at as single whole. Specified in hundreds of percent of the font size. E.g. 1 = 100% meaning that two chars of 12pt are placed 12 pt apart are proximal.
public void setRelativeHorizontalProximity(float value)
public boolean getRecognizeBullets()
Switch on the recognition of bullets
public void setRecognizeBullets(boolean value)
public int getFormat()
Output format
public void setFormat(int value)
Copyright © 2014 Aspose. All Rights Reserved.