com.dynalivery.saffron.client
Class PDFFormatOptions

java.lang.Object
  extended bycom.dynalivery.saffron.client.FormatOptions
      extended bycom.dynalivery.saffron.client.PDFFormatOptions
All Implemented Interfaces:
java.io.Serializable

public class PDFFormatOptions
extends FormatOptions
implements java.io.Serializable

This class defines the Saffron PDF formatting options

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.dynalivery.saffron.client.FormatOptions
fileType
 
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.saffron.client.FormatOptions
getFileType, setFileType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDFFormatOptions

public PDFFormatOptions()
                 throws InvalidParameterException
Creates a new PDFFormatOptions


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:
InvalidParameterException
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

Specified by:
getXML in class FormatOptions
Returns:
an XML String representation of the format options, if any

toString

public java.lang.String toString()
Creates display string for format options.

Overrides:
toString in class FormatOptions
Returns:
display string for format options. Must be overridden in subclasses.