/** * Renders the XML file at the given URL as a PDF file * at the target location. * * @param url url for the XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the URL or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(String url, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(url); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file as a PDF file at the target location. * * @param file XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(File file, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(file); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file at the given URL as a PDF file * at the target location. * * @param url url for the XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the URL or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(String url, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(url); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file as a PDF file at the target location. * * @param file XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(File file, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(file); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file as a PDF file at the target location. * * @param bytes XML file bytes to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(byte[] bytes, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(bytes); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file at the given URL as a PDF file * at the target location. * * @param url url for the XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the URL or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(String url, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(url); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file as a PDF file at the target location. * * @param file XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(File file, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(file); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file as a PDF file at the target location. * * @param file XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(File file, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(file); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file as a PDF file return its bytes. * * @param bytes XML file bytes to render * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static byte[] renderToPDFBytes(byte[] bytes, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(bytes); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); byte[] b = doRenderToPDF(renderer); return b; }
/** * Renders the XML file as a PDF file at the target location. * * @param file XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the file or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(File file, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(file); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file at the given URL as a PDF file * at the target location. * * @param url url for the XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the URL or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(String url, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(url); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }
/** * Renders the XML file at the given URL as a PDF file * at the target location. * * @param url url for the XML file to render * @param pdf path to the PDF file to create * @param pdfVersion version of PDF to output; null uses default version * @throws IOException if the URL or PDF location is * invalid * @throws DocumentException if an error occurred * while building the Document. */ public static void renderToPDF(String url, String pdf, Character pdfVersion) throws IOException, DocumentException { ITextRenderer renderer = new ITextRenderer(); renderer.setDocument(url); if (pdfVersion != null) renderer.setPDFVersion(pdfVersion.charValue()); doRenderToPDF(renderer, pdf); }