Class ImageInput

java.lang.Object
com.dynamicpdf.api.Input
com.dynamicpdf.api.ImageInput

public class ImageInput extends Input
  • Constructor Details

    • ImageInput

      public ImageInput(ImageResource resource)
      Initializes a new instance of the ImageInput class.
      Parameters:
      resource - The ImageResource object to create ImageInput.
    • ImageInput

      public ImageInput(String cloudResourcePath)
      Initializes a new instance of the ImageInput 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

      public Align getAlign()
      Gets the horizontal alignment of the image.
      Returns:
      The horizontal alignment of the image.
    • setAlign

      public void setAlign(Align value)
      Sets the horizontal alignment of the image.
      Parameters:
      value - The horizontal alignment of the image.
    • getVAlign

      public VAlign getVAlign()
      Gets the vertical alignment of the image.
      Returns:
      The vertical alignment of the image.
    • setVAlign

      public void setVAlign(VAlign value)
      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.