@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);
}