Re: Signature failing on some documents

2015-01-09 Thread John Hewson
Hi, Our mailing list doesn’t support attachments. Can you open a bug report on JIRA and attach your PDFs via “More > Attach Files”. Please include copies of the PDF files from before and after signing. Thanks, -- John > On 9 Jan 2015, at 13:27, Ruben Lagar wrote: > > Hello all, > > I have a

Re: String draw unicode or UTF-8

2015-01-09 Thread John Hewson
Hi Juho This isn’t supported in 1.8 but the 2.0 trunk version supports embedding TTF fonts using Unicode. Follow the instruction on our website for build from source or downloading a snapshot. Once you have 2.0, follow this example: https://github.com/apache/pdfbox/blob/trunk/examples/src/main

Signature failing on some documents

2015-01-09 Thread Ruben Lagar
Hello all, I have a piece of code doing visual signatures correctly on some documents. But on some other documents the inserted signature is not valid. The code is exactly the same, the certificates used are the same, the only thing that changes is the input file. Could somebody give me a hand f

Re: Missing classes

2015-01-09 Thread Maruan Sahyoun
Hi, PDFieldTreeNode and PDTextField are for PDFBox 2.0 for 1.8 use PDField and PDTextbox instead [http://pdfbox.apache.org/docs/1.8.8/javadocs/org/apache/pdfbox/pdmodel/interactive/form/package-summary.html] BR Maruan Am 09.01.2015 um 17:04 schrieb Lorena Leishman : > Hello I installed pdfb

Re: Download

2015-01-09 Thread Lorena Leishman
I am developing something with Java. We are uploading data from a PDF to another PDF that contains acroforms. So far I have only downloaded pdfbox-app-1.8.8.jar From: Lorena Leishman To: "users@pdfbox.apache.org" Sent: Wednesday, January 7, 2015 10:24 AM Subject: Download Hi there,

Fw: Missing classes

2015-01-09 Thread Lorena Leishman
I meant I haven't been able to run any example code successfully. Hello I installed pdfbox-app-1.8.8.jar and I have been able to run any example codes successfully. I am working on this one and I get  "cannot find symbol" on  import org.apache.pdfbox.pdmodel.interactive.form.PDFieldTreeNode;im

Missing classes

2015-01-09 Thread Lorena Leishman
Hello I installed pdfbox-app-1.8.8.jar and I have been able to run any example codes successfully. I am working on this one and I get  "cannot find symbol" on  import org.apache.pdfbox.pdmodel.interactive.form.PDFieldTreeNode;import org.apache.pdfbox.pdmodel.interactive.form.PDTextField; Are the

Re: Problem while decrypting a pdf file in Linux

2015-01-09 Thread Barry Zhao [Zhao]
On Fri, Jan 9, 2015 at 5:59 PM, Barry Zhao [Zhao] wrote: > Hi Maruan Sahyoun and team, > > I change the dependence the V1.8.8. > First, I run my code: > > PDDocument doc = PDDocument.load(originFile); > if (doc.isEncrypted()) > { > try > { > DecryptionMaterial dm = new StandardDecryptionMaterial

Re: Problem while decrypting a pdf file in Linux

2015-01-09 Thread Barry Zhao [Zhao]
Hi Maruan Sahyoun and team, I change the dependence the V1.8.8. First, I run my code: PDDocument doc = PDDocument.load(originFile); if (doc.isEncrypted()) { try { DecryptionMaterial dm = new StandardDecryptionMaterial(""); doc.openProtection(dm); doc.setAllSecurityToBeRemoved(true); } catch (Exc

Re: Re: PDFBox drawXObject alpha channel

2015-01-09 Thread Gilles Coppex
Thanks it worked perfectly. I had however to create the GraphicsStates Map (HashMap called "map"). PDExtendedGraphicsState gs1 = new PDExtendedGraphicsState(); gs1.setNonStrokingAlphaConstant(.33f); HashMap map = new HashMap(); map.put("gs1", gs1); currPage.findResources().setGraphicsStates(map

Re: Problem while decrypting a pdf file in Linux

2015-01-09 Thread Maruan Sahyoun
Hi, could you try using PDFBox 1.8.8 as this should have been addressed there [https://issues.apache.org/jira/browse/PDFBOX-2522] BR Maruan Sahyoun Am 09.01.2015 um 09:55 schrieb Barry Zhao [Zhao] : > Hi team, > > I use PDFBox V1.8.7. > In Windows, it can work well. > When I run my code in

Problem while decrypting a pdf file in Linux

2015-01-09 Thread Barry Zhao [Zhao]
Hi team, I use PDFBox V1.8.7. In Windows, it can work well. When I run my code in Linux, I got the exception below: java.io.IOException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher at javax.crypto.CipherInputStream.getMoreData(Ciph

String draw unicode or UTF-8

2015-01-09 Thread Juho Terrijärvi
Hey all, I'm using pdfbox 1.8.8 and trying to write unicode or UTF-8 with Cyrillic alphabets. The bookmarks work correct: PDOutlineItem subHeading = new PDOutlineItem(); subHeading.setTitle(allDocsToAddExp[i]); page = (PDPage)pages.get( num ); dest = new PDPageFitWidthDestination(); subHeading.s