Results 1 to 3 of 3

Thread: Composing PDF document

  1. #1
    Join Date
    Feb 2005
    Posts
    4

    Default Composing PDF document

    Is possible compose PDF document multipage where each page is a single view of king AbstractPDFView ?
    Im my applications I've numerous PDF views that work perfect.
    Now I would create one single PDF document (Pdf view) made with that single page.

    Sorry fo my bad English.
    Thank you !

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Can you not refactor so that you reuse the code that creates the component parts of the documents, which might be separate or unified?
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Feb 2005
    Posts
    4

    Default Composing PDF document

    Thank you Rod for your reply.

    My temporary solution is :

    public class templatePDF extends AbstractPdfView {
    protected void buildPdfDocument(Map model,
    Document pdfDoc,
    PdfWriter writer,
    HttpServletRequest request,
    HttpServletResponse response)
    PDFPage1 pdf1 = new PDFPage1();
    PDFPage2 pdf2 = new PDFPage2();
    PDFPage3 pdf3 = new PDFPage3();
    pdf1.buildPdfDocument(model,pdfDoc,writer,request, response);
    pdf2.buildPdfDocument(model,pdfDoc,writer,request, response);
    pdf3.buildPdfDocument(model,pdfDoc,writer,request, response);
    }
    }

    This output one PDF multipage.
    Is this wrong ?

Similar Threads

  1. Replies: 12
    Last Post: Oct 30th, 2010, 12:26 AM
  2. Replies: 4
    Last Post: May 20th, 2009, 10:11 AM
  3. Spring + Liferay document
    By carolha in forum Web
    Replies: 0
    Last Post: Aug 6th, 2005, 05:10 AM
  4. Document viewing in rich clients
    By adepue in forum Swing
    Replies: 5
    Last Post: Dec 23rd, 2004, 10:54 AM
  5. Replies: 3
    Last Post: Aug 30th, 2004, 09:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •