Package com.dynamicpdf.api
Class ImageInput
java.lang.Object
com.dynamicpdf.api.Input
com.dynamicpdf.api.ImageInput
-
Constructor Summary
ConstructorDescriptionImageInput(ImageResource resource)
Initializes a new instance of theImageInput
class.ImageInput(String cloudResourcePath)
Initializes a new instance of theImageInput
class. -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
Gets the horizontal alignment of the image.float
Gets the bottom margin.boolean
Gets a boolean indicating whether to expand the image.float
Gets the left margin.int
Gets the page count.float
Gets the page height.float
Gets the page width.float
Gets the right margin.float
Gets the scaleX of the image.float
Gets the scaleY of the image.boolean
Gets a boolean indicating whether to shrink the image.int
Gets the start page.float
Gets the top margin.Gets the vertical alignment of the image.void
Sets the horizontal alignment of the image.void
setBottomMargin(float value)
Sets the bottom margin.void
setExpandToFit(boolean value)
Sets a boolean indicating whether to expand the image.void
setLeftMargin(float value)
Sets the left margin.void
setPageCount(int value)
Sets the page count.void
setPageHeight(float value)
Sets the page height.void
setPageWidth(float value)
Sets the page width.void
setRightMargin(float value)
Sets the right margin.void
setSatrtPage(int value)
Sets the start page.void
setScaleX(float value)
Sets the scaleX of the image.void
setScaleY(float value)
Sets the scaleY of the image.void
setShrinkToFit(boolean value)
Sets a boolean indicating whether to shrink the image.void
setTopMargin(float value)
Sets the top margin.void
Sets the vertical alignment of the image.Methods inherited from class com.dynamicpdf.api.Input
getId, getResourceName, getTemplate, setId, setResourceName, setTemplate
-
Constructor Details
-
ImageInput
Initializes a new instance of theImageInput
class.- Parameters:
resource
- TheImageResource
object to create ImageInput.
-
ImageInput
Initializes a new instance of theImageInput
class.- Parameters:
cloudResourcePath
- The image file path present in cloud resource manager.
-
-
Method Details
-
getScaleX
public float getScaleX()Gets the scaleX of the image.- Returns:
- The scaleX of the image.
-
setScaleX
public void setScaleX(float value)Sets the scaleX of the image.- Parameters:
value
- The scaleX of the image.
-
getScaleY
public float getScaleY()Gets the scaleY of the image.- Returns:
- The scaleY of the image.
-
setScaleY
public void setScaleY(float value)Sets the scaleY of the image.- Parameters:
value
- The scaleY of the image.
-
getTopMargin
public float getTopMargin()Gets the top margin.- Returns:
- The top margin.
-
setTopMargin
public void setTopMargin(float value)Sets the top margin.- Parameters:
value
- The top margin.
-
getLeftMargin
public float getLeftMargin()Gets the left margin.- Returns:
- The left margin.
-
setLeftMargin
public void setLeftMargin(float value)Sets the left margin.- Parameters:
value
- The left margin.
-
getBottomMargin
public float getBottomMargin()Gets the bottom margin.- Returns:
- The bottom margin.
-
setBottomMargin
public void setBottomMargin(float value)Sets the bottom margin.- Parameters:
value
- The bottom margin.
-
getRightMargin
public float getRightMargin()Gets the right margin.- Returns:
- The right margin.
-
setRightMargin
public void setRightMargin(float value)Sets the right margin.- Parameters:
value
- The right margin.
-
getPageWidth
public float getPageWidth()Gets the page width.- Returns:
- The page width.
-
setPageWidth
public void setPageWidth(float value)Sets the page width.- Parameters:
value
- The page width.
-
getPageHeight
public float getPageHeight()Gets the page height.- Returns:
- The page height.
-
setPageHeight
public void setPageHeight(float value)Sets the page height.- Parameters:
value
- The page height.
-
getExpandToFit
public boolean getExpandToFit()Gets a boolean indicating whether to expand the image.- Returns:
- A boolean indicating whether to expand the image.
-
setExpandToFit
public void setExpandToFit(boolean value)Sets a boolean indicating whether to expand the image.- Parameters:
value
- A boolean indicating whether to expand the image.
-
getShrinkToFit
public boolean getShrinkToFit()Gets a boolean indicating whether to shrink the image.- Returns:
- A boolean indicating whether to shrink the image.
-
setShrinkToFit
public void setShrinkToFit(boolean value)Sets a boolean indicating whether to shrink the image.- Parameters:
value
- A boolean indicating whether to shrink the image.
-
getAlign
Gets the horizontal alignment of the image.- Returns:
- The horizontal alignment of the image.
-
setAlign
Sets the horizontal alignment of the image.- Parameters:
value
- The horizontal alignment of the image.
-
getVAlign
Gets the vertical alignment of the image.- Returns:
- The vertical alignment of the image.
-
setVAlign
Sets the vertical alignment of the image.- Parameters:
value
- The vertical alignment of the image.
-
getStartPage
public int getStartPage()Gets the start page.- Returns:
- The start page.
-
setSatrtPage
public void setSatrtPage(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.
-