aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/test
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-06 17:07:19 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-06 17:07:19 +0000
commitccfda010861c0409d3b3b8a3015982ba50e8a12a (patch)
tree28193f77e13a6f4b9842e5055cf971b0e7084aa0 /pdf-as-web/src/test
parent6d5b4c05a86fdfeb443b18734a862c59181d0b41 (diff)
downloadpdf-as-3-ccfda010861c0409d3b3b8a3015982ba50e8a12a.tar.gz
pdf-as-3-ccfda010861c0409d3b3b8a3015982ba50e8a12a.tar.bz2
pdf-as-3-ccfda010861c0409d3b3b8a3015982ba50e8a12a.zip
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@685 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/test')
-rw-r--r--pdf-as-web/src/test/java/at/gv/egiz/pdfas/test/CreateFreeTextTest.java26
1 files changed, 26 insertions, 0 deletions
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();
+ }
+
+ }
+
+}