Class ITextRenderer


  • public class ITextRenderer
    extends java.lang.Object
    • Constructor Detail

      • ITextRenderer

        public ITextRenderer()
      • ITextRenderer

        public ITextRenderer​(float dotsPerPoint,
                             int dotsPerPixel)
    • Method Detail

      • setDocument

        public void setDocument​(java.lang.String uri)
      • setDocument

        public void setDocument​(org.w3c.dom.Document doc,
                                java.lang.String url)
      • setDocument

        public void setDocument​(java.io.File file)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • setDocumentFromString

        public void setDocumentFromString​(java.lang.String content)
      • setDocument

        public void setDocument​(org.w3c.dom.Document doc,
                                java.lang.String url,
                                NamespaceHandler nsh)
      • setPDFEncryption

        public void setPDFEncryption​(PDFEncryption pdfEncryption)
      • setPDFVersion

        public void setPDFVersion​(char _v)
      • getPDFVersion

        public char getPDFVersion()
      • layout

        public void layout()
      • createPDF

        public void createPDF​(java.io.OutputStream os)
                       throws com.lowagie.text.DocumentException
        Throws:
        com.lowagie.text.DocumentException
      • writeNextDocument

        public void writeNextDocument()
                               throws com.lowagie.text.DocumentException
        Throws:
        com.lowagie.text.DocumentException
      • writeNextDocument

        public void writeNextDocument​(int initialPageNo)
                               throws com.lowagie.text.DocumentException
        Throws:
        com.lowagie.text.DocumentException
      • finishPDF

        public void finishPDF()
      • createPDF

        public void createPDF​(java.io.OutputStream os,
                              boolean finish)
                       throws com.lowagie.text.DocumentException
        Throws:
        com.lowagie.text.DocumentException
      • createPDF

        public void createPDF​(java.io.OutputStream os,
                              boolean finish,
                              int initialPageNo)
                       throws com.lowagie.text.DocumentException
        NOTE: Caller is responsible for cleaning up the OutputStream if something goes wrong.
        Throws:
        com.lowagie.text.DocumentException
      • exportText

        public void exportText​(java.io.Writer writer)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getRootBox

        public BlockBox getRootBox()
      • getDotsPerPoint

        public float getDotsPerPoint()
      • findPagePositionsByID

        public java.util.List findPagePositionsByID​(java.util.regex.Pattern pattern)
      • getWriter

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