com.dynalivery.harmoni
Class PDFFormatOptions

java.lang.Object
  |
  +--com.dynalivery.harmoni.FormatOptions
        |
        +--com.dynalivery.harmoni.PDFFormatOptions

public class PDFFormatOptions
extends FormatOptions
implements java.io.Serializable

This class defines the Saffron PDF formatting options

See Also:
Serialized Form

Constructor Summary
PDFFormatOptions()
          Creates a new PDFFormatOptions
PDFFormatOptions(boolean fontEmbedding, boolean linearized)
          Creates a new PDFFormatOptions
 
Method Summary
 boolean getFontEmbedding()
          Returns true if fonts should be embedded
 boolean getLinearized()
          Returns true if linearized PDF should be generated
 byte[] getXML()
          Returns an XML String that describes these PDF formatting options
 void setFontEmbedding(boolean fontEmbedding)
          Sets the font embedding PDF formatting option
 void setLinearized(boolean linearized)
          Sets linearized PDF formatting option
 java.lang.String toString()
          Creates display string for format options.
 
Methods inherited from class com.dynalivery.harmoni.FormatOptions
getFileType, setFileType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDFFormatOptions

public PDFFormatOptions(boolean fontEmbedding,
                        boolean linearized)
                 throws InvalidParameterException
Creates a new PDFFormatOptions
Parameters:
fontEmbedding - true if fonts should be embedded
linearized - true if linearized PDF should be generated
Throws:
com.dynalivery.saffron.client.exception.InvalidParameterException -  

PDFFormatOptions

public PDFFormatOptions()
                 throws InvalidParameterException
Creates a new PDFFormatOptions
Method Detail

getFontEmbedding

public boolean getFontEmbedding()
Returns true if fonts should be embedded
Returns:
true if fonts should be embedded

setFontEmbedding

public void setFontEmbedding(boolean fontEmbedding)
Sets the font embedding PDF formatting option
Parameters:
fontEmbedding - true if fonts should be embedded

getLinearized

public boolean getLinearized()
Returns true if linearized PDF should be generated
Returns:
true if linearized PDF should be generated

setLinearized

public void setLinearized(boolean linearized)
Sets linearized PDF formatting option
Parameters:
linearized - true if linearized PDF should be generated

getXML

public byte[] getXML()
Returns an XML String that describes these PDF formatting options
Overrides:
getXML in class FormatOptions
Tags copied from class: FormatOptions
Returns:
an XML String representation of the format options, if any
Throws:
com.dynalivery.saffron.client.exception.InvalidParameterException -  

toString

public java.lang.String toString()
Creates display string for format options.
Overrides:
toString in class FormatOptions
Tags copied from class: FormatOptions
Returns:
display string for format options. Must be overridden in subclasses.