Examples of PdfWriter


Examples of com.lowagie.text.pdf.PdfWriter

    try {
      // step 2:
      // we create a writer that listens to the document
      // and directs a XML-stream to a file
      PdfWriter writer = PdfWriter.getInstance(document,
          new FileOutputStream("RomeoJuliet.pdf"));

      // create add the event handler
      MyPageEvents events = new Events().getPageEvents();
      writer.setPageEvent(events);

      // step 3: we create a parser and set the document handler
      SAXParser parser = SAXParserFactory.newInstance().newSAXParser();

      // step 4: we parse the document
View Full Code Here

Examples of com.lowagie.text.pdf.PdfWriter

        // step 1: creation of a document-object
        LwgDocument document = new LwgDocument(LwgPageSize.A4);
       
        try {
            // step 2: creation of the writer
            PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("transformations.pdf"));
           
            // step 3: we open the document
            document.open();
           
            // step 4:
            PdfContentByte cb = writer.getDirectContent();
           
            // we create a PdfTemplate
            PdfTemplate template = cb.createTemplate(120, 120);
           
            // we add some graphics
View Full Code Here

Examples of org.qi4j.envisage.print.PDFWriter

        SwingUtilities.invokeLater( new Runnable()
        {
            @Override
            public void run()
            {
                PDFWriter pdf = new PDFWriter();
                pdf.write( EnvisageFrame.this, descriptor, graphPane.getGraphDisplays() );
            }
        } );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.