From ccfda010861c0409d3b3b8a3015982ba50e8a12a Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 6 Dec 2010 17:07:19 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@685 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/gv/egiz/pdfas/test/CreateFreeTextTest.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pdf-as-web/src/test/java/at/gv/egiz/pdfas/test/CreateFreeTextTest.java (limited to 'pdf-as-web/src/test') diff --git a/pdf-as-web/src/test/java/at/gv/egiz/pdfas/test/CreateFreeTextTest.java b/pdf-as-web/src/test/java/at/gv/egiz/pdfas/test/CreateFreeTextTest.java new file mode 100644 index 0000000..a7f910b --- /dev/null +++ b/pdf-as-web/src/test/java/at/gv/egiz/pdfas/test/CreateFreeTextTest.java @@ -0,0 +1,26 @@ +package at.gv.egiz.pdfas.test; + +import java.io.File; + +import at.gv.egiz.pdfas.utils.PDFASUtils; +import at.gv.egiz.pdfas.web.itext.IText; + +public class CreateFreeTextTest { + + private CreateFreeTextTest() { + } + + public static void main(String[] args) { + + try { + + byte[] pdf = IText.createPDF("Hello World", false); + PDFASUtils.toFile(pdf, new File("itext.pdf")); + + } catch (Exception e) { + e.printStackTrace(); + } + + } + +} -- cgit v1.2.3