PdfDocumentInfo
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.documentinfo.DocumentInfo
public class PdfDocumentInfo extends DocumentInfo
Contains Pdf document metadata
| Constructor | Description |
|---|---|
| PdfDocumentInfo(Document pdf, FileType format, long size) |
| Method | Description |
|---|---|
| getVersion() | Gets version |
| getTitle() | Gets title |
| getAuthor() | Gets author |
| isPasswordProtected() | Gets is encrypted |
| isLandscape() | Gets is page landscaped |
| getHeight() | Gets page height |
| getWidth() | Gets page width |
| getTableOfContents() | Gets Table of contents |
| setTableOfContents(List |
Sets Table of contents |
public PdfDocumentInfo(Document pdf, FileType format, long size)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| com.aspose.pdf.Document | ||
| format | FileType | |
| size | long |
public String getVersion()
Gets version
Returns: java.lang.String - version
public String getTitle()
Gets title
Returns: java.lang.String - title
public String getAuthor()
Gets author
Returns: java.lang.String - author
public boolean isPasswordProtected()
Gets is encrypted
Returns: boolean - true if encrypted
public boolean isLandscape()
Gets is page landscaped
Returns: boolean - true if page is landscaped
public double getHeight()
Gets page height
Returns: double - page height
public double getWidth()
Gets page width
Returns: double - page width
public List<TableOfContentsItem> getTableOfContents()
Gets Table of contents
Returns: java.util.List<com.groupdocs.conversion.contracts.documentinfo.TableOfContentsItem> - Table of contents
public void setTableOfContents(List<TableOfContentsItem> tableOfContents)
Sets Table of contents
Parameters:
| Parameter | Type | Description |
|---|---|---|
| tableOfContents | java.util.List<com.groupdocs.conversion.contracts.documentinfo.TableOfContentsItem> | Table of contents |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.