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 BooleancontainsEmbeddedFiles()Returns a boolean specifying whether the specified PDF file contains any embedded files.StringgetFileSize()Returns the size of the specified PDF file.List<Font>getFonts()Returns a list ofFontinstances present in the specified PDF file.IntegergetIncrementalSaveCount()Returns the count of the number of times the specified PDF file is edited and saved.InfoDictgetInfoDict()Returns anInfoDictinstance that specifies information related to the specified PDF file such as creation date, author etc.IntegergetPageCount()Returns a number specifying the number of pages in the specified PDF file.StringgetPDFAComplianceLevel()Returns a string specifying the PDF/A compliance level for the specified PDF file - e.g "PDF/A-4" etc.StringgetPDFEComplianceLevel()Returns a string specifying the PDF/E compliance level for the specified PDF file - e.g.StringgetPDFUAComplianceLevel()Returns a string specifying the PDF/UA compliance level for the specified PDF file - e.g.StringgetPDFVersion()Returns a string specifying the version of the specified PDF file - e.g.StringgetPDFVTComplianceLevel()Returns a string specifying the PDF/VT compliance level for the specified PDF file - e.g.StringgetPDFXComplianceLevel()Returns a string specifying the PDF/X compliance level for the specified PDF file - e.g.StringgetXMPMetadata()Returns a string specifying the full metadata of the specified PDF file as provided by the author and producer of the document.BooleanisAcroform()Returns a boolean specifying whether the specified PDF file contains any form fields.BooleanisCertified()Returns a boolean specifying whether the specified PDF file has been digitally signed with a certifying signature.BooleanisEncrypted()Returns a boolean specifying whether the specified PDF file is encrypted.BooleanisFullyTaggedPDF()Returns a boolean specifying whether the specified PDF file is a Fully Tagged PDF.BooleanisLinearized()Returns a boolean specifying whether the specified PDF file is linearized.BooleanisPortfolio()Returns a boolean specifying whether the specified PDF file is a portfolio PDF.BooleanisSigned()Returns a boolean specifying whether the specified PDF file is digitally signed.BooleanisTagged()Returns a boolean specifying whether the specified PDF file is tagged.BooleanisXFA()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:
trueif the specified PDF file is linearized. False otherwise.
-
isTagged
public Boolean isTagged()
Returns a boolean specifying whether the specified PDF file is tagged.- Returns:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif the specified PDF file contains any embedded files. False otherwise.
-
getFonts
public List<Font> getFonts()
Returns a list ofFontinstances present in the specified PDF file.- Returns:
- A List of
Fontinstances
-
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 anInfoDictinstance that specifies information related to the specified PDF file such as creation date, author etc.- Returns:
- an
InfoDictinstance.
-
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.
-
-