LDocument.load(new File("tempFile.pdf")) PDFDocument lDocument = new PDFDocument() Ghostscript.getInstance() // create gs instance STEP 2: convert from PDF multipaged to List List images = null FileOutputStream fos = new FileOutputStream("tempFile.pdf") STEP1: generate PDF with itext and persist it. I've succeed converting each PDF page to a jpg file, but customer does not like solution cause signatures are not in all the document, only in individual pages.Īs I've not found any free library, I decided to make it in four steps: I have a pdf file (obtained from a byte generated by iText) I need to send to a signature hardware.ĭue some incompatibility with the java printer driver I can't send the PDF directly, so i need to convert it to images before.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |