com.aspose.slides
Class PdfOptions

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

public class PdfOptions
extends SaveOptions

Provides options that control how a presentation is saved in Pdf format.


Constructor Summary
PdfOptions()
           Default constructor.
 
Method Summary
 java.lang.String[] getAdditionalCommonFontFamilies()
           Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
 int getCompliance()
           Desired conformance level for generated PDF document.
 boolean getEmbedFullFonts()
           Determines if all characters of font should be embedded or only used subset.
 boolean getEmbedTrueTypeFontsForASCII()
           Determines if Aspose.Slides will embed common fonts for ASCII (33..127 code range) text.
 byte getJpegQuality()
           Returns or sets a value determining the quality of the JPEG images inside PDF document.
 java.lang.String getPassword()
           Setting user password to protect the PDF document.
 boolean getSaveMetafilesAsPng()
           True to convert all metafiles used in a presentation to the PNG images.
 int getTextCompression()
           Specifies compression type to be used for all textual content in the document.
 boolean isEmbedTrueTypeFontsForAsciiChars()
          Deprecated. 
 void isEmbedTrueTypeFontsForAsciiChars(boolean value)
          Deprecated. 
 void setAdditionalCommonFontFamilies(java.lang.String[] value)
           
 void setCompliance(int value)
           
 void setEmbedFullFonts(boolean value)
           
 void setEmbedTrueTypeFontsForASCII(boolean value)
           
 void setJpegQuality(byte value)
           
 void setPassword(java.lang.String value)
           
 void setSaveMetafilesAsPng(boolean value)
           
 void setTextCompression(int value)
           
 
Methods inherited from class com.aspose.slides.SaveOptions
getWarningCallback, setWarningCallback
 
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 int getTextCompression()

Specifies compression type to be used for all textual content in the document.


Default is PdfTextCompression.Flate.


setTextCompression

public void setTextCompression(int value)

getEmbedTrueTypeFontsForASCII

public boolean getEmbedTrueTypeFontsForASCII()

Determines if Aspose.Slides will embed common fonts for ASCII (33..127 code range) text. Fonts for character codes greater than 127 are always embedded. Common fonts list includes PDF's base 14 fonts and additional user specified fonts.


Default is <b>true</b>.


setEmbedTrueTypeFontsForASCII

public void setEmbedTrueTypeFontsForASCII(boolean value)

getAdditionalCommonFontFamilies

public java.lang.String[] getAdditionalCommonFontFamilies()

Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.


setAdditionalCommonFontFamilies

public void setAdditionalCommonFontFamilies(java.lang.String[] value)

getEmbedFullFonts

public boolean getEmbedFullFonts()

Determines if all characters of font should be embedded or only used subset.


Default is <b>false</b>.


setEmbedFullFonts

public void setEmbedFullFonts(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 <b>true</b>.


isEmbedTrueTypeFontsForAsciiChars

@Deprecated
public void isEmbedTrueTypeFontsForAsciiChars(boolean value)
Deprecated. 


getJpegQuality

public byte getJpegQuality()

Returns or sets a value determining the quality of the JPEG images inside PDF document.


<p>Has effect only when a document contains JPEG images.</p> <p>Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.</p> <p>The default value is <b>100</b>.</p>


setJpegQuality

public void setJpegQuality(byte value)

getCompliance

public int getCompliance()

Desired conformance level for generated PDF document.


Default is PdfCompliance.Pdf15.


setCompliance

public void setCompliance(int value)

getPassword

public java.lang.String getPassword()

Setting user password to protect the PDF document.


setPassword

public void setPassword(java.lang.String value)

getSaveMetafilesAsPng

public boolean getSaveMetafilesAsPng()

True to convert all metafiles used in a presentation to the PNG images.


Default is <b>true</b>.


setSaveMetafilesAsPng

public void setSaveMetafilesAsPng(boolean value)