case PDF:
return new org.openinvoice.ubl4j.core.common.text.pdf.PDFInvoiceRendererFactory(); // read the PDF class name from config. file
case TEX:
return new TexInvoiceRendererFactory(); // read the TEX class name from config. file
case HTML:
return new HtmlInvoiceRendererFactory(); // read the HTML class name from config. file
default:
throw new UnsupportedOperationException(outputFormat.name());
}
}