Class PdfImage

All Implemented Interfaces:
Serializable

public class PdfImage extends PdfStream
PdfImage is a PdfStream containing an image-Dictionary and -stream.
See Also:
  • Field Details

    • TRANSFERSIZE

      static final int TRANSFERSIZE
      See Also:
    • name

      protected PdfName name
      This is the PdfName of the image.
    • image

      protected Image image
  • Constructor Details

  • Method Details

    • name

      public PdfName name()
      Returns the PdfName of the image.
      Returns:
      the name
    • getImage

      public Image getImage()
    • transferBytes

      static void transferBytes(InputStream in, OutputStream out, int len) throws IOException
      Throws:
      IOException
    • importAll

      protected void importAll(PdfImage dup)
    • generateImgResName

      private void generateImgResName(Image img)
      Called when no resource name is provided in our constructor. This generates a name that is required to be unique within a given resource dictionary.
      Since:
      5.0.1