Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-28 Thread 1T3XT BVBA
Op 28/12/2010 10:39, Johannes Becker schreef:
> My problems (still) are:
> - Text and checkbox-fields are modifiable
I'm not reading your code, because you're not using the easiest way to 
create fields.
The easiest way = as described in sections 8.2 to 8.4.
But: even if you create the fields like that:
> - When I view the pdf in a viever like Foxit-Reader or on Mac the 
> radio and check-boxes aren't checked anymore. Acrobat is working.
Support for forms is poor in Foxit reader and inexistent in Preview (on 
Mac).
If you want a document to look like a form, but you don't need the 
interactivity
(interactivity that isn't supported in Preview anyway), why didn't you 
follow my earlier advise
and use a font such as Wingdings?

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-28 Thread Johannes Becker
}
  catch (Exception e)
  {
throw new RuntimeException(e);
  }

}

private void createTextAreaField(Rectangle rect) throws IOException, 
DocumentException
{
  int options = TextField.MULTILINE | TextField.DO_NOT_SPELL_CHECK;
  addTextField(rect, 500, options);
}

private void addTextField(Rectangle rect, int width, int options) throws 
IOException, DocumentException
{
  TextField tf = new TextField(writer, new Rectangle(rect.getLeft(2), 
rect.getBottom(2), width, rect.getTop(2)),
  partialFieldName);
  tf.setBorderColor(Color.BLACK);
  tf.setBorderWidth(1);
  tf.setBorderStyle(PdfBorderDictionary.STYLE_SOLID);
  tf.setText(text);
  tf.setOptions(options);
  parent.addKid(tf.getTextField());
}

private void createRadioField(Rectangle rect) throws IOException, 
DocumentException
{
  RadioCheckField rf = new RadioCheckField(writer, new 
Rectangle(rect.getLeft(4), rect.getBottom(4),
  rect.getRight(4), rect.getTop(4)), partialFieldName, "");
  rf.setChecked(checked);
  rf.setBorderColor(GrayColor.GRAYBLACK);
  rf.setBackgroundColor(GrayColor.GRAYWHITE);
  rf.setCheckType(RadioCheckField.TYPE_CIRCLE);
  parent.addKid(rf.getRadioField());
}

private void createCheckboxField(Rectangle rect) throws IOException, 
DocumentException
{
  RadioCheckField rf = new RadioCheckField(writer, new 
Rectangle(rect.getLeft(4), rect.getBottom(4),
  rect.getRight(4), rect.getTop(4)), partialFieldName, "");
  rf.setChecked(checked);
  rf.setBorderColor(GrayColor.GRAYBLACK);
  rf.setBackgroundColor(GrayColor.GRAYWHITE);
  rf.setCheckType(RadioCheckField.TYPE_CHECK);
  parent.addKid(rf.getCheckField());
}
  }

  /**
   * Main method
   * @param args no arguments needed
   * @throws IOException
   * @throws DocumentException
   */
  public static void main(String[] args) throws IOException, DocumentException
  {
TestPDF test = new TestPDF();
  }

}


Thanks
jonny

Am 27.12.2010 17:48, schrieb Mark Storer:

If your CellField event makes a copy, then setting the FF_READ_ONLY flag
after creating the event handler won't do you any good.

PS: This code won't create radio/check fields.  You should at the very
least be calling PdfFromField.createButton, createCheckBox or
createRadioButton.  That or we're missing some Important Code in
CellField.

--Mark Storer
   Senior Software Engineer
   Cardiff.com

import legalese.Disclaimer;
Disclaimer  DisCard = null;




-----Original Message-
From: Johannes Becker [mailto:jonnybec...@gmx.net]
Sent: Monday, December 27, 2010 6:14 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Unmodifiable
radiobuttons/checkboxes in table cell

Hi,

thanks to your help, I'm able now to to add my
checkboxes/radiobuttons/textfields to my table.

Only one more thing bugs me: I can't get my fields immutable
(except of radiobutton).

...
PdfFormField someField = PdfFormField.createEmpty(writer);
someField.setFieldName("xxx"); PdfPCell someCell = new
PdfPCell(); someCell.setCellEvent(new CellField(writer,
someField, cellFieldName, FIELD_TYPE_TEXT, someText);
someTable.addCell(someCell);
someField.setFieldFlags(PdfFormField.FF_READ_ONLY);
document.add(someTable);


Cheers
Jonny



Am 23.12.2010 13:01, schrieb 1T3XT BVBA:

Op 23/12/2010 10:25, Johannes Becker schreef:

Please read chapter 8 for more info.

My problem is that im working with the 2007 book. :(

Read on until you reach p490.
There's a code sample on that page that shows how to:

get the connection between the PdfPCellEvent and how to add a
RadioCheckField into my cell.

Actually, the code sample adds a TextField, not a

RadioCheckField, but

it's easy to adapt the example.

More precise:
I dont't know how to get the rect out of the PdfPCellEvent, to
dynamically create a RadioCheckFields within the table. I

guess I'm missing something here.

As I explained in my previous answer:

The coordinates of the cell are stored in rect.

If I misinterpreted your question, and if you mean you don't
understand how cell events work, read section 10.2.2 in the First
Edition of "iText in Action" (that's the 2007 book).



--

 Learn how Oracle Real Application Clusters (RAC) One Node
allows customers to consolidate database storage, standardize their
database environment, and, should the need arise, upgrade to a full
multi-node Oracle RAC database without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be

answered with a

reference to the iText book:http:

Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-27 Thread Mark Storer
If your CellField event makes a copy, then setting the FF_READ_ONLY flag
after creating the event handler won't do you any good.

PS: This code won't create radio/check fields.  You should at the very
least be calling PdfFromField.createButton, createCheckBox or
createRadioButton.  That or we're missing some Important Code in
CellField.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer DisCard = null;
 
 

> -Original Message-
> From: Johannes Becker [mailto:jonnybec...@gmx.net] 
> Sent: Monday, December 27, 2010 6:14 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Unmodifiable 
> radiobuttons/checkboxes in table cell
> 
> Hi,
> 
> thanks to your help, I'm able now to to add my 
> checkboxes/radiobuttons/textfields to my table.
> 
> Only one more thing bugs me: I can't get my fields immutable 
> (except of radiobutton).
> 
> ...
> PdfFormField someField = PdfFormField.createEmpty(writer); 
> someField.setFieldName("xxx"); PdfPCell someCell = new 
> PdfPCell(); someCell.setCellEvent(new CellField(writer, 
> someField, cellFieldName, FIELD_TYPE_TEXT, someText); 
> someTable.addCell(someCell); 
> someField.setFieldFlags(PdfFormField.FF_READ_ONLY);
> document.add(someTable);
> 
> 
> Cheers
> Jonny
> 
> 
> 
> Am 23.12.2010 13:01, schrieb 1T3XT BVBA:
> > Op 23/12/2010 10:25, Johannes Becker schreef:
> >>>Please read chapter 8 for more info.
> >> My problem is that im working with the 2007 book. :(
> > Read on until you reach p490.
> > There's a code sample on that page that shows how to:
> >> get the connection between the PdfPCellEvent and how to add a 
> >> RadioCheckField into my cell.
> > Actually, the code sample adds a TextField, not a 
> RadioCheckField, but 
> > it's easy to adapt the example.
> >> More precise:
> >> I dont't know how to get the rect out of the PdfPCellEvent, to 
> >> dynamically create a RadioCheckFields within the table. I 
> guess I'm missing something here.
> > As I explained in my previous answer:
> >>> The coordinates of the cell are stored in rect.
> > If I misinterpreted your question, and if you mean you don't 
> > understand how cell events work, read section 10.2.2 in the First 
> > Edition of "iText in Action" (that's the 2007 book).
> >
> > 
> --
> >  Learn how Oracle Real Application Clusters (RAC) One Node 
> > allows customers to consolidate database storage, standardize their 
> > database environment, and, should the need arise, upgrade to a full 
> > multi-node Oracle RAC database without downtime or disruption 
> > http://p.sf.net/sfu/oracle-sfdevnl
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > 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
> >
> 
> 
> --
> 
> Learn how Oracle Real Application Clusters (RAC) One Node 
> allows customers to consolidate database storage, standardize 
> their database environment, and, should the need arise, 
> upgrade to a full multi-node Oracle RAC database without 
> downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 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
> 
> 

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-27 Thread Johannes Becker
Hi,

thanks to your help, I'm able now to to add my 
checkboxes/radiobuttons/textfields to my table.

Only one more thing bugs me: I can't get my fields immutable (except of 
radiobutton).

...
PdfFormField someField = PdfFormField.createEmpty(writer);
someField.setFieldName("xxx");
PdfPCell someCell = new PdfPCell();
someCell.setCellEvent(new CellField(writer, someField, cellFieldName, 
FIELD_TYPE_TEXT, someText);
someTable.addCell(someCell);
someField.setFieldFlags(PdfFormField.FF_READ_ONLY);
document.add(someTable);


Cheers
Jonny



Am 23.12.2010 13:01, schrieb 1T3XT BVBA:
> Op 23/12/2010 10:25, Johannes Becker schreef:
>>>Please read chapter 8 for more info.
>> My problem is that im working with the 2007 book. :(
> Read on until you reach p490.
> There's a code sample on that page that shows how to:
>> get the connection between the PdfPCellEvent and
>> how to add a RadioCheckField into my cell.
> Actually, the code sample adds a TextField, not a RadioCheckField,
> but it's easy to adapt the example.
>> More precise:
>> I dont't know how to get the rect out of the PdfPCellEvent, to dynamically
>> create a RadioCheckFields within the table. I guess I'm missing something 
>> here.
> As I explained in my previous answer:
>>> The coordinates of the cell are stored in rect.
> If I misinterpreted your question, and if you mean you don't understand
> how cell events work, read section 10.2.2 in the First Edition of "iText
> in Action" (that's the 2007 book).
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> 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
>


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-23 Thread 1T3XT BVBA
Op 23/12/2010 10:25, Johannes Becker schreef:
>>   Please read chapter 8 for more info.
> My problem is that im working with the 2007 book. :(
Read on until you reach p490.
There's a code sample on that page that shows how to:
> get the connection between the PdfPCellEvent and
> how to add a RadioCheckField into my cell.
Actually, the code sample adds a TextField, not a RadioCheckField,
but it's easy to adapt the example.
> More precise:
> I dont't know how to get the rect out of the PdfPCellEvent, to dynamically
> create a RadioCheckFields within the table. I guess I'm missing something 
> here.
As I explained in my previous answer:
>> The coordinates of the cell are stored in rect.
If I misinterpreted your question, and if you mean you don't understand 
how cell events work, read section 10.2.2 in the First Edition of "iText 
in Action" (that's the 2007 book).

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-23 Thread Johannes Becker
Hi,

thanks for the quick response.

>  Please read chapter 8 for more info.
My problem is that im working with the 2007 book. :(

>  The coordinates of the cell are stored in rect.
>  With these parameters, it's just a matter of creating the checkbox as is
>  done in the book.
My problem is, that I quite don't get the connection between the PdfPCellEvent 
and
how to add a RadioCheckField into my cell.

More precise:
I dont't know how to get the rect out of the PdfPCellEvent, to dynamically
create a RadioCheckFields within the table. I guess I'm missing something here.

Thanks
Jonny



Am 23.12.2010 09:29, schrieb 1T3XT BVBA:
> Op 23/12/2010 8:41, Johannes Becker schreef:
>> private class RadioRectangle implements PdfPCellEvent
>> {
>>   public void cellLayout(PdfPCell cell, Rectangle rect,   
>> PdfContentByte[] canvas)
>>   {
>> // dont know what to do
> Get the PdfWriter instance from one of the canvases (for instance
> canvas[0].getWriter()).
> The coordinates of the cell are stored in rect.
> With these parameters, it's just a matter of creating the checkbox as is
> done in the book.
> Please read chapter 8 for more info.
>>   }
>> }
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> 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
>


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-23 Thread 1T3XT BVBA
Op 23/12/2010 8:41, Johannes Becker schreef:
> private class RadioRectangle implements PdfPCellEvent
> {
>  public void cellLayout(PdfPCell cell, Rectangle rect,   PdfContentByte[] 
> canvas)
>  {
>// dont know what to do
Get the PdfWriter instance from one of the canvases (for instance 
canvas[0].getWriter()).
The coordinates of the cell are stored in rect.
With these parameters, it's just a matter of creating the checkbox as is 
done in the book.
Please read chapter 8 for more info.
>  }
> }


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-22 Thread Johannes Becker
Hi,

thank you all for the quick responses.

> You can always set the fields to "Read Only" as well
Ok, didn't know that. Since I'm having textfields in the future,
I should prefer this instead of fonts with radio-button/checkbox glyphs.

So here comes another problem. Could someone provide me a 
link/hint/code-snippet, how to add a radio-button/checkbox to a table cell.
I read that I would have to add some PdfPCellEvent.


// my code so far
RadioRectangle radioRectangleEvent= new RadioRectangle();

PdfPTable table = new PdfPTable(2);
table.setWidths(new int[] { 5, 100});

PdfPCell radioCell = new PdfPCell(table.getDefaultCell());
radioCell.setCellEvent(radioRectangleEvent);
// dont know what to do
...
table.addCell(radioCell);

// ...
private class RadioRectangle implements PdfPCellEvent
{
public void cellLayout(PdfPCell cell, Rectangle rect,   PdfContentByte[] 
canvas)
{
  // dont know what to do
  ...
}
}


Thanks
Jonny




 Original-Nachricht 
> Datum: Wed, 22 Dec 2010 09:13:01 -0800
> Von: Leonard Rosenthol 
> An: "itext-questions@lists.sourceforge.net" 
> 
> Betreff: Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table 
> cell

> You can always set the fields to "Read Only" as well
> 
> -Original Message-
> From: 1T3XT BVBA [mailto:i...@1t3xt.info] 
> Sent: Wednesday, December 22, 2010 12:10 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in
> table cell
> 
> Op 22/12/2010 17:49, Johannes Becker schreef:
> > Hi,
> >
> > I'm trying to put radio buttons/checkboxes (checked and unchecked) in a
> table cell. These buttons shouldn't be modifiable (i.e. only for display).
> So you don't need an interactive form?
> Then you should use a font containing checkbox glyphs (for instance 
> wingdings).
> >   As far as I understood, fields like RadioCheckField are always
> modifiable.
> Why would you use RadioCheckField if you don't need an interactive form?
> > Is there another way to achieve this.
> Search for a font that has checkboxes, use those glyphs.
> If you don't like this solution: create your own Type3 font so that you 
> can design your own checkboxes.
> Or use an image (for instance wrapped in a Chunk).
> 
> --
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google
> Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 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
> 
> --
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google
> Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 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

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 100,- Euro! https://freundschaftswerbung.gmx.de

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-22 Thread Leonard Rosenthol
You can always set the fields to "Read Only" as well

-Original Message-
From: 1T3XT BVBA [mailto:i...@1t3xt.info] 
Sent: Wednesday, December 22, 2010 12:10 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table 
cell

Op 22/12/2010 17:49, Johannes Becker schreef:
> Hi,
>
> I'm trying to put radio buttons/checkboxes (checked and unchecked) in a table 
> cell. These buttons shouldn't be modifiable (i.e. only for display).
So you don't need an interactive form?
Then you should use a font containing checkbox glyphs (for instance 
wingdings).
>   As far as I understood, fields like RadioCheckField are always modifiable.
Why would you use RadioCheckField if you don't need an interactive form?
> Is there another way to achieve this.
Search for a font that has checkboxes, use those glyphs.
If you don't like this solution: create your own Type3 font so that you 
can design your own checkboxes.
Or use an image (for instance wrapped in a Chunk).

--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


Re: [iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-22 Thread 1T3XT BVBA
Op 22/12/2010 17:49, Johannes Becker schreef:
> Hi,
>
> I'm trying to put radio buttons/checkboxes (checked and unchecked) in a table 
> cell. These buttons shouldn't be modifiable (i.e. only for display).
So you don't need an interactive form?
Then you should use a font containing checkbox glyphs (for instance 
wingdings).
>   As far as I understood, fields like RadioCheckField are always modifiable.
Why would you use RadioCheckField if you don't need an interactive form?
> Is there another way to achieve this.
Search for a font that has checkboxes, use those glyphs.
If you don't like this solution: create your own Type3 font so that you 
can design your own checkboxes.
Or use an image (for instance wrapped in a Chunk).

--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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


[iText-questions] Unmodifiable radiobuttons/checkboxes in table cell

2010-12-22 Thread Johannes Becker
Hi,

I'm trying to put radio buttons/checkboxes (checked and unchecked) in a table 
cell. These buttons shouldn't be modifiable (i.e. only for display). As far as 
I understood, fields like RadioCheckField are always modifiable.
Is there another way to achieve this.

I'm using iText 2.1.7.


Thanks in advance
Jonny
-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

--
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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