|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.PdfConvertOptions
public class PdfConvertOptions
The class can be used to set some options when do convert operation.
| Constructor Summary | |
|---|---|
PdfConvertOptions()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getConvertDefaultType3FontName()
|
boolean |
getConvertToWordUsingFlow()
|
boolean |
getConvertType3FontUsingText()
|
int |
getExportTextMinWidth()
|
boolean |
getFindTextByAbsolutePosition()
|
boolean |
getKeepParagraph()
|
boolean |
getPdfToDocEmbedChineseFont()
Indicates whether chinese font is embedded.default true. |
boolean |
getPdfToHtmlHorizontalAlignmentCenter()
Whether the page content is centered in the browser window. |
boolean |
getRunInstructionsForAsiaFonts()
some Asia font need run instrunctions in font define's glyph.default false. |
boolean |
isDocMergePath()
|
void |
isDocMergePath(boolean isDocMergePath)
|
void |
setConvertToWordUsingFlow(boolean convertToWordUsingFlow)
|
void |
setConvertType3FontUsingText(boolean plConvertType3FontUsingText,
java.lang.String defaultType3FontName)
|
void |
setExportTextMinWidth(int exportTextMinWidth)
set Export text min width,default is 150,1000 means whole font size width. |
void |
setFindTextByAbsolutePosition(boolean findTextByPosition)
|
void |
setKeepParagraph(boolean keepParagraph)
when extract(false), if keepPaagraph equals true,will get a paragraph into a line. |
void |
setOutputToOneSvg(boolean outputToOneSvg)
Set pdf to svg convert options. |
void |
setPdfToDocEmbedChineseFont(boolean embedChineseFont)
Indicates whether chinese font is embedded.default true. |
void |
setPdfToHtmlHorizontalAlignmentCenter(boolean isCenter)
Whether the page content is centered in the browser window. |
void |
setPdfToHtmlOptions(boolean useEmbeddedSvg)
Set pdf to html convert options. |
void |
setPdfToHtmlOptions(boolean useEmbeddedSvg,
boolean useEmbeddedImg)
Set pdf to html convert options. |
void |
setPdfToHtmlOptions(boolean useEmbeddedSvg,
boolean useEmbeddedImg,
int maxPageOneFile)
Set pdf to html convert options. |
void |
setPdfToHtmlOptions(boolean useEmbeddedSvg,
boolean useEmbeddedImg,
int maxPageOneFile,
boolean useHighQualityEmbeddedSvg)
Set pdf to html convert options. |
void |
setPdfToImageOptions(int bgTransparentValue)
Set pdf to image convert options. |
void |
setPdfToSvgOptions(float widthPixel,
float heightPixel)
Set pdf to svg options. |
void |
setPdfToXlsxOptions(XlsxOptions options)
Set pdf to xlsx convert options It is deprecated,please use the method setPdfToXlsxOptions(),the parameter is:the implementation class the xlsxOptions class The implementation class:XlsxLineLayoutOptions or XlsxTextLayoutOptions |
void |
setPdfToXpsOptions(boolean usePsMode)
Set pdf to xps convert options. |
void |
setRunInstructionsForAsiaFonts(boolean runInstructionsForAsiaFonts)
Deprecated. |
| Constructor Detail |
|---|
public PdfConvertOptions()
| Method Detail |
|---|
public void setPdfToXlsxOptions(XlsxOptions options)
public void setPdfToImageOptions(int bgTransparentValue)
public void setPdfToXpsOptions(boolean usePsMode)
usePsMode - public boolean isDocMergePath()
public void isDocMergePath(boolean isDocMergePath)
public void setPdfToDocEmbedChineseFont(boolean embedChineseFont)
embedChineseFont - public boolean getPdfToDocEmbedChineseFont()
public void setPdfToHtmlOptions(boolean useEmbeddedSvg)
useEmbeddedSvg - Indicates whether to use the embedded svg in html file.
public void setPdfToHtmlOptions(boolean useEmbeddedSvg,
boolean useEmbeddedImg)
useEmbeddedSvg - Indicates whether to use the embedded svg in html file.useEmbeddedImg - Indicates whether to embed image data in html file, works only when useEmbeddedSvg is set to false.
public void setPdfToHtmlOptions(boolean useEmbeddedSvg,
boolean useEmbeddedImg,
int maxPageOneFile)
useEmbeddedSvg - Indicates whether to use the embedded svg in html file.useEmbeddedImg - Indicates whether to embed image data in html file, works only when useEmbeddedSvg is set to false.maxPageOneFile - Indicates the count of page contents in one html file, works only when useEmbeddedSvg is set to false.
public void setPdfToHtmlOptions(boolean useEmbeddedSvg,
boolean useEmbeddedImg,
int maxPageOneFile,
boolean useHighQualityEmbeddedSvg)
useEmbeddedSvg - Indicates whether to use the embedded svg in html file.useEmbeddedImg - Indicates whether to embed image data in html file, works only when useEmbeddedSvg is set to false.maxPageOneFile - Indicates the count of page contents in one html file, works only when useEmbeddedSvg is set to false.useHighQualityEmbeddedSvg - Indicates whether to use the high quality embedded svg in html file, works only when useEmbeddedSvg is set to true.public void setPdfToHtmlHorizontalAlignmentCenter(boolean isCenter)
isCenter - true is center,false is leftpublic boolean getPdfToHtmlHorizontalAlignmentCenter()
public void setOutputToOneSvg(boolean outputToOneSvg)
outputToOneSvg - Indicates whether to output to one svg file,default false.
public void setPdfToSvgOptions(float widthPixel,
float heightPixel)
widthPixel - The output svg's width in pixel unit, -1f means no change.heightPixel - The output svg's height in pixel unit, -1f means no change.public int getExportTextMinWidth()
public void setExportTextMinWidth(int exportTextMinWidth)
exportTextMinWidth - public boolean getFindTextByAbsolutePosition()
public void setFindTextByAbsolutePosition(boolean findTextByPosition)
public void setConvertToWordUsingFlow(boolean convertToWordUsingFlow)
public boolean getConvertToWordUsingFlow()
public void setConvertType3FontUsingText(boolean plConvertType3FontUsingText,
java.lang.String defaultType3FontName)
plConvertType3FontUsingText - default false,using image or path for convert,if true,using unicode text.defaultType3FontName - most of type 3 font does not define font name,so if true,convert using this fontname.public boolean getConvertType3FontUsingText()
public java.lang.String getConvertDefaultType3FontName()
public boolean getKeepParagraph()
public void setKeepParagraph(boolean keepParagraph)
keepParagraph - public boolean getRunInstructionsForAsiaFonts()
@Deprecated public void setRunInstructionsForAsiaFonts(boolean runInstructionsForAsiaFonts)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||