Class ImageMergeInput

java.lang.Object
org.sejda.model.input.ImageMergeInput
All Implemented Interfaces:
MergeInput

public class ImageMergeInput extends Object implements MergeInput
Image input file for the merge task. Will be transformed to a PDF on the fly, then used as a PDF merge input.
  • Constructor Details

    • ImageMergeInput

      public ImageMergeInput(Source<?> source)
  • Method Details

    • getSource

      public Source<?> getSource()
    • getPageSize

      public PageSize getPageSize()
    • setPageSize

      public void setPageSize(PageSize pageSize)
      sets the default size of the PDF pages generated from images
      Parameters:
      pageSize -
    • isShouldPageSizeMatchImageSize

      public boolean isShouldPageSizeMatchImageSize()
    • setShouldPageSizeMatchImageSize

      public void setShouldPageSizeMatchImageSize(boolean shouldPageSizeMatchImageSize)
      If true a PDF page generated by an image will have the same size as the image itself
      Parameters:
      shouldPageSizeMatchImageSize -
    • getPageOrientation

      public PageOrientation getPageOrientation()
    • setPageOrientation

      public void setPageOrientation(PageOrientation pageOrientation)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object