package at.gv.egiz.pdfas.test; import java.io.File; import at.gv.egiz.pdfas.itext.IText; import at.gv.egiz.pdfas.utils.PDFASUtils; 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(); } } }