Class ITextOutputDevice

    • Constructor Detail

      • ITextOutputDevice

        public ITextOutputDevice​(float dotsPerPoint)
    • Method Detail

      • setWriter

        public void setWriter​(com.lowagie.text.pdf.PdfWriter writer)
      • getWriter

        public com.lowagie.text.pdf.PdfWriter getWriter()
      • getNextFormFieldIndex

        public int getNextFormFieldIndex()
      • initializePage

        public void initializePage​(com.lowagie.text.pdf.PdfContentByte currentPage,
                                   float height)
      • finishPage

        public void finishPage()
      • createLocalTargetArea

        public com.lowagie.text.Rectangle createLocalTargetArea​(RenderingContext c,
                                                                Box box)
      • createTargetArea

        public com.lowagie.text.Rectangle createTargetArea​(RenderingContext c,
                                                           Box box)
      • getDeviceLength

        public float getDeviceLength​(float length)
      • drawBorderLine

        public void drawBorderLine​(Shape bounds,
                                   int side,
                                   int lineWidth,
                                   boolean solid)
        Specified by:
        drawBorderLine in interface OutputDevice
      • drawRect

        public void drawRect​(int x,
                             int y,
                             int width,
                             int height)
        Specified by:
        drawRect in interface OutputDevice
      • drawOval

        public void drawOval​(int x,
                             int y,
                             int width,
                             int height)
        Specified by:
        drawOval in interface OutputDevice
      • fillRect

        public void fillRect​(int x,
                             int y,
                             int width,
                             int height)
        Specified by:
        fillRect in interface OutputDevice
      • fillOval

        public void fillOval​(int x,
                             int y,
                             int width,
                             int height)
        Specified by:
        fillOval in interface OutputDevice
      • translate

        public void translate​(double tx,
                              double ty)
        Specified by:
        translate in interface OutputDevice
      • getCurrentPage

        public com.lowagie.text.pdf.PdfContentByte getCurrentPage()
      • getDotsPerPoint

        public float getDotsPerPoint()
      • start

        public void start​(Document doc)
      • addMetadata

        public void addMetadata​(String name,
                                String value)
        Appends a name/content metadata pair to this output device. A name or content value of null will be ignored.
        Parameters:
        name - the name of the metadata element to add.
      • getMetadataByName

        public String getMetadataByName​(String name)
        Searches the metadata name/content pairs of the current document and returns the content value from the first pair with a matching name. The search is case-insensitive.
        Parameters:
        name - the metadata element name to locate.
        Returns:
        the content value of the first found metadata element; otherwise null.
      • getMetadataListByName

        public List<String> getMetadataListByName​(String name)
        Searches the metadata name/content pairs of the current document and returns any content values with a matching name in an ArrayList. The search is case-insensitive.
        Parameters:
        name - the metadata element name to locate.
        Returns:
        an ArrayList with matching content values; otherwise an empty list.
      • setMetadata

        public void setMetadata​(String name,
                                String value)
        Replaces all copies of the named metadata with a single value. A new value of null will result in the removal of all copies of the named metadata. Use addMetadata to append additional values with the same name.
        Parameters:
        name - the metadata element name to locate.
      • setSharedContext

        public void setSharedContext​(SharedContext sharedContext)
      • setRoot

        public void setRoot​(Box root)
      • getStartPageNo

        public int getStartPageNo()
      • setStartPageNo

        public void setStartPageNo​(int startPageNo)