Package com.dynamicpdf.api
Class ImageInput
java.lang.Object
com.dynamicpdf.api.Input
com.dynamicpdf.api.ImageInput
- 
Constructor Summary
ConstructorsConstructorDescriptionImageInput(ImageResource resource)Initializes a new instance of theImageInputclass.ImageInput(String cloudResourcePath)Initializes a new instance of theImageInputclass. - 
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Gets the horizontal alignment of the image.floatGets the bottom margin.booleanGets a boolean indicating whether to expand the image.floatGets the left margin.intGets the page count.floatGets the page height.floatGets the page width.floatGets the right margin.floatGets the scaleX of the image.floatGets the scaleY of the image.booleanGets a boolean indicating whether to shrink the image.intGets the start page.floatGets the top margin.Gets the vertical alignment of the image.voidSets the horizontal alignment of the image.voidsetBottomMargin(float value)Sets the bottom margin.voidsetExpandToFit(boolean value)Sets a boolean indicating whether to expand the image.voidsetLeftMargin(float value)Sets the left margin.voidsetPageCount(int value)Sets the page count.voidsetPageHeight(float value)Sets the page height.voidsetPageWidth(float value)Sets the page width.voidsetRightMargin(float value)Sets the right margin.voidsetSatrtPage(int value)Sets the start page.voidsetScaleX(float value)Sets the scaleX of the image.voidsetScaleY(float value)Sets the scaleY of the image.voidsetShrinkToFit(boolean value)Sets a boolean indicating whether to shrink the image.voidsetTopMargin(float value)Sets the top margin.voidSets 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 theImageInputclass.- Parameters:
 resource- TheImageResourceobject to create ImageInput.
 - 
ImageInput
Initializes a new instance of theImageInputclass.- 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.
 
 -