public static class Convert.HTMLOutputOptions
extends java.lang.Object
Constructor and Description |
---|
HTMLOutputOptions()
Creates an HTMLOutputCommonOptions object with default settings
|
Modifier and Type | Method and Description |
---|---|
void |
setDPI(int dpi)
The output resolution, from 1 to 1000, in Dots Per Inch (DPI) at which to render elements which cannot be directly converted.
|
void |
setExternalLinks(boolean enable)
Enable the conversion of external URL navigation.
|
void |
setInternalLinks(boolean enable)
Enable the conversion of internal document navigation.
|
void |
setJPGQuality(int quality)
Specifies the compression quality to use when generating JPEG images.
|
void |
setMaximumImagePixels(int max_pixels)
Specifies the maximum image slice size in pixels.
|
void |
setPreferJPG(boolean prefer_jpg)
Use JPG files rather than PNG.
|
void |
setReflow(boolean reflow)
Switch between fixed (pre-paginated) and reflowable HTML generation.
|
void |
setScale(double scale)
Set an overall scaling of the generated HTML pages.
|
void |
setSimplifyText(boolean enable)
Controls whether converter optimizes DOM or preserves text placement accuracy.
|
public HTMLOutputOptions()
public void setPreferJPG(boolean prefer_jpg) throws PDFNetException
prefer_jpg
- if true JPG images will be used whenever possible.PDFNetException
public void setJPGQuality(int quality) throws PDFNetException
quality
- the JPEG compression quality, from 0(highest compression) to 100(best quality).PDFNetException
public void setDPI(int dpi) throws PDFNetException
dpi
- the resolution in Dots Per InchPDFNetException
public void setMaximumImagePixels(int max_pixels) throws PDFNetException
Note: This setting now will no longer reduce the total number of image pixels. Instead a lower value will just produce more slices and vice versa.
Note: Since image compression works better with more pixels a larger max pixels should generally create smaller files.
max_pixels
- the maximum number of pixels an image can havePDFNetException
public void setReflow(boolean reflow) throws PDFNetException
reflow
- if true, generated HTML will be reflowable, otherwise, fixed positioning will be usedPDFNetException
public void setScale(double scale) throws PDFNetException
scale
- A number greater than 0 which is used as a scale factor. For example, calling SetScale(0.5) will reduce the HTML body of the page to half its original size, whereas SetScale(2) will double the HTML body dimensions of the page and will rescale all page content appropriately.PDFNetException
public void setExternalLinks(boolean enable) throws PDFNetException
enable
- if true, links that specify external URL's are converted into HTML.PDFNetException
public void setInternalLinks(boolean enable) throws PDFNetException
enable
- if true, links that specify page jumps are converted into HTML.PDFNetException
public void setSimplifyText(boolean enable) throws PDFNetException
enable
- If true, converter will try to reduce DOM complexity at the expense of text placement accuracy.PDFNetException