com.aspose.slides.export
Class PdfOptions

java.lang.Object
  extended by com.aspose.slides.export.SaveOptions
      extended by com.aspose.slides.export.PdfOptions

public class PdfOptions
extends SaveOptions

Provides options which control how presentations are saved in PDF format.


Constructor Summary
PdfOptions()
          Default constructor.
 
Method Summary
 PdfCompliance getCompliance()
          Returns the compliance level of a generated PDF document.
 boolean getEmbedTrueTypeFontsForASCII()
          Determines whether the true type fonts with ASCII characters 32-127 are embedded.
 byte getJpegQuality()
          Returns the quality of JPEG images inside a PDF document.
 PdfTextCompression getTextCompression()
          Returns the compression type for all content in a document.
 boolean isEmbedTrueTypeFontsForAsciiChars()
          Deprecated. 
 boolean isSaveMetafilesAsPng()
          Determines whether all metafiles in a presentation are saved as PNG images.
 void setCompliance(PdfCompliance compliance)
          Sets the compliance level of a generated PDF document.
 void setEmbedTrueTypeFontsForASCII(boolean value)
           
 void setEmbedTrueTypeFontsForAsciiChars(boolean isEmbedTrueTypeFontsForAsciiChars)
          Sets whether the true type fonts with ASCII characters 32-127 are embedded.
 void setJpegQuality(int jpegQuality)
          Sets the quality of JPEG images inside a PDF document.
 void setSaveMetafilesAsPng(boolean saveMetafilesAsPng)
          Sets whether all metafiles in a presentation are saved as PNG images.
 void setTextCompression(PdfTextCompression textCompression)
          Sets the compression type for all content in a document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfOptions

public PdfOptions()
Default constructor.

Method Detail

getTextCompression

public PdfTextCompression getTextCompression()
Returns the compression type for all content in a document. Default is PdfTextCompression.FLATE.


setTextCompression

public void setTextCompression(PdfTextCompression textCompression)
Sets the compression type for all content in a document. Default is PdfTextCompression.FLATE.


getEmbedTrueTypeFontsForASCII

public boolean getEmbedTrueTypeFontsForASCII()
Determines whether the true type fonts with ASCII characters 32-127 are embedded. Fonts with character greater than 127 are always embedded. Default is true.


setEmbedTrueTypeFontsForASCII

public void setEmbedTrueTypeFontsForASCII(boolean value)

isEmbedTrueTypeFontsForAsciiChars

@Deprecated
public boolean isEmbedTrueTypeFontsForAsciiChars()
Deprecated. 

True to embed true type fonts for ASCII characters 32-127. Fonts for character codes greater than 127 are always embedded. Default is true.


setEmbedTrueTypeFontsForAsciiChars

public void setEmbedTrueTypeFontsForAsciiChars(boolean isEmbedTrueTypeFontsForAsciiChars)
Sets whether the true type fonts with ASCII characters 32-127 are embedded. Fonts with character greater than 127 are always embedded. Default is true.


getJpegQuality

public byte getJpegQuality()
Returns the quality of JPEG images inside a PDF document. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression. The default is 95.

Has effect only when a document contains JPEG images.


setJpegQuality

public void setJpegQuality(int jpegQuality)
Sets the quality of JPEG images inside a PDF document. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression. The default is 95.

Has effect only when a document contains JPEG images.


getCompliance

public PdfCompliance getCompliance()
Returns the compliance level of a generated PDF document. Default is PdfCompliance.PDF_15.


setCompliance

public void setCompliance(PdfCompliance compliance)
Sets the compliance level of a generated PDF document. Default is PdfCompliance.PDF_15.


isSaveMetafilesAsPng

public boolean isSaveMetafilesAsPng()
Determines whether all metafiles in a presentation are saved as PNG images. Default is true.


setSaveMetafilesAsPng

public void setSaveMetafilesAsPng(boolean saveMetafilesAsPng)
Sets whether all metafiles in a presentation are saved as PNG images. Default is true.