pdftron.PDF
Class Convert.XODOutputOptions

java.lang.Object
  extended by pdftron.PDF.Convert.XPSOutputCommonOptions
      extended by pdftron.PDF.Convert.XODOutputOptions
Enclosing class:
Convert

public static class Convert.XODOutputOptions
extends Convert.XPSOutputCommonOptions

A class containing options for ToXod functions


Constructor Summary
Convert.XODOutputOptions()
           
 
Method Summary
 void setElementLimit(int element_limit)
          If rendering is permitted, sets the maximum number of page elements before that page will be rendered.
 void setFlattenContent(boolean flatten)
          Flatten images and paths into a single background image overlaid with vector text.
 void setMaximumImagePixels(int max_pixels)
          Specifies the maximum image size in pixels.
 void setOpacityMaskWorkaround(boolean opacity)
          If rendering is permitted, sets whether pages containing opacity masks should be rendered.
 void setOutputThumbnails(boolean include_thumbs)
          Sets whether per page thumbnails should be included in the file the default setting is to output thumbnails
 void setPreferJPG(boolean prefer_jpg)
          Where possible output JPG files rather than PNG.
 void SetSilverlightTextWorkaround(boolean workaround)
          Outputs rotated text as paths.
 void setThumbnailSize(int size)
          The width and height of a square in which all thumbnails will be contained.
 
Methods inherited from class pdftron.PDF.Convert.XPSOutputCommonOptions
generateURLLinks, setDPI, setPrintMode, setRenderPages, setThickenLines
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert.XODOutputOptions

public Convert.XODOutputOptions()
Method Detail

setOutputThumbnails

public void setOutputThumbnails(boolean include_thumbs)
                         throws PDFNetException
Sets whether per page thumbnails should be included in the file the default setting is to output thumbnails

Parameters:
include_thumbs - if true thumbnails will be included
Throws:
PDFNetException

setThumbnailSize

public void setThumbnailSize(int size)
                      throws PDFNetException
The width and height of a square in which all thumbnails will be contained.

Parameters:
size - the maximum dimension (width or height) that thumbnails will have.
Throws:
PDFNetException

setElementLimit

public void setElementLimit(int element_limit)
                     throws PDFNetException
If rendering is permitted, sets the maximum number of page elements before that page will be rendered. the default value is 10000 elements

Parameters:
element_limit - the maximum number of elements before a given page will be rendered
Throws:
PDFNetException

setOpacityMaskWorkaround

public void setOpacityMaskWorkaround(boolean opacity)
                              throws PDFNetException
If rendering is permitted, sets whether pages containing opacity masks should be rendered. This option is used as a workaround to a bug in Silverlight where opacity masks are transformed incorrectly. the default setting is not to render pages with opacity masks

Parameters:
opacity_render - if true pages with opacity masks will be rendered
Throws:
PDFNetException

setMaximumImagePixels

public void setMaximumImagePixels(int max_pixels)
                           throws PDFNetException
Specifies the maximum image size in pixels.

Parameters:
max_pixels - the maximum number of pixels an image can have.
Throws:
PDFNetException

setFlattenContent

public void setFlattenContent(boolean flatten)
                       throws PDFNetException
Flatten images and paths into a single background image overlaid with vector text. This option can be used to improve speed on devices with little processing power such as iPads."

Parameters:
flatten - if true all non-text page content will be pre-rendered.
Throws:
PDFNetException

setPreferJPG

public void setPreferJPG(boolean prefer_jpg)
                  throws PDFNetException
Where possible output JPG files rather than PNG. This will apply to both thumbnails and document images.

Parameters:
prefer_jpg - if true JPG images will be used whenever possible.
Throws:
PDFNetException

SetSilverlightTextWorkaround

public void SetSilverlightTextWorkaround(boolean workaround)
                                  throws PDFNetException
Outputs rotated text as paths. This option is used as a workaround to a bug in Silverlight where pages with rotated text could cause the plugin to crash.

Parameters:
workaround - if true rotated text will be changed to paths
Throws:
PDFNetException


© 2002-2011 PDFTron Systems Inc.