[iText-questions] Radio/Check/Textfield inside cell

2013-07-04 Thread André Fróes
Hello everyone! I`m trying to do a method here in my application to create Radio, checkbox or textfield inside a cell, but i`m not managing to do it. I managed doing it with a select, but when I try any of those, it doesn`t work at all. Here`s my workaround: Working select method: public void

Re: [iText-questions] Radio/Check/Textfield inside cell

2013-07-05 Thread André Fróes
); PdfFormField pff = textField.getTextField(); if (editable){ pff.setFieldFlags(PdfFormField.FF_READ_ONLY); } PdfPCell cell = new PdfPCell(); cell.setCellEvent(new FieldPositioningEvents(writer, pff)); table.addCell(cell); } Thanks :D 2013/7/4 André

[iText-questions] Creating BaseFont problems

2013-07-10 Thread André Fróes
Hello, I`m facing problems when creating a BaseFont with font file outside of windows/font folder. I followed this example: http://itextpdf.com/examples/iia.php?id=213 when it is set to c:/windows/fonts/arial.ttf it works just fine. When I try to get it from my project resource folder it is not

Re: [iText-questions] Creating BaseFont problems

2013-07-10 Thread André Fróes
I tried this solution editing the font: http://itext-general.2136553.n4.nabble.com/Error-message-td2166291.html but the copy is not corrupt, the ttf gets corrupted after I run the code above. I did add some fields with the FPedit, but the problem still 2013/7/10 André Fróes arfmor...@gmail.com

Re: [iText-questions] Creating BaseFont problems

2013-07-10 Thread André Fróes
Hi Valentin, thanks for the reply. I found the problem here, I miss read the solution in the previous link I`ve sent, maven was indeed corrupting the fonts, so I took the filter out, that solved my problem. I`m still running some tests, but until now, it is working properly. Best regards André

[iText-questions] Form components in cell

2013-09-26 Thread André Fróes
Hello everyone, im facing a problem here that I dont know how to solve. I want to add form components to my table dynamically, for that, im following this java that i found in a previous entry in the mailin list:

Re: [iText-questions] Form components in cell

2013-09-26 Thread André Fróes
I noticed what was missing, fixed already (until now lol, many changes to be done) On Thu, Sep 26, 2013 at 12:59 PM, André Fróes arfmor...@gmail.com wrote: Hello everyone, im facing a problem here that I dont know how to solve. I want to add form components to my table dynamically

[iText-questions] Only 1 radio and 1 check are being generated in the cell

2013-10-02 Thread André Fróes
Hello everyone, I am facing a problem here where only one radio is being generated, and same happens for the textbox. I am attaching an exemplo of how it is now. here is my code: - cell = new PdfPCell(defaultFontSelector.process(i.getPrompt()));

Re: [iText-questions] Only 1 radio and 1 check are being generated in the cell

2013-10-02 Thread André Fróes
I just managed to set the field to read only, i was setting the flag in the wrong component. bt2.setChecked(true); the multiple fields still with problem On Wed, Oct 2, 2013 at 3:43 PM, André Fróes arfmor...@gmail.com wrote: Hello everyone, I am facing a problem here where only one radio

[iText-questions] How do I set a table height?

2013-10-03 Thread André Fróes
Hello everyone, how can I set a table height? I checked that I can set a cell minimumHeight, but I cant find anything like in the table options. -- October Webinars: Code for Performance Free Intel webinars can help you

[iText-questions] BaseFont corrupted (possible)

2013-10-03 Thread André Fróes
Hello everyone, I am trying to create a font from a byte[] but it seems that it gets corrupted. I followed this entry: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg02588.html but when I try to use it, in the moment of creation, i get this message:

Re: [iText-questions] BaseFont corrupted (possible)

2013-10-04 Thread André Fróes
later anyway. Best regards, alexis On 3 October 2013 21:32, André Fróes arfmor...@gmail.com wrote: Hello everyone, I am trying to create a font from a byte[] but it seems that it gets corrupted. I followed this entry: http://www.mail-archive.com/itext-questions@lists.sourceforge.net

[iText-questions] Chinese and japanese along with UTF 8

2014-04-03 Thread André Fróes
Hello everyone, recently the company that i work for started to create systems to china, and they have an old but very good lib of itext, version 2.1.7 that works like a charm, but it doesn`t display chinese characters. How can I achieve that? I did some research and found out about itext-asian,

Re: [iText-questions] Need urgent help

2015-03-02 Thread André Fróes
As Paulo said, yo uneed the ARIALUNI.TTF to make it works. To solve that problem, which I had about 3 months ago, I added that font to my resources and referenced to it. private FontSelector createFont(){ BaseFont baseFont = BaseFont.createFont(

Re: [iText-questions] Question about PdfTable

2015-05-19 Thread André Fróes
Which version are you using? Could you send the full stack? By declaring the way you did, no exception should be displayed. These are the constructors: http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfPTable.html#PdfPTable() Live example provided by itext: