PdfDocumentInfo

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.documentinfo.DocumentInfo

public class PdfDocumentInfo extends DocumentInfo

Contains Pdf document metadata

Constructors

Constructor Description
PdfDocumentInfo(Document pdf, FileType format, long size)

Methods

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 tableOfContents) Sets Table of contents

PdfDocumentInfo(Document pdf, FileType format, long size)

public PdfDocumentInfo(Document pdf, FileType format, long size)

Parameters:

Parameter Type Description
pdf com.aspose.pdf.Document
format FileType
size long

getVersion()

public String getVersion()

Gets version

Returns: java.lang.String - version

getTitle()

public String getTitle()

Gets title

Returns: java.lang.String - title

getAuthor()

public String getAuthor()

Gets author

Returns: java.lang.String - author

isPasswordProtected()

public boolean isPasswordProtected()

Gets is encrypted

Returns: boolean - true if encrypted

isLandscape()

public boolean isLandscape()

Gets is page landscaped

Returns: boolean - true if page is landscaped

getHeight()

public double getHeight()

Gets page height

Returns: double - page height

getWidth()

public double getWidth()

Gets page width

Returns: double - page width

getTableOfContents()

public List<TableOfContentsItem> getTableOfContents()

Gets Table of contents

Returns: java.util.List<com.groupdocs.conversion.contracts.documentinfo.TableOfContentsItem> - Table of contents

setTableOfContents(List tableOfContents)

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