Class PdfImage

  • All Implemented Interfaces:
    java.io.Serializable

    public class PdfImage
    extends PdfStream
    PdfImage is a PdfStream containing an image-Dictionary and -stream.
    See Also:
    Serialized Form
    • Method Detail

      • name

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

        public Image getImage()
      • transferBytes

        static void transferBytes​(java.io.InputStream in,
                                  java.io.OutputStream out,
                                  int len)
                           throws java.io.IOException
        Throws:
        java.io.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