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