Package net.webpdf.wsclient.openapi
Class MetadataInformation
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataInformation
-
public class MetadataInformation extends Object
Summarizes structural information and settings for the PDF document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataInformation.DocMDPEnumA document \"Modification Detection and Prevention\" may be set, that defines which modifications of the document are allowed and which modifications would render the signature invalidstatic classMetadataInformation.FormTypeEnumWhen set to another value than \"none\", the document does contain a PDF form in the hereby given formatstatic classMetadataInformation.InitialViewEnumDefines which sub-windows will be opened when the PDF document is openedstatic classMetadataInformation.MagnificationEnumThe initial page zoom settings of a document.static classMetadataInformation.PageLayoutEnumThe set initial page layout of a document.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ATTACHMENTSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_DOC_M_D_Pstatic StringJSON_PROPERTY_ENCRYPTEDstatic StringJSON_PROPERTY_FILE_SIZEstatic StringJSON_PROPERTY_FORM_TYPEstatic StringJSON_PROPERTY_INITIAL_PAGEstatic StringJSON_PROPERTY_INITIAL_VIEWstatic StringJSON_PROPERTY_LANGUAGEstatic StringJSON_PROPERTY_MAGNIFICATIONstatic StringJSON_PROPERTY_MAGNIFICATION_ZOOMstatic StringJSON_PROPERTY_OBJECT_KEYstatic StringJSON_PROPERTY_PAGE_LAYOUTstatic StringJSON_PROPERTY_PAGESstatic StringJSON_PROPERTY_PDFAstatic StringJSON_PROPERTY_PORTFOLIOstatic StringJSON_PROPERTY_SIGNATURESstatic StringJSON_PROPERTY_VERSIONstatic StringJSON_PROPERTY_VIEWER_PREFERENCES
-
Constructor Summary
Constructors Constructor Description MetadataInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataInformationattachments(Integer attachments)MetadataInformationdescription(MetadataDescription description)MetadataInformationdocMDP(MetadataInformation.DocMDPEnum docMDP)MetadataInformationencrypted(Boolean encrypted)booleanequals(Object o)MetadataInformationfileSize(Long fileSize)MetadataInformationformType(MetadataInformation.FormTypeEnum formType)@Nullable IntegergetAttachments()The number of attachments contained in the document.@NotNull MetadataDescriptiongetDescription()Get description@Nullable MetadataInformation.DocMDPEnumgetDocMDP()A document \"Modification Detection and Prevention\" may be set, that defines which modifications of the document are allowed and which modifications would render the signature invalid@Nullable BooleangetEncrypted()This will be set to \"true\" for a document, that is either password protected or certificate encrypted.@Nullable LonggetFileSize()The byte size of the document.@Nullable MetadataInformation.FormTypeEnumgetFormType()When set to another value than \"none\", the document does contain a PDF form in the hereby given format@Nullable IntegergetInitialPage()The first page, that shall be displayed when opening the document in a PDF Reader.@Nullable MetadataInformation.InitialViewEnumgetInitialView()Defines which sub-windows will be opened when the PDF document is opened@Nullable StringgetLanguage()The natural language of the document.@Nullable MetadataInformation.MagnificationEnumgetMagnification()The initial page zoom settings of a document.@Nullable IntegergetMagnificationZoom()If a magnification \"zoom\" is selected for this document, this is the actual percentage the pages of the document shall be zoomed to, when opening the document in a PDF Reader.@Nullable StringgetObjectKey()The object ID of the document's catalog.@Nullable MetadataInformation.PageLayoutEnumgetPageLayout()The set initial page layout of a document.@Nullable IntegergetPages()The number of pages contained in the document.@NotNull MetadataPdfagetPdfa()Get pdfa@Nullable BooleangetPortfolio()Will be set to \"true\" for a \"PDF collection\" (Portfolio), that serves as the container for other documents.@Nullable IntegergetSignatures()The number of signatures contained in the document.@Nullable StringgetVersion()The version name of the PDF standard the document claims compatibility with.@NotNull MetadataViewerPreferencesgetViewerPreferences()Get viewerPreferencesinthashCode()MetadataInformationinitialPage(Integer initialPage)MetadataInformationinitialView(MetadataInformation.InitialViewEnum initialView)MetadataInformationlanguage(String language)MetadataInformationmagnification(MetadataInformation.MagnificationEnum magnification)MetadataInformationmagnificationZoom(Integer magnificationZoom)MetadataInformationobjectKey(String objectKey)MetadataInformationpageLayout(MetadataInformation.PageLayoutEnum pageLayout)MetadataInformationpages(Integer pages)MetadataInformationpdfa(MetadataPdfa pdfa)MetadataInformationportfolio(Boolean portfolio)voidsetAttachments(Integer attachments)voidsetDescription(MetadataDescription description)voidsetDocMDP(MetadataInformation.DocMDPEnum docMDP)voidsetEncrypted(Boolean encrypted)voidsetFileSize(Long fileSize)voidsetFormType(MetadataInformation.FormTypeEnum formType)voidsetInitialPage(Integer initialPage)voidsetInitialView(MetadataInformation.InitialViewEnum initialView)voidsetLanguage(String language)voidsetMagnification(MetadataInformation.MagnificationEnum magnification)voidsetMagnificationZoom(Integer magnificationZoom)voidsetObjectKey(String objectKey)voidsetPageLayout(MetadataInformation.PageLayoutEnum pageLayout)voidsetPages(Integer pages)voidsetPdfa(MetadataPdfa pdfa)voidsetPortfolio(Boolean portfolio)voidsetSignatures(Integer signatures)voidsetVersion(String version)voidsetViewerPreferences(MetadataViewerPreferences viewerPreferences)MetadataInformationsignatures(Integer signatures)StringtoString()MetadataInformationversion(String version)MetadataInformationviewerPreferences(MetadataViewerPreferences viewerPreferences)
-
-
-
Field Detail
-
JSON_PROPERTY_ATTACHMENTS
public static final String JSON_PROPERTY_ATTACHMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOC_M_D_P
public static final String JSON_PROPERTY_DOC_M_D_P
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED
public static final String JSON_PROPERTY_ENCRYPTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILE_SIZE
public static final String JSON_PROPERTY_FILE_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FORM_TYPE
public static final String JSON_PROPERTY_FORM_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INITIAL_PAGE
public static final String JSON_PROPERTY_INITIAL_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INITIAL_VIEW
public static final String JSON_PROPERTY_INITIAL_VIEW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAGNIFICATION
public static final String JSON_PROPERTY_MAGNIFICATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAGNIFICATION_ZOOM
public static final String JSON_PROPERTY_MAGNIFICATION_ZOOM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT_KEY
public static final String JSON_PROPERTY_OBJECT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE_LAYOUT
public static final String JSON_PROPERTY_PAGE_LAYOUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES
public static final String JSON_PROPERTY_PAGES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PDFA
public static final String JSON_PROPERTY_PDFA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORTFOLIO
public static final String JSON_PROPERTY_PORTFOLIO
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIGNATURES
public static final String JSON_PROPERTY_SIGNATURES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERSION
public static final String JSON_PROPERTY_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIEWER_PREFERENCES
public static final String JSON_PROPERTY_VIEWER_PREFERENCES
- See Also:
- Constant Field Values
-
-
Method Detail
-
attachments
public MetadataInformation attachments(Integer attachments)
-
getAttachments
@Nullable public @Nullable Integer getAttachments()
The number of attachments contained in the document. minimum: 0- Returns:
- attachments
-
setAttachments
public void setAttachments(Integer attachments)
-
description
public MetadataInformation description(MetadataDescription description)
-
getDescription
@NotNull public @NotNull MetadataDescription getDescription()
Get description- Returns:
- description
-
setDescription
public void setDescription(MetadataDescription description)
-
docMDP
public MetadataInformation docMDP(MetadataInformation.DocMDPEnum docMDP)
-
getDocMDP
@Nullable public @Nullable MetadataInformation.DocMDPEnum getDocMDP()
A document \"Modification Detection and Prevention\" may be set, that defines which modifications of the document are allowed and which modifications would render the signature invalid. * none = The document is unprotected - modify it as you please. * noChangesAllowed = Any modifications of the document would render the signatures invalid. * formFillingSignatures = You may fill in forms and further sign the document. * formFillingSignaturesAndAnnotations = Form filling, signing and adding annotations are allowed.- Returns:
- docMDP
-
setDocMDP
public void setDocMDP(MetadataInformation.DocMDPEnum docMDP)
-
encrypted
public MetadataInformation encrypted(Boolean encrypted)
-
getEncrypted
@Nullable public @Nullable Boolean getEncrypted()
This will be set to \"true\" for a document, that is either password protected or certificate encrypted.- Returns:
- encrypted
-
setEncrypted
public void setEncrypted(Boolean encrypted)
-
fileSize
public MetadataInformation fileSize(Long fileSize)
-
getFileSize
@Nullable public @Nullable Long getFileSize()
The byte size of the document. minimum: 0 maximum: 9223372036854775807- Returns:
- fileSize
-
setFileSize
public void setFileSize(Long fileSize)
-
formType
public MetadataInformation formType(MetadataInformation.FormTypeEnum formType)
-
getFormType
@Nullable public @Nullable MetadataInformation.FormTypeEnum getFormType()
When set to another value than \"none\", the document does contain a PDF form in the hereby given format. * none = The document does not contain a form. * acroForm = The document contains a standard PDF Acroform. * staticXFA = The document contains a \"XML Forms Architecture\" form with a fixed layout (static). * dynamicXFA = The document contains a \"XML Forms Architecture\" form with an adaptable/interactive layout (dynamic).- Returns:
- formType
-
setFormType
public void setFormType(MetadataInformation.FormTypeEnum formType)
-
initialPage
public MetadataInformation initialPage(Integer initialPage)
-
getInitialPage
@Nullable public @Nullable Integer getInitialPage()
The first page, that shall be displayed when opening the document in a PDF Reader.- Returns:
- initialPage
-
setInitialPage
public void setInitialPage(Integer initialPage)
-
initialView
public MetadataInformation initialView(MetadataInformation.InitialViewEnum initialView)
-
getInitialView
@Nullable public @Nullable MetadataInformation.InitialViewEnum getInitialView()
Defines which sub-windows will be opened when the PDF document is opened. * none = No special view * outlines = Opens the \"Bookmarks\" tab * thumbnails = Opens the \"Thumbnails\" tab * fullscreen = Opens the document in full screen mode- Returns:
- initialView
-
setInitialView
public void setInitialView(MetadataInformation.InitialViewEnum initialView)
-
language
public MetadataInformation language(String language)
-
getLanguage
@Nullable public @Nullable String getLanguage()
The natural language of the document. This could either contain the language name or a language tag.- Returns:
- language
-
setLanguage
public void setLanguage(String language)
-
magnification
public MetadataInformation magnification(MetadataInformation.MagnificationEnum magnification)
-
getMagnification
@Nullable public @Nullable MetadataInformation.MagnificationEnum getMagnification()
The initial page zoom settings of a document. When opening the document in a Reader, this zoom settings shall be used. * none = Uses the application's default view. * fitWidth = Page width. * fitPage = Page dimensions. * fitHeight = Page height. * fitVisible = Page content width. * fitActual = Uses the original page dimensions (100% zoom factor). * zoom = Sets an explicit magnification value.- Returns:
- magnification
-
setMagnification
public void setMagnification(MetadataInformation.MagnificationEnum magnification)
-
magnificationZoom
public MetadataInformation magnificationZoom(Integer magnificationZoom)
-
getMagnificationZoom
@Nullable public @Nullable Integer getMagnificationZoom()
If a magnification \"zoom\" is selected for this document, this is the actual percentage the pages of the document shall be zoomed to, when opening the document in a PDF Reader. minimum: 0- Returns:
- magnificationZoom
-
setMagnificationZoom
public void setMagnificationZoom(Integer magnificationZoom)
-
objectKey
public MetadataInformation objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the document's catalog. (root) **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.- Returns:
- objectKey
-
setObjectKey
public void setObjectKey(String objectKey)
-
pageLayout
public MetadataInformation pageLayout(MetadataInformation.PageLayoutEnum pageLayout)
-
getPageLayout
@Nullable public @Nullable MetadataInformation.PageLayoutEnum getPageLayout()
The set initial page layout of a document. When opening the document in a Reader, this layout shall be selected to display pages. * singlePage = One page at a time. * oneColumn = One continuous column of pages. * twoColumnLeft = The pages in two columns, with odd-numbered pages on the left. * twoColumnRight = The pages in two columns, with odd-numbered pages on the right. * twoPageLeft = Display the pages two at a time, with odd-numbered pages on the left. * twoPageRight = Display the pages two at a time, with odd-numbered pages on the right.- Returns:
- pageLayout
-
setPageLayout
public void setPageLayout(MetadataInformation.PageLayoutEnum pageLayout)
-
pages
public MetadataInformation pages(Integer pages)
-
getPages
@Nullable public @Nullable Integer getPages()
The number of pages contained in the document. minimum: 0- Returns:
- pages
-
setPages
public void setPages(Integer pages)
-
pdfa
public MetadataInformation pdfa(MetadataPdfa pdfa)
-
getPdfa
@NotNull public @NotNull MetadataPdfa getPdfa()
Get pdfa- Returns:
- pdfa
-
setPdfa
public void setPdfa(MetadataPdfa pdfa)
-
portfolio
public MetadataInformation portfolio(Boolean portfolio)
-
getPortfolio
@Nullable public @Nullable Boolean getPortfolio()
Will be set to \"true\" for a \"PDF collection\" (Portfolio), that serves as the container for other documents.- Returns:
- portfolio
-
setPortfolio
public void setPortfolio(Boolean portfolio)
-
signatures
public MetadataInformation signatures(Integer signatures)
-
getSignatures
@Nullable public @Nullable Integer getSignatures()
The number of signatures contained in the document.- Returns:
- signatures
-
setSignatures
public void setSignatures(Integer signatures)
-
version
public MetadataInformation version(String version)
-
getVersion
@Nullable public @Nullable String getVersion()
The version name of the PDF standard the document claims compatibility with.- Returns:
- version
-
setVersion
public void setVersion(String version)
-
viewerPreferences
public MetadataInformation viewerPreferences(MetadataViewerPreferences viewerPreferences)
-
getViewerPreferences
@NotNull public @NotNull MetadataViewerPreferences getViewerPreferences()
Get viewerPreferences- Returns:
- viewerPreferences
-
setViewerPreferences
public void setViewerPreferences(MetadataViewerPreferences viewerPreferences)
-
-