Thanks for your reply.

But one more puzzle here.

I searched on the internet and got the sample of setting property.

    PdfStamper stamp = null;

    File file = new File("c:\test.pdf ");

    PdfReader reader = new PdfReader(pdfTemplatePath);

    FileOutputStream outputstream = new FileOutputStream(file);

    stamp = new PdfStamper(reader, outputstream);

    AcroFields form = stamp.getAcroFields();

But in my current codes, there's no phsical file, the data will be sent as
stream in the reponse of servlet.

    response.setContentType("application/pdf");
    Document document = new Document();
    PdfWriter writer = PdfWriter.getInstance(document,
response.getOutputStream());

There's no reader or inputStream I could get. How to solve this problem.

Thanks a lot.



1T3XT info wrote:
> 
> form.setFieldProperty(
>       field, "setfflags", PdfFormField.FF_READ_ONLY, null);
> 
> With the name of the field as value for the parameter "field".
> -- 
> This answer is provided by 1T3XT BVBA
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-RadioCheckField-uneditable--tp17609467p17629741.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to