Class ImgWMF

  • All Implemented Interfaces:
    Element

    public class ImgWMF
    extends Image
    An ImgWMF is the representation of a windows metafile that has to be inserted into the document
    See Also:
    Element, Image
    • Constructor Detail

      • ImgWMF

        ImgWMF​(Image image)
      • ImgWMF

        ImgWMF​(java.net.URL url)
        throws BadElementException,
               java.io.IOException
        Constructs an ImgWMF-object, using an url.
        Parameters:
        url - the URL where the image can be found
        Throws:
        BadElementException - on error
        java.io.IOException - on error
      • ImgWMF

        ImgWMF​(byte[] img)
        throws BadElementException,
               java.io.IOException
        Constructs an ImgWMF-object from memory.
        Parameters:
        img - the memory image
        Throws:
        BadElementException - on error
        java.io.IOException - on error
    • Method Detail

      • processParameters

        private void processParameters()
                                throws BadElementException,
                                       java.io.IOException
        This method checks if the image is a valid WMF and processes some parameters.
        Throws:
        BadElementException - on error
        java.io.IOException - on error
      • readWMF

        public void readWMF​(PdfTemplate template)
                     throws java.io.IOException,
                            DocumentException
        Reads the WMF into a template.
        Parameters:
        template - the template to read to
        Throws:
        java.io.IOException - on error
        DocumentException - on error