public interface IPdfOptions extends ISaveOptions
Provides options that control how a presentation is saved in Pdf format.
Modifier and Type | Method and Description |
---|---|
int |
getAccessPermissions()
Contains a set of flags specifying which access permissions should be granted when the document is opened
with user access.
|
java.lang.String[] |
getAdditionalCommonFontFamilies()
Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
|
boolean |
getApplyImageTransparent()
Applies the specified transparent color to an image if
true . |
boolean |
getBestImagesCompressionRatio()
Indicates if the most effective compression (instead of the default one) for each image must be selected
automatically.
|
int |
getCompliance()
Desired conformance level for generated PDF document.
|
boolean |
getDrawSlidesFrame()
True to draw black frame around each slide.
|
boolean |
getEmbedFullFonts()
Determines if all characters of font should be embedded or only used subset.
|
boolean |
getEmbedTrueTypeFontsForASCII()
True to embed true type fonts for ASCII characters 32-127.
|
java.lang.Integer |
getImageTransparentColor()
Gets or sets the image transparent color.
|
byte |
getJpegQuality()
Returns or sets a value determining the quality of the JPEG images inside PDF document.
|
INotesCommentsLayoutingOptions |
getNotesCommentsLayouting()
Provides options that control how notes and comments is placed in exported 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.
|
boolean |
getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not.
|
float |
getSufficientResolution()
Returns or sets a value determining resolution of images inside PDF document.
|
int |
getTextCompression()
Specifies compression type to be used for all textual content in the document.
|
void |
setAccessPermissions(int value)
Contains a set of flags specifying which access permissions should be granted when the document is opened
with user access.
|
void |
setAdditionalCommonFontFamilies(java.lang.String[] value)
Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
|
void |
setApplyImageTransparent(boolean value)
Applies the specified transparent color to an image if
true . |
void |
setBestImagesCompressionRatio(boolean value)
Indicates if the most effective compression (instead of the default one) for each image must be selected
automatically.
|
void |
setCompliance(int value)
Desired conformance level for generated PDF document.
|
void |
setDrawSlidesFrame(boolean value)
True to draw black frame around each slide.
|
void |
setEmbedFullFonts(boolean value)
Determines if all characters of font should be embedded or only used subset.
|
void |
setEmbedTrueTypeFontsForASCII(boolean value)
True to embed true type fonts for ASCII characters 32-127.
|
void |
setImageTransparentColor(java.lang.Integer value)
Gets or sets the image transparent color.
|
void |
setJpegQuality(byte value)
Returns or sets a value determining the quality of the JPEG images inside PDF document.
|
void |
setPassword(java.lang.String value)
Setting user password to protect the PDF document.
|
void |
setSaveMetafilesAsPng(boolean value)
True to convert all metafiles used in a presentation to the PNG images.
|
void |
setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not.
|
void |
setSufficientResolution(float value)
Returns or sets a value determining resolution of images inside PDF document.
|
void |
setTextCompression(int value)
Specifies compression type to be used for all textual content in the document.
|
getDefaultRegularFont, getProgressCallback, getWarningCallback, setDefaultRegularFont, setProgressCallback, setWarningCallback
int getTextCompression()
Specifies compression type to be used for all textual content in the document.
Read/write PdfTextCompression
.
PdfTextCompression.Flate
.
void setTextCompression(int value)
Specifies compression type to be used for all textual content in the document.
Read/write PdfTextCompression
.
PdfTextCompression.Flate
.
boolean getBestImagesCompressionRatio()
Indicates if the most effective compression (instead of the default one) for each image must be selected
automatically. If set to bool.True
, for every image in presentation the most appropriate compression
algorithm will be chosen, what will lead to the smaller size of the resulting PDF document.
bool.False
by default.bool.False
.
void setBestImagesCompressionRatio(boolean value)
Indicates if the most effective compression (instead of the default one) for each image must be selected
automatically. If set to bool.True
, for every image in presentation the most appropriate compression
algorithm will be chosen, what will lead to the smaller size of the resulting PDF document.
bool.False
by default.bool.False
.
boolean getEmbedTrueTypeFontsForASCII()
True to embed true type fonts for ASCII characters 32-127.
Fonts for character codes greater than 127 are always embedded.
Read/write boolean
.
<b>true</b>
.
void setEmbedTrueTypeFontsForASCII(boolean value)
True to embed true type fonts for ASCII characters 32-127.
Fonts for character codes greater than 127 are always embedded.
Read/write boolean
.
<b>true</b>
.
boolean getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not.
Default is false
.
void setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not.
Default is false
.
java.lang.String[] getAdditionalCommonFontFamilies()
Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
Read/write String[]
.
void setAdditionalCommonFontFamilies(java.lang.String[] value)
Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
Read/write String[]
.
boolean getEmbedFullFonts()
Determines if all characters of font should be embedded or only used subset.
Read/write boolean
.
<b>false</b>
.
void setEmbedFullFonts(boolean value)
Determines if all characters of font should be embedded or only used subset.
Read/write boolean
.
<b>false</b>
.
byte getJpegQuality()
Returns or sets a value determining the quality of the JPEG images inside PDF document.
Read/write byte
.
<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>
void setJpegQuality(byte value)
Returns or sets a value determining the quality of the JPEG images inside PDF document.
Read/write byte
.
<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>
int getCompliance()
Desired conformance level for generated PDF document.
Read/write PdfCompliance
.
PdfCompliance.Pdf15
.
void setCompliance(int value)
Desired conformance level for generated PDF document.
Read/write PdfCompliance
.
PdfCompliance.Pdf15
.
java.lang.String getPassword()
Setting user password to protect the PDF document.
Read/write String
.
void setPassword(java.lang.String value)
Setting user password to protect the PDF document.
Read/write String
.
int getAccessPermissions()
Contains a set of flags specifying which access permissions should be granted when the document is opened
with user access. See PdfAccessPermissions
.
PdfOptions pdfOptions = new PdfOptions(); pdfOptions.setPassword("my_password"); pdfOptions.setAccessPermissions(PdfAccessPermissions.PrintDocument | PdfAccessPermissions.HighQualityPrint); Presentation presentation = new Presentation(); try { presentation.save(pdfFilePath, SaveFormat.Pdf, pdfOptions); } finally { if (presentation != null) presentation.dispose(); }
void setAccessPermissions(int value)
Contains a set of flags specifying which access permissions should be granted when the document is opened
with user access. See PdfAccessPermissions
.
PdfOptions pdfOptions = new PdfOptions(); pdfOptions.setPassword("my_password"); pdfOptions.setAccessPermissions(PdfAccessPermissions.PrintDocument | PdfAccessPermissions.HighQualityPrint); Presentation presentation = new Presentation(); try { presentation.save(pdfFilePath, SaveFormat.Pdf, pdfOptions); } finally { if (presentation != null) presentation.dispose(); }
boolean getSaveMetafilesAsPng()
True to convert all metafiles used in a presentation to the PNG images.
Read/write boolean
.
<b>true</b>
.
Pdf document can contain vector graphics and raster images.
If SaveMetafilesAsPng is set to true then source Metafile
image is converted to Png format and saved to Pdf as a raster
image. If SaveMetafilesAsPng is set to false then source Metafile
is converted to Pdf vector graphics. Each approach has advantages
and disadvantages.For example, if Metafile is converted to PNG,
then some quality loss is possible during resulting
document scaling.If Metafile is converted to Pdf vector graphics,
then performance issues in Pdf viewing tool are possible.
void setSaveMetafilesAsPng(boolean value)
True to convert all metafiles used in a presentation to the PNG images.
Read/write boolean
.
<b>true</b>
.
Pdf document can contain vector graphics and raster images.
If SaveMetafilesAsPng is set to true then source Metafile
image is converted to Png format and saved to Pdf as a raster
image. If SaveMetafilesAsPng is set to false then source Metafile
is converted to Pdf vector graphics. Each approach has advantages
and disadvantages.For example, if Metafile is converted to PNG,
then some quality loss is possible during resulting
document scaling.If Metafile is converted to Pdf vector graphics,
then performance issues in Pdf viewing tool are possible.
float getSufficientResolution()
Returns or sets a value determining resolution of images inside PDF document.
Read/write float
.
<p>Property affects on file size, time of export and image quality.</p>
<p>The default value is <b>96</b>.</p>
void setSufficientResolution(float value)
Returns or sets a value determining resolution of images inside PDF document.
Read/write float
.
<p>Property affects on file size, time of export and image quality.</p>
<p>The default value is <b>96</b>.</p>
boolean getDrawSlidesFrame()
True to draw black frame around each slide.
Read/write boolean
.
<b>false</b>
.
void setDrawSlidesFrame(boolean value)
True to draw black frame around each slide.
Read/write boolean
.
<b>false</b>
.
INotesCommentsLayoutingOptions getNotesCommentsLayouting()
Provides options that control how notes and comments is placed in exported document.
java.lang.Integer getImageTransparentColor()
Gets or sets the image transparent color.
Value: The color of the image transparent.void setImageTransparentColor(java.lang.Integer value)
Gets or sets the image transparent color.
Value: The color of the image transparent.boolean getApplyImageTransparent()
Applies the specified transparent color to an image if true
.
void setApplyImageTransparent(boolean value)
Applies the specified transparent color to an image if true
.