Class Document
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.result.pdfproperties.Document
-
public class Document extends Object
This class provides information about the document level properties of the specified PDF file, such as tags, fonts, PDF Version etc.
-
-
Constructor Summary
Constructors Constructor Description Document()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
containsEmbeddedFiles()
Returns a boolean specifying whether the specified PDF file contains any embedded files.String
getFileSize()
Returns the size of the specified PDF file.List<Font>
getFonts()
Returns a list ofFont
instances present in the specified PDF file.Integer
getIncrementalSaveCount()
Returns the count of the number of times the specified PDF file is edited and saved.InfoDict
getInfoDict()
Returns anInfoDict
instance that specifies information related to the specified PDF file such as creation date, author etc.Integer
getPageCount()
Returns a number specifying the number of pages in the specified PDF file.String
getPDFAComplianceLevel()
Returns a string specifying the PDF/A compliance level for the specified PDF file - e.g "PDF/A-4" etc.String
getPDFEComplianceLevel()
Returns a string specifying the PDF/E compliance level for the specified PDF file - e.g.String
getPDFUAComplianceLevel()
Returns a string specifying the PDF/UA compliance level for the specified PDF file - e.g.String
getPDFVersion()
Returns a string specifying the version of the specified PDF file - e.g.String
getPDFVTComplianceLevel()
Returns a string specifying the PDF/VT compliance level for the specified PDF file - e.g.String
getPDFXComplianceLevel()
Returns a string specifying the PDF/X compliance level for the specified PDF file - e.g.String
getXMPMetadata()
Returns a string specifying the full metadata of the specified PDF file as provided by the author and producer of the document.Boolean
isAcroform()
Returns a boolean specifying whether the specified PDF file contains any form fields.Boolean
isCertified()
Returns a boolean specifying whether the specified PDF file has been digitally signed with a certifying signature.Boolean
isEncrypted()
Returns a boolean specifying whether the specified PDF file is encrypted.Boolean
isFullyTaggedPDF()
Returns a boolean specifying whether the specified PDF file is a Fully Tagged PDF.Boolean
isLinearized()
Returns a boolean specifying whether the specified PDF file is linearized.Boolean
isPortfolio()
Returns a boolean specifying whether the specified PDF file is a portfolio PDF.Boolean
isSigned()
Returns a boolean specifying whether the specified PDF file is digitally signed.Boolean
isTagged()
Returns a boolean specifying whether the specified PDF file is tagged.Boolean
isXFA()
Returns a boolean specifying whether the specified PDF file is based on the XFA (Extensible Forms Architecture) format.
-
-
-
Method Detail
-
isLinearized
public Boolean isLinearized()
Returns a boolean specifying whether the specified PDF file is linearized.- Returns:
true
if the specified PDF file is linearized. False otherwise.
-
isTagged
public Boolean isTagged()
Returns a boolean specifying whether the specified PDF file is tagged.- Returns:
true
if the specified PDF file is tagged. False otherwise.
-
isPortfolio
public Boolean isPortfolio()
Returns a boolean specifying whether the specified PDF file is a portfolio PDF.- Returns:
true
if the specified PDF file is a portfolio PDF. False otherwise.
-
isCertified
public Boolean isCertified()
Returns a boolean specifying whether the specified PDF file has been digitally signed with a certifying signature.- Returns:
true
if the specified PDF file has been digitally signed with a certifying signature. False otherwise.
-
isEncrypted
public Boolean isEncrypted()
Returns a boolean specifying whether the specified PDF file is encrypted.- Returns:
true
if the specified PDF file is encrypted. False otherwise.
-
isFullyTaggedPDF
public Boolean isFullyTaggedPDF()
Returns a boolean specifying whether the specified PDF file is a Fully Tagged PDF.- Returns:
true
if the specified PDF file is a Fully Tagged PDF. False otherwise.
-
isAcroform
public Boolean isAcroform()
Returns a boolean specifying whether the specified PDF file contains any form fields.- Returns:
true
if the specified PDF file contains any form fields. False otherwise.
-
isSigned
public Boolean isSigned()
Returns a boolean specifying whether the specified PDF file is digitally signed.- Returns:
true
if the specified PDF file is digitally signed. False otherwise.
-
isXFA
public Boolean isXFA()
Returns a boolean specifying whether the specified PDF file is based on the XFA (Extensible Forms Architecture) format.- Returns:
true
if the specified PDF file is based on the XFA format. False otherwise
-
containsEmbeddedFiles
public Boolean containsEmbeddedFiles()
Returns a boolean specifying whether the specified PDF file contains any embedded files.- Returns:
true
if the specified PDF file contains any embedded files. False otherwise.
-
getFonts
public List<Font> getFonts()
Returns a list ofFont
instances present in the specified PDF file.- Returns:
- A List of
Font
instances
-
getPDFAComplianceLevel
public String getPDFAComplianceLevel()
Returns a string specifying the PDF/A compliance level for the specified PDF file - e.g "PDF/A-4" etc.- Returns:
- A String denoting the PDF/A compliance level for the specified PDF file.
-
getPDFVTComplianceLevel
public String getPDFVTComplianceLevel()
Returns a string specifying the PDF/VT compliance level for the specified PDF file - e.g. "PDF/VT-3" etc.- Returns:
- A String denoting the PDF/VT compliance level for the specified PDF file.
-
getPDFXComplianceLevel
public String getPDFXComplianceLevel()
Returns a string specifying the PDF/X compliance level for the specified PDF file - e.g. "PDF/X-4" etc.- Returns:
- A String denoting the PDF/X compliance level for the specified PDF file.
-
getPDFUAComplianceLevel
public String getPDFUAComplianceLevel()
Returns a string specifying the PDF/UA compliance level for the specified PDF file - e.g. "PDF/UA-1" etc.- Returns:
- A String denoting the PDF/UA compliance level for the specified PDF file.
-
getXMPMetadata
public String getXMPMetadata()
Returns a string specifying the full metadata of the specified PDF file as provided by the author and producer of the document.- Returns:
- A String denoting the full metadata of the specified PDF file as provided by the author and producer of the document.
-
getPageCount
public Integer getPageCount()
Returns a number specifying the number of pages in the specified PDF file.- Returns:
- An Integer denoting the number of pages in the specified PDF file.
-
getPDFEComplianceLevel
public String getPDFEComplianceLevel()
Returns a string specifying the PDF/E compliance level for the specified PDF file - e.g. "PDF/E-1" etc.- Returns:
- A String denoting the PDF/E compliance level for the specified PDF file.
-
getInfoDict
public InfoDict getInfoDict()
Returns anInfoDict
instance that specifies information related to the specified PDF file such as creation date, author etc.- Returns:
- an
InfoDict
instance.
-
getPDFVersion
public String getPDFVersion()
Returns a string specifying the version of the specified PDF file - e.g. "1.7", "2.0" etc.- Returns:
- A String denoting the version of the specified PDF file.
-
getFileSize
public String getFileSize()
Returns the size of the specified PDF file.- Returns:
- A String denoting the size of the specified PDF file.
-
getIncrementalSaveCount
public Integer getIncrementalSaveCount()
Returns the count of the number of times the specified PDF file is edited and saved.- Returns:
- An Integer denoting the count of the number of times the specified PDF file is edited and saved.
-
-