Re: [iText-questions] Font problems

2007-09-21 Thread Daniel
Hello again, Fair enough that there is no Cyrillic characters in the normal fonts. But I am sure I am not alone in wanting to generate pdfs with Cyrillic characters. So what is a good approach to doing so? Any suggestions? I am not very keen on distributing fonts for legal reasons. My whole appl

Re: [iText-questions] BarcodeDatamatrix

2007-09-21 Thread Paulo Soares
You must check the return value from generate(). Paulo - Original Message - From: "Peter Gershkovich" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Friday, September 21, 2007 9:13 PM Subject: [iText-questions] BarcodeDatamatrix I am wondering you have any

[iText-questions] BarcodeDatamatrix

2007-09-21 Thread Peter Gershkovich
I am wondering you have any examples with Datamatrix barcode. I am able to generate a barcode with the following code: -- BarcodeDatamatrix datamatrixBarCode = new BarcodeDatamatrix(); datamatrixBarCode.setOptions(BarcodeDatamatrix.DM_AUTO); datamatrixBarCode.setHeight( 0

Re: [iText-questions] form field fontsize changing with usingsetFormFlattening(true);

2007-09-21 Thread Paulo Soares
In one case it's iText that draw the appearance and in the other case is Acrobat. This also means that with older versions of Acrobat Reader it won't work. Also note that different versions of Acrobat will render the field differently. It's advisable to remove the 'setGenerateAppearances(false)' if

[iText-questions] form field fontsize changing with using setFormFlattening(true);

2007-09-21 Thread Dennis Racine
I'm having an issue. When I populate a form with form.setField and also use the 'setGenerateAppearances(false)' the form opens with the correct font sizes for data in my form fields. If I add the form.setFormFlattening(true); then most of the fields don't even show any data. If I take out the se

Re: [iText-questions] Adobe versions and compatibility

2007-09-21 Thread Napoleone
> All of that is compatible with Acrobat 3 and is certainly compatible > with 6 and 7. The problem is not with the generation of the PDF itself > but with the way you output it to your client. If you look at the pdf > with a text editor you'll see that it has an html form at the end that > doesn't

Re: [iText-questions] Page Numbers for RTF

2007-09-21 Thread Mark Hall
On Wednesday 19 September 2007, mike lu wrote: > I have several sections/chapters in the RTF document that I am trying to > generate using iText. I would like to have the page numbers start from 1 > for each section/chapter. I could not figure how to do that. I am only able > to get the page number

Re: [iText-questions] how can i use the class RtfWriter2

2007-09-21 Thread Mark Hall
On Friday 21 September 2007, steven ding wrote: > i'm steven,i hava a question.when i wanted to get current page number in > rtf file,but i can't use the getPageNumber() method!now ,how can i do it! > my email is :[EMAIL PROTECTED] > you can send it!My english is not good,so if you don't understa

Re: [iText-questions] Problem Filling Form (ClassCastException)

2007-09-21 Thread Paulo Soares
You're right. It's fixed in the SVN. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of florinG > Sent: Thursday, September 20, 2007 2:31 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Problem Filling Form >

Re: [iText-questions] Setting the Image Field in ITextSharp

2007-09-21 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Brad Daniels > Sent: Thursday, September 20, 2007 2:58 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Setting the Image Field in ITextSharp > > Is it possible to use

Re: [iText-questions] How to use Rowspan in IText..

2007-09-21 Thread Paulo Soares
Put a table inside other table. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of harsha ravindra > Sent: Friday, September 21, 2007 11:04 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] How to use Rowspan in ITe

Re: [iText-questions] dpi and colorspace xtremely confused

2007-09-21 Thread Hans-Werner Hilse
Hi, On Fri, 21 Sep 2007 16:51:11 +0200 "Idees Absurdes" <[EMAIL PROTECTED]> wrote: > First of all. I know I can set an image dpi but I can't do that with a > document. Ok. If I send my document to the printing works, they print > my 1469 x 1469 pixels pdf in 50x50 cm > but I want it in 20x20 cm c

Re: [iText-questions] dpi and colorspace xtremely confused

2007-09-21 Thread Bill Ensley
OK, Here is your dominant problem: PDF is a container. period. You use it to essentially wrap up all of the elements of a document into a portable format hence the name, Portable Document Format. There are i believe 11 different colorspaces available in a SINGLE document. There are no de

Re: [iText-questions] Adobe versions and compatibility

2007-09-21 Thread Paulo Soares
All of that is compatible with Acrobat 3 and is certainly compatible with 6 and 7. The problem is not with the generation of the PDF itself but with the way you output it to your client. If you look at the pdf with a text editor you'll see that it has an html form at the end that doesn't belong the

Re: [iText-questions] check mark character not showing up correctly

2007-09-21 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of rezarr > Sent: Friday, September 21, 2007 4:24 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] check mark character not showing > up correctly > > > In the previous

[iText-questions] Adobe versions and compatibility

2007-09-21 Thread [EMAIL PROTECTED]
Hi, I'm using the last version of iText and on the developing machine I've installed Adobe Reader 8. When I run the application I can see perfectly the file created, but when in production, people with Adobe Reader 7 and 6 cannort view the file and get the error of damaged file. In the creation of

[iText-questions] check mark character not showing up correctly

2007-09-21 Thread rezarr
In the previous versions of iText, I would display the check mark character, in Jasper Report, using text field of "\u0033" and PDF font name of ZapfDingbats and setting the isTextStyled flag. What are the requirments to this in the current iText implementation? Thanks Reza -- View this message

[iText-questions] dpi and colorspace xtremely confused

2007-09-21 Thread Idees Absurdes
Hi all, I've read more than 200 posts maybe about color and dpi but I can't find the solution and it must exists. First of all. I know I can set an image dpi but I can't do that with a document. Ok. If I send my document to the printing works, they print my 1469 x 1469 pixels pdf in 50x50 cm but I

Re: [iText-questions] Font problems

2007-09-21 Thread Paulo Soares
The first example won't work because the built in fonts don't have any Cyrillic characters. The second example is the correct way to do it but you should also embedd the font if you want the PDF to work everywhere. About the path to the font it's a programming/configuration problem that you have to

[iText-questions] Font problems

2007-09-21 Thread Daniel
Hello all, I am using iText (currently using version 1.3 but I have tried 2.0.4 and it did not solve the problem) to generate pdfs from my program. Now my user base want to be able to generate pdfs in Russian with the Cyrillic alphabet. The problem I have is that when I set the encoding to "Cp1251"

Re: [iText-questions] Align_Middle and FixedHeight PDFPCell

2007-09-21 Thread N
> Document doc = new Document(PageSize.A4); > PdfWriter writer = PdfWriter.getInstance(doc, new > FileOutputStream("c:\\test.pdf")); > doc.open(); > PdfPTable t1 = new PdfPTable(2); > t1.addCell("1\n2\n3\n4\n5\n6\n7\n8\n9"); > PdfPTable t2 = new PdfPTable(1); > t2.setExtendLastRow(false); > PdfPCel

[iText-questions] How to use Rowspan in IText..

2007-09-21 Thread harsha ravindra
Hi, Can anybody help me on how to use rowspan with itext, PdfPTable... thx -- Harsha - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012000

[iText-questions] how can i use the class RtfWriter2

2007-09-21 Thread steven ding
hi: i'm steven,i hava a question.when i wanted to get current page number in rtf file,but i can't use the getPageNumber() method!now ,how can i do it! my email is :[EMAIL PROTECTED] you can send it!My english is not good,so if you don't understand mean,please excuse me! thank you advance!

Re: [iText-questions] BUG: PDFTemplate.createTemplate

2007-09-21 Thread Paulo Soares
It works for me: Document doc = new Document(new Rectangle(0, 6856, 612, 7864)); ByteArrayOutputStream bout = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(doc, bout); doc.open(); doc.add(new Paragraph("Hello.")); doc.close(); PdfReader r = new PdfReader(bout.toByteArray())