Package at.reppeitsolutions.formbuilder.components.pdf.renderkit

Examples of at.reppeitsolutions.formbuilder.components.pdf.renderkit.PdfResponseWriter


    }

    @Override
    public void encodeBegin(FacesContext ctx,
            UIComponent component) throws IOException {
        PdfResponseWriter writer = (PdfResponseWriter) FacesContext.getCurrentInstance().getResponseWriter();
        Document document = writer.getDocument();
        FormBuilderPdf formBuilder = (FormBuilderPdf) component;
        Form form = formBuilder.getForm();
        encodePdf(form, document);
    }
View Full Code Here


* @author Mathias Reppe <mathias.reppe@gmail.com>
*/
public class FormBuilderPdfFactory {
   
    public static void getPdf(OutputStream output, Form form) throws IOException {
        PdfResponseWriter writer = new PdfResponseWriter("UTF-8");
        writer.startDocumentInternal(output);
        FormFillerPdfRenderer renderer = new FormFillerPdfRenderer();
        renderer.encodePdf(form, writer.getDocument());
        writer.endDocumentInternal();
    }
View Full Code Here

    }

    @Override
    public void encodeBegin(FacesContext ctx,
            UIComponent component) throws IOException {
        PdfResponseWriter writer = (PdfResponseWriter) FacesContext.getCurrentInstance().getResponseWriter();
        Document document = writer.getDocument();
        FormFillerPdf formFiller = (FormFillerPdf) component;
        FormData formData = formFiller.getFormData();
        encodePdf(formData, document, formFiller.getMode(), formFiller.getWorkflowState(), formFiller.getConstraintClient());
    }
View Full Code Here

        renderer.encodePdf(form, writer.getDocument());
        writer.endDocumentInternal();
    }
   
    public static void getPdf(OutputStream output, FormData formData, String mode) throws IOException {
        PdfResponseWriter writer = new PdfResponseWriter("UTF-8");
        writer.startDocumentInternal(output);
        FormFillerPdfRenderer renderer = new FormFillerPdfRenderer();
        renderer.encodePdf(formData, writer.getDocument(),mode, null, null);
        writer.endDocumentInternal();
    }
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.pdf.renderkit.PdfResponseWriter

Copyright © 2018 www.massapicom. 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.