Package com.dynamicpdf.api
Class PdfInput
java.lang.Object
com.dynamicpdf.api.Input
com.dynamicpdf.api.PdfInput
Represents a pdf input.
-
Constructor Summary
ConstructorDescriptionPdfInput(PdfResource resource)
Initializes a new instance of thePdfInput
class.PdfInput(PdfResource resource, MergeOptions options)
Initializes a new instance of thePdfInput
class.PdfInput(String cloudResourcePath, MergeOptions options)
Returns aPdfInput
object containing the input pdf. -
Method Summary
Modifier and TypeMethodDescriptionGets the merge optionsMergeOptions
.int
Gets the page count.int
Gets the start page.void
setMergeOptions(MergeOptions value)
Sets the merge optionsMergeOptions
.void
setPageCount(int value)
Sets the page count.void
setStartPage(int value)
Sets the start page.Methods inherited from class com.dynamicpdf.api.Input
getId, getResourceName, getTemplate, setId, setResourceName, setTemplate
-
Constructor Details
-
PdfInput
Initializes a new instance of thePdfInput
class.- Parameters:
resource
- The resource of typePdfResource
.options
- The merge options for the pdf.
-
PdfInput
Initializes a new instance of thePdfInput
class.- Parameters:
resourceName
- The name of the resource present in cloud resource manager.
-
PdfInput
Returns aPdfInput
object containing the input pdf.- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.options
- The merge options for the pdf.
-
PdfInput
- Parameters:
cloudResourcePath
- The resource path in cloud resource manager.
-
-
Method Details
-
getMergeOptions
Gets the merge optionsMergeOptions
.- Returns:
- The merge options
MergeOptions
.
-
setMergeOptions
Sets the merge optionsMergeOptions
.- Parameters:
value
- The merge optionsMergeOptions
.
-
getStartPage
public int getStartPage()Gets the start page.- Returns:
- The start page.
-
setStartPage
public void setStartPage(int value)Sets the start page.- Parameters:
value
- The start page.
-
getPageCount
public int getPageCount()Gets the page count.- Returns:
- The page count.
-
setPageCount
public void setPageCount(int value)Sets the page count.- Parameters:
value
- The page count.
-