Ok, in that case the ambiguity was caused on my part. 

By not editable what I meant was I could open the PDF in Acrobat Reader 
(version 9), but all form fields were showing read only behaviour - i.e. I 
couldn't type a value into any of them. The PDF could be saved however.

As an additional question for my own clarification - I was wondering the 
difference between a flattened and read only document. I'd looked at various 
code examples on the internet where the form flattening property was set as 
true or false. In their code comments they'd given the impression that this was 
done in order to stop the user from being able to edit the fields in the form. 
I guess there was once again ambiguity surrounding what constitutes "editable".

However, I have since found this link which I believe has answered my question 
- 
http://itext-general.2136553.n4.nabble.com/Is-flattening-same-as-setting-pdf-fields-read-only-td3643794.html

My understanding is that:
[Form flattening] - All form fields are read-only. If one was to search for all 
form fields programmatically they would not "exist".
[Read-Only] - Form fields are read-only (not editable). Form fields are 
searchable programmatically however.

Regards,
Julian


-----Original Message-----
From: mkl [mailto:m...@wir-sind-cool.org] 
Sent: 12 October 2012 10:45
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] [SPAM] Re: How to keep a PDF editable after 
populating some form fields

Juilian,

Julian Willing wrote
> What's difficult to understand about? [...]

It was difficult to grasp what acually is the problem. What did you mean by 
"not editable"? Did you mean all the fields you wanted to remain editable were 
removed? Were they flattened? Or were they marked read-only?

Then again some people say "not editable" when they actually mean "editable but 
changes cannot be saved in some PDF viewer". In such a case, obviously, the PDF 
viewer used is also important to know.

Bruno seems to have guessed correctly what the problem was. But it was 
guesswork nonetheless.

Julian Willing wrote
> Next time I will supply my code snippet.

Provinding a simple code-snippet and/or a sample PDF file displaying the 
problem always is a good idea.

Julian Willing wrote
> I appreciate the link that you sent me in your reply and it would've 
> solved my problem had I not already found the solution myself - but 
> doesn't that just go to prove that my question was answerable?

It does prove that Bruno is good at guessing what was wrong in your setup in 
spite of ambiguous and incomplete information. ;)

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-keep-a-PDF-editable-after-populating-some-form-fields-tp4656584p4656591.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM Deploy 
New Relic app performance management and know exactly what is happening inside 
your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and 
get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/ Please check the keywords list 
before you ask for examples: http://itextpdf.com/themes/keywords.php



------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to