Package com.pdfgate
Class PdfGateDocument
java.lang.Object
com.pdfgate.PdfGateDocument
Document metadata returned by JSON responses from the PDFGate API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStatus values returned by the API for document processing.static enumDocument type values returned by the API. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty document instance for JSON deserialization. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns when the document was created.Returns the source document ID when derived from another document.Returns when the document expires, if present.Returns a temporary file URL if provided by the API.getId()Returns the document identifier.Returns metadata attached to the document, if present.getSize()Returns the file size in bytes, if provided.Returns the document processing status.getType()Returns the document type.inthashCode()
-
Constructor Details
-
PdfGateDocument
public PdfGateDocument()Creates an empty document instance for JSON deserialization.
-
-
Method Details
-
getId
Returns the document identifier.- Returns:
- the document identifier.
-
getStatus
Returns the document processing status.- Returns:
- the document processing status.
-
getCreatedAt
Returns when the document was created.- Returns:
- when the document was created.
-
getExpiresAt
Returns when the document expires, if present.- Returns:
- when the document expires, if present.
-
getType
Returns the document type.- Returns:
- the document type.
-
getFileUrl
Returns a temporary file URL if provided by the API.- Returns:
- a temporary file URL if provided by the API.
-
getSize
Returns the file size in bytes, if provided.- Returns:
- the file size in bytes, if provided.
-
getMetadata
Returns metadata attached to the document, if present.- Returns:
- metadata attached to the document, if present.
-
getDerivedFrom
Returns the source document ID when derived from another document.- Returns:
- the source document ID when derived from another document.
-
equals
-
hashCode
public int hashCode()
-