-
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 !
-
Can you not refactor so that you reuse the code that creates the component parts of the documents, which might be separate or unified?
-
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 ?