java.lang.Objectcom.aspose.words.PdfOptions
public class PdfOptions
Constructor Summary |
---|
PdfOptions()
|
Property Getters/Setters Summary | ||
---|---|---|
int | getBookmarksOutlineLevel() | |
void | setBookmarksOutlineLevel(int value) | |
Specifies the level in the PDF document outline at which to display Word bookmarks. | ||
int | getCompliance() | |
void | setCompliance(int value) | |
Specifies the PDF standards compliance level for output documents. The value of the property is PdfCompliance integer constant. | ||
int | getExpandedOutlineLevels() | |
void | setExpandedOutlineLevels(int value) | |
Specifies how many levels in the PDF document outline to show expanded when the PDF file is viewed. | ||
int | getHeadingsOutlineLevels() | |
void | setHeadingsOutlineLevels(int value) | |
Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the the PDF document outline. | ||
boolean | isEmbedTrueTypeFontsForAsciiChars() | |
void | isEmbedTrueTypeFontsForAsciiChars(boolean value) | |
True to embed true type fonts for ASCII characters 32-127.
Fonts for character codes greater than 127 are always embedded.
Default is true .
|
||
int | getJpegQuality() | |
void | setJpegQuality(int value) | |
Gets or sets a value determining the quality of the JPEG images inside PDF document. | ||
int | getTextCompression() | |
void | setTextCompression(int value) | |
Specifies compression type to be used for all textual content in the document. The value of the property is PdfTextCompression integer constant. | ||
java.lang.String | getTrueTypeFontsFolder() | |
void | setTrueTypeFontsFolder(java.lang.String value) | |
Gets or sets the directory where TrueType fonts are located on this computer. |
Method Summary | ||
---|---|---|
PdfOptions | deepClone() | |
Creates a deep clone of the object. |
Constructor Detail |
---|
public PdfOptions()
Property Getters/Setters Detail |
---|
getHeadingsOutlineLevels/setHeadingsOutlineLevels | |
public int getHeadingsOutlineLevels() / public void setHeadingsOutlineLevels(int value) |
Specify 0 for no headings in the outline; specify 1 for one level of headings in the outline and so on.
Default is 0. Valid range is 0 to 9.
getExpandedOutlineLevels/setExpandedOutlineLevels | |
public int getExpandedOutlineLevels() / public void setExpandedOutlineLevels(int value) |
Specify 0 and the document outline will be collapsed; specify 1 and the first level items in the outline will be expanded and so on.
Default is 0. Valid range is 0 to 9.
getBookmarksOutlineLevel/setBookmarksOutlineLevel | |
public int getBookmarksOutlineLevel() / public void setBookmarksOutlineLevel(int value) |
Specify 0 and Word bookmarks will not be displayed in the PDF document outline. Specify 1 and Word bookmarks will be displayed in the PDF document outline at level 1; 2 for level 2 and so on.
Default is 0. Valid range is 0 to 9.
getTextCompression/setTextCompression | |
public int getTextCompression() / public void setTextCompression(int value) |
Default is
isEmbedTrueTypeFontsForAsciiChars/isEmbedTrueTypeFontsForAsciiChars | |
public boolean isEmbedTrueTypeFontsForAsciiChars() / public void isEmbedTrueTypeFontsForAsciiChars(boolean value) |
true
.
Setting this property to false
can reduce the size of the PDF file,
but the document might appear different when viewed on another computer if
the same fonts are not installed. The document will still be readable because
only US English characters will not be embedded in the PDF file.
getTrueTypeFontsFolder/setTrueTypeFontsFolder | |
public java.lang.String getTrueTypeFontsFolder() / public void setTrueTypeFontsFolder(java.lang.String value) |
Note that setting this property has immediate and global effect on all conversion to PDF operations in Aspose.Words.
When converting a document to PDF, Aspose.Words needs to be able to access all TrueType fonts that are used in the document because it parses, subsets and embeds TrueType fonts into the PDF document.
If you are converting documents on a server or in a hosted environment, depending on the security settings, your application might have no permissions to access the system fonts directory. Also, your documents might use some TrueType fonts not available on the server and you might have no rights to install them.
To overcome these problems, create a directory where you application
has access to, copy all the TrueType fonts you want to use there and specify
this directory in the
On a Microsoft Windows system, this property is initialized to point to the "%windir%\Fonts" directory by default. On other operating systems, this property is initialized to "/usr/share/fonts/ttf".
getCompliance/setCompliance | |
public int getCompliance() / public void setCompliance(int value) |
Default is
getJpegQuality/setJpegQuality | |
public int getJpegQuality() / public void setJpegQuality(int value) |
Has effect only when a document contains JPEG images.
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.
The default value is 95.
Method Detail |
---|
deepClone | |
public PdfOptions deepClone() throws java.lang.Exception |