pdfconvertoptions-ag凯发旗舰厅



com.spire.pdf
class pdfconvertoptions

java.lang.object
  extended by com.spire.pdf.pdfconvertoptions

public class pdfconvertoptions
extends java.lang.object

the class can be used to set some options when do convert operation.


constructor summary
pdfconvertoptions()
           
 
method summary
 int getexporttextminwidth()
           
 boolean getfindtextbyabsoluteposition()
           
 boolean getpdftodocembedchinesefont()
          indicates whether chinese font is embedded.default true.
 boolean isdocmergepath()
           
 void isdocmergepath(boolean isdocmergepath)
           
 void setexporttextminwidth(int exporttextminwidth)
          set export text min width,default is 150,1000 means whole font size width.
 void setfindtextbyabsoluteposition(boolean findtextbyposition)
           
 void setoutputtoonesvg(boolean outputtoonesvg)
          set pdf to svg convert options.
 void setpdftodocembedchinesefont(boolean embedchinesefont)
          indicates whether chinese font is embedded.default true.
 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 setpdftosvgoptions(float widthpixel, float heightpixel)
          set pdf to svg options.
 void setpdftoxpsoptions(boolean usepsmode)
          set pdf to xps convert options.
 
constructor detail

pdfconvertoptions

public pdfconvertoptions()
method detail

setpdftoxpsoptions

public void setpdftoxpsoptions(boolean usepsmode)
set pdf to xps convert options.
parameters:
usepsmode -

isdocmergepath

public boolean isdocmergepath()

isdocmergepath

public void isdocmergepath(boolean isdocmergepath)

setpdftodocembedchinesefont

public void setpdftodocembedchinesefont(boolean embedchinesefont)
indicates whether chinese font is embedded.default true.
parameters:
embedchinesefont -

getpdftodocembedchinesefont

public boolean getpdftodocembedchinesefont()
indicates whether chinese font is embedded.default true.

setpdftohtmloptions

public void setpdftohtmloptions(boolean useembeddedsvg)
set pdf to html convert options.
parameters:
useembeddedsvg - indicates whether to use the embedded svg in html file.

setpdftohtmloptions

public void setpdftohtmloptions(boolean useembeddedsvg,
                                boolean useembeddedimg)
set pdf to html convert options.
parameters:
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.

setpdftohtmloptions

public void setpdftohtmloptions(boolean useembeddedsvg,
                                boolean useembeddedimg,
                                int maxpageonefile)
set pdf to html convert options.
parameters:
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.

setoutputtoonesvg

public void setoutputtoonesvg(boolean outputtoonesvg)
set pdf to svg convert options.
parameters:
outputtoonesvg - indicates whether to output to one svg file,default false.

setpdftosvgoptions

public void setpdftosvgoptions(float widthpixel,
                               float heightpixel)
set pdf to svg options.
parameters:
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.

getexporttextminwidth

public int getexporttextminwidth()

setexporttextminwidth

public void setexporttextminwidth(int exporttextminwidth)
set export text min width,default is 150,1000 means whole font size width. and allow range 100-500.
parameters:
exporttextminwidth -

getfindtextbyabsoluteposition

public boolean getfindtextbyabsoluteposition()

setfindtextbyabsoluteposition

public void setfindtextbyabsoluteposition(boolean findtextbyposition)


网站地图