Re: [iText-questions] Encryption and XFA Forms

2010-05-17 Thread Leonard Rosenthol
<http://partners.adobe.com/public/developer/xml/index_arch.html> -Original Message- From: Mark Storer [mailto:msto...@autonomy.com] Sent: Monday, May 17, 2010 11:50 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Encryption and XFA Forms You need

Re: [iText-questions] Encryption and XFA Forms

2010-05-17 Thread Leonard Rosenthol
: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Encryption and XFA Forms Hi Leonard, > You are directly writing XFA form information (via fillXfaForm) > BUT_ then you use the acroFields APIs to change the lock state > - you can NOT mix these two! Either you are wor

Re: [iText-questions] Encryption and XFA Forms

2010-05-17 Thread Mark Storer
-- > From: Adam Carless [mailto:adam.carl...@hansard.com] > Sent: Monday, May 17, 2010 8:36 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Encryption and XFA Forms > > Hi Leonard, > > > You are directly writing XFA form information (via fillXfaForm) &g

Re: [iText-questions] Encryption and XFA Forms

2010-05-17 Thread Adam Carless
Hi Leonard, > You are directly writing XFA form information (via fillXfaForm) > BUT_ then you use the acroFields APIs to change the lock state > - you can NOT mix these two! Either you are working with XFA > _OR_ you are working with AcroForms. It's like cross the > streams That does

Re: [iText-questions] Encryption and XFA Forms

2010-05-17 Thread Leonard Rosenthol
. Leonard -Original Message- From: Adam Carless [mailto:adam.carl...@hansard.com] Sent: Monday, May 17, 2010 7:04 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Encryption and XFA Forms Big thanks to Mark and Leonard for all your help, I've finally got

Re: [iText-questions] Encryption and XFA Forms

2010-05-17 Thread Adam Carless
Big thanks to Mark and Leonard for all your help, I've finally got my head around the problem now and sorted out the solution. In case it's useful to anyone else, here's the core code I've ended up with to fill in and lock an XFA form (ignoring any AcroForm parts). This code doesn't include any

Re: [iText-questions] Encryption and XFA Forms

2010-05-14 Thread Mark Storer
> Ahh, thanks for that, I hadn't realised the permissions would > be applied to the itext manipulations done on the PDF, I > thought they came into force when the stamper was closed. I > also hadn't realised what the ALLOW_FILL_IN permission was for. Close, but no cigar. iText doesn't generate

Re: [iText-questions] Encryption and XFA Forms

2010-05-14 Thread Leonard Rosenthol
Set the locked attributes on the fields. -Original Message- From: Adam Carless [mailto:adam.carl...@hansard.com] Sent: Friday, May 14, 2010 11:12 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Encryption and XFA Forms > Were you using the same permiss

Re: [iText-questions] Encryption and XFA Forms

2010-05-14 Thread Adam Carless
> Were you using the same permission flags with all four variants? > > Yes? Yes, I used the same permissions throughout - the only permission allowed was ALLOW_PRINTING (which is our standard setting for this kind of generated PDF). In case it's important, the encryption strength is ENCRYPTIO

Re: [iText-questions] Encryption and XFA Forms

2010-05-13 Thread Mark Storer
ct: [iText-questions] Encryption and XFA Forms > > Hi All, > > Just reposting my previous question in a clearer way in the > hope that some friendly person has a solution... > > I'm trying to fill in XFA values and encrypt a PDF containing > an XFA form. From rea

[iText-questions] Encryption and XFA Forms

2010-05-13 Thread Adam Carless
Hi All, Just reposting my previous question in a clearer way in the hope that some friendly person has a solution... I'm trying to fill in XFA values and encrypt a PDF containing an XFA form. From reading Paulo's replies when encryption questions pop up, I know the encryption needs to be done