Package com.dynamicpdf.api
Class Pdf
java.lang.Object
com.dynamicpdf.api.Endpoint
com.dynamicpdf.api.Pdf
Represents a pdf endpoint.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDlex(DlexResource dlexResource, LayoutDataResource layoutData)
Returns aDlexInput
object containing the input pdf.addDlex(String cloudResourcePath, LayoutDataResource layoutData)
Returns aDlexInput
object containing the input pdf.Returns aDlexInput
object containing the input pdf.addImage(ImageResource resource)
Returns anImageInput
object containing the input pdf.Returns anImageInput
object containing the input pdf.addPage()
Returns aPageInput
object containing the input pdf.addPage(float pageWidth, float pageHeight)
Returns aPageInput
object containing the input pdf.addPdf(PdfResource resource)
addPdf(PdfResource resource, MergeOptions options)
Returns aPdfInput
object containing the input pdf.addPdf(String cloudResourcePath, MergeOptions options)
Returns aPdfInput
object containing the input pdf.Gets the author.Gets the creator.boolean
Gets the value indicating whether to flatten all form fields.getFonts()
Gets the fonts.Gets the formFields.Gets the inputs.Gets the keywords.Gets the outlines.Sets the collection of resource.boolean
Gets the value indicating whether to retain signature form field.Gets the security.Gets the subject.Gets the templates.getTitle()
Gets the title.process()
Process to create pdf.Process to create pdf.void
Sets the author.void
setCreator(String value)
Sets the creator.void
setFlattenAllFormFields(boolean value)
Sets the value indicating whether to flatten all form fields.void
setKeywords(String value)
Sets the keywords.void
setRetainSignatureFormFields(boolean value)
Sets the value indicating whether to retain signature form field.void
setSecurity(Security value)
Sets the security.void
setSubject(String value)
Sets the subject.void
Sets the title.Methods inherited from class com.dynamicpdf.api.Endpoint
createRequestSpecification, getApiKey, getBaseUrl, getDefaultApiKey, getDefaultBaseUrl, setApiKey, setBaseUrl, setDefaultApiKey, setDefaultBaseUrl
-
Constructor Details
-
Pdf
public Pdf()Initializes a new instance of thePdf
class.
-
-
Method Details
-
getResources
Sets the collection of resource.- Returns:
- The collection of resource.
-
getAuthor
Gets the author.- Returns:
- The author.
-
setAuthor
Sets the author.- Parameters:
value
- The author.
-
getTitle
Gets the title.- Returns:
- The title.
-
setTitle
Sets the title.- Parameters:
value
- The title.
-
getSubject
Gets the subject.- Returns:
- The subject.
-
setSubject
Sets the subject.- Parameters:
value
- The subject.
-
getCreator
Gets the creator.- Returns:
- The creator.
-
setCreator
Sets the creator.- Parameters:
value
- The creator.
-
getKeywords
Gets the keywords.- Returns:
- The keywords.
-
setKeywords
Sets the keywords.- Parameters:
value
- The keywords.
-
getSecurity
Gets the security.- Returns:
- The security.
-
setSecurity
Sets the security.- Parameters:
value
- The security.
-
getFlattenAllFormFields
public boolean getFlattenAllFormFields()Gets the value indicating whether to flatten all form fields.- Returns:
- The value indicating whether to flatten all form fields.
-
setFlattenAllFormFields
public void setFlattenAllFormFields(boolean value)Sets the value indicating whether to flatten all form fields.- Parameters:
value
- The value indicating whether to flatten all form fields.
-
getRetainSignatureFormFields
public boolean getRetainSignatureFormFields()Gets the value indicating whether to retain signature form field.- Returns:
- The value indicating whether to retain signature form field.
-
setRetainSignatureFormFields
public void setRetainSignatureFormFields(boolean value)Sets the value indicating whether to retain signature form field.- Parameters:
value
- The value indicating whether to retain signature form field.
-
addPdf
Returns aPdfInput
object containing the input pdf.- Parameters:
resource
- The resource of typePdfResource
.options
- The merge options for the pdf.
-
addPdf
- Parameters:
resource
- The resource of typePdfResource
.- Returns:
- Added pdf pages
-
addPdf
Returns aPdfInput
object containing the input pdf.- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.options
- The merge options for the pdf.- Returns:
- Added pdf pages
-
addPdf
- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.- Returns:
- Added pdf pages
-
addImage
Returns anImageInput
object containing the input pdf.- Parameters:
resource
- The resource of typeImageResource
.- Returns:
- Added pdf pages
-
addImage
Returns anImageInput
object containing the input pdf.- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.- Returns:
- Added pdf pages
-
addDlex
Returns aDlexInput
object containing the input pdf.- Parameters:
dlexResource
- The dlex resource of typeDlexResource
.layoutData
- The layout data resource of typeLayoutDataResource
.- Returns:
- Added pdf pages
-
addDlex
Returns aDlexInput
object containing the input pdf.- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.layoutData
- The layout data resource of typeLayoutDataResource
.- Returns:
- Added pdf pages
-
addDlex
Returns aDlexInput
object containing the input pdf.- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.cloudLayoutDataPat
- The layout data resource path in cloud resource manager.- Returns:
- Added pdf pages
-
addPage
Returns aPageInput
object containing the input pdf.- Parameters:
pageWidth
- The width of the page.pageHeight
- The height of the page.- Returns:
- Added pdf pages
-
addPage
Returns aPageInput
object containing the input pdf.- Returns:
- A
PageInput
object containing the input pdf.
-
getInputs
Gets the inputs.- Returns:
- The inputs.
-
getTemplates
Gets the templates.- Returns:
- The templates.
-
getFonts
Gets the fonts.- Returns:
- The fonts.
-
getFormFields
Gets the formFields.- Returns:
- The formFields.
-
getOutlines
Gets the outlines.- Returns:
- The outlines.
-
getInstructonsJson
-
process
Process to create pdf.- Returns:
- Pdf Response
-
processAsync
Process to create pdf.- Returns:
- collection of
PdfResponse
as multithreading tasksCompletableFuture
.
-