Package org.openinvoice.ubl4j.core.common.text

Examples of org.openinvoice.ubl4j.core.common.text.FailedToRenderException


    public void executeInvoiceRenderingTask() throws IOException,
            UBL4JException {
        String invoiceFilePath = options.renderInvoice;
        File invoiceFile = new File(invoiceFilePath);
        if (!invoiceFile.exists()) {
            throw new FailedToRenderException(String.format("The specified invoice file '%s' doesn't exist",
                    invoiceFile.getAbsolutePath()));
        }
        InvoiceType invoiceType = InvoiceTypeUnMarshaller.unMarshal(new FileInputStream(invoiceFile));
        InvoiceCreationInput input = new InvoiceRenderingInput(invoiceType);
        input = initOutputOptions(input);
View Full Code Here


            renderInvoiceNumberAndDate();
            renderInvoiceLines();
            renderPaymentTerms();
            document.close();
       } catch (Exception e) {
            throw new FailedToRenderException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.openinvoice.ubl4j.core.common.text.FailedToRenderException

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.