The /BG entry in the /MK dictionary is an RGB array with values between 0 
and 1. In the field "actions" the values are 238. I have a fix in the CVS to 
do an extra check.

Paulo

----- Original Message ----- 
From: "Roger Misteli" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 
<[email protected]>
Sent: Wednesday, October 25, 2006 5:01 PM
Subject: [iText-questions] Invalid color in the PDF?


> Hiyas
>
> When I want to save form fields on a specific PDF, I get this exception 
> with one field:
>
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: 
> Color parameter outside of expected range: Red Green Blue
> at java.awt.Color.testColorValueRange(Color.java:285)
> at java.awt.Color.<init>(Color.java:369)
> at java.awt.Color.<init>(Color.java:344)
> at java.awt.Color.<init>(Color.java:435)
> at com.lowagie.text.pdf.AcroFields.getMKColor(AcroFields.java:722)
> at com.lowagie.text.pdf.AcroFields.getAppearance(AcroFields.java:597)
> at com.lowagie.text.pdf.AcroFields.setField(AcroFields.java:1166)
> at com.lowagie.text.pdf.AcroFields.setField(AcroFields.java:1117)
> at 
> ch.abacus.lib.util.report.form.PdfFormSaver.saveReport(PdfFormSaver.java:73)
>
> Does that mean that the PDF contains an invalid color?
>
> (Sorry for the file size, but it looks like the mailing list does not 
> accept ZIP files)
>
> Regards,
> Rog
>
>
>


--------------------------------------------------------------------------------


> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


--------------------------------------------------------------------------------


> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to