[iText-questions] How to set fonts, write text

2007-04-11 Thread David Thielen
Hi; I think I may be doing this wrong (or at least sub-optimally). I am converting Word documents to PDF and so I parse the rtf file converting every block of text to a String. The original rtf is composed mostly of ASCII text but documents can have DBCS, unicode, and literal byte values that

Re: [iText-questions] ColumnText.go(true) weird behaviour

2007-04-11 Thread Harakiri
Thanks for the answer Bruno. I did research and found that i should use MultiColumnText to automatically create new pages if my html data is to large to fit on one page. Furthermore i added a page event handler onstartpage() to add a background graphic. I believe that is the best approach. --- B

Re: [iText-questions] ColumnText.go(true) weird behaviour

2007-04-11 Thread Bruno Lowagie
Harakiri wrote: > Also go(true) seems to reset every added element go 'consumes' the content of the column. This is by design. It is explained in chapter 7 of the book. > A function like isOverflow(Element e) would > be very helpful for the ColumnText. I don't understand your code snippet. Where

Re: [iText-questions] Transparency with iText

2007-04-11 Thread Iliadis Yannis
Look at a previous Thread in the mailing list with Label: *[iText-questions] Color looks different after drawing particular image types *There you might find some answers.* * 2007/4/3, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Hi, I use iText for many time, but i never use transparency. I use for

Re: [iText-questions] Problem with UTF-8 String and PDF

2007-04-11 Thread Bruno Lowagie
is_maximum wrote: > I am using both Arabic and English characters, but Arabic characters are > seperated and not connected to each others That's all explained in the book. You'll also find some examples online that make the Arabic ligatures. Please take a closer look at the page that refers to the

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Estepp, Dan
Your correct, no one is blaming iText. The first response gave me that. Yes, it is a math problem on my side, agreed. I am trying to understand the use of UserUnit. No I do not have the book. But I do understand that chapter may be available on line (just saw your other message), I will look.

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Bruno Lowagie (iText)
Estepp, Dan wrote: > float iWidth = > (float) ( (aImg.scaledWidth() / >( ( (aImg.getDpiX() == 0) ? 200 : aImg.getDpiX( > * 72); > float iHeight = > (float) ( (aImg.scaledHeight() / >( ( (aImg.getDpiY() == 0) ? 200

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Bruno Lowagie (iText)
Estepp, Dan wrote: > Does this help you to understand my dilemma? Where in a chicken/egg situation here. You don't understand me because I don't understand you. Or is it vice versa? I don't know. To me this is not an iText issue. It's just simple math. I think I understand what you're trying to a

[iText-questions] ColumnText.go(true) weird behaviour

2007-04-11 Thread Harakiri
Im using the HTMLWorker to convert some HTML data to iText Elements. I wish to add these elements to a specific area (rectangle) - this works fine so far, however when the html data would need more then one page problems occure. Im adding the converted elements to a ColumnText, using the simulate

Re: [iText-questions] Tiff conversion to PDF Issue

2007-04-11 Thread Sandon Jacobs
You have received a secure message from Sandon Jacobs entitled, "Re: [iText-questions] Tiff conversion to PDF Issue". You may view the message (before 05/16/2007) at the following web address: https://secmail.pdr102072.com/messenger/msg?x=d-1911821-UVEane7P ---

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Estepp, Dan
My math works perfectly fine when I do not set UserUnit. The 200 is a default in case the TIF does not have this set, as it should, it may be irrelevant. float iWidth = (float) ( (aImg.scaledWidth() / ( ( (aImg.getDpiX() == 0) ? 200 : aImg.getDpiX(

[iText-questions] portable collection

2007-04-11 Thread Bruno Lowagie (iText)
Hello, I have just added some new examples to the Wiki: http://www.lowagie.com/itextwiki/doku.php/collections You probably already knew about the Kubrick Collection example; now I added a prototype of a mailbox parser. Enjoy! br, Bruno --

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Bruno Lowagie (iText)
Estepp, Dan wrote: > The TIF image is 44x34. I'm sorry, I think you missed the irony of my answer. The page size given by Adobe Reader was CORRECT. The page size you expected was WRONG. The reason: you used a division instead of a multiplication. Please redo your math. By the way: the code snippe

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Estepp, Dan
The TIF image is 44x34. Trace 40(2007-04-11 08:06:18.574): img.scaledWidth() 8800.0 Trace 40(2007-04-11 08:06:18.574): img.scaledHeight() 6800.0 Trace 40(2007-04-11 08:06:18.590): img.width() 8800.0 Trace 40(2007-04-11 08:06:18.590): img.height() 6800.0 Trace 40(2007-04-11 08:06:18.590): img.getDp

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Bruno Lowagie (iText)
Estepp, Dan wrote: > Thank you. > > I now set the Userunit to 200 and x/y to 8800/6800, > thus should be 44 inches by 34 inches. What kind of math are you using? 200 * 8800 = 1,760,000 1,760,000 / 72 = 2,45 200 * 6800 = 1,360,000 1,360,000 / 72 = 18,888,89 > But when I view the image usin

Re: [iText-questions] What is the maximum page size for PDF iniText?

2007-04-11 Thread Estepp, Dan
Thank you. I now set the Userunit to 200 and x/y to 8800/6800, thus should be 44 inches by 34 inches. debug("actual writer.getPageNumber() " + nPdfWriter.getPageNumber()); Trace 40(2007-04-11 07:10:34.939): actual writer.getPageNumber() 1 ... debug("UserUnit " + nPdfWriter.getUserunit())

Re: [iText-questions] What is the maximum page size for PDF in iText?

2007-04-11 Thread Bruno Lowagie (iText)
It's not an iText limitation; it's a PDF limitation. Let me quote the book on iText (p33): Theoretically, you could create pages of any size, but the PDF specification imposes limits depending on the PDF version of the document that contains those pages. For PDF 1.3 or earlier, the minimum pag

Re: [iText-questions] What is the maximum page size for PDF in iText?

2007-04-11 Thread Paulo Soares
This has nothing to do with iText but rather with Acrobat limitations. From the Pdf Reference: The minimum allowed page size is 3 by 3 units in default user space; the maximum is 14,400 by 14,400 units. In versions of PDF earlier than 1.6 (Acrobat 7.0), the size of the default user space unit wa

Re: [iText-questions] Missing asian characters

2007-04-11 Thread Paulo Soares
You are using iTextAsianCmaps.jar incorrectly but in this case it doesn't matter because you don't need it. The problem is that you are mixing CNS with GB. The following code will work: BaseFont bfGill = BaseFont.createFont("MSung-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED); BaseFont bfGill2 =

[iText-questions] What is the maximum page size for PDF in iText?

2007-04-11 Thread Estepp, Dan
I am trying to create a PDF page larger than 200 inches height or 200 inches wide, and it does not fail, but the resulting PDF is always 200 inches wide/height? Inserting a TIF that is 280 inches by 88 inches, and the resulting page is only 200 inches wide and no image is displayed because the pag

Re: [iText-questions] Placing PdfPTables in ColumnText over multiple pages.

2007-04-11 Thread Bruno Lowagie (iText)
Iliadis Yannis wrote: > P.S Any news on iText Events or Seminars? No, I gave my course to the bachelor students. I'll be talking to some companies that are interested in organizing a course soon, but for the moment, this will be only in Belgium. br, Bruno -

Re: [iText-questions] Placing PdfPTables in ColumnText over multiple pages.

2007-04-11 Thread Iliadis Yannis
Thanx for your answer. I had the scenarios with the current Y and table height in mind but I couldn't apply them in my approach (obviously). As far as the width I was using table.setTotalWidth in the first loop, for each table I was creating, but I misted to lock it (there is much reading coming

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-11 Thread Bruno Lowagie (iText)
Fabrizio Accatino wrote: > I'd like to share some pieces of code. If you or other have time to read > them... I'm no sure if it the right approach to the problem. Can you > check it? I haven't tested the code, but I read it, and it looks OK. The hardest work however, still awaits: for instance

Re: [iText-questions] Placing PdfPTables in ColumnText over multiple pages.

2007-04-11 Thread Bruno Lowagie (iText)
Iliadis Yannis wrote: > This works fine if I am using one large table, but in case of smaller > tables it splits the last one, leaving orphans. > > I've tried using setSplitLate and setSplitRows on the tables but without > any result. These methods define the cell splitting behavior. They are n

[iText-questions] Missing asian characters

2007-04-11 Thread Bart Elshout
Hi all, A little bit more explanation about the problem I have with some Asian characters: I want to display the following Asian characters: Unicode:\u670D\u52A1\u5185\u5BB9 Asian Characters: 服务内容 Library’s which I am using: - iTextAsianCmaps.jar (only after your feedback)

Re: [iText-questions] watermark graphic not visible on "under" content using PdfStamper

2007-04-11 Thread Bruno Lowagie (iText)
Mingzuo Shen wrote: > The AddWatermarkPageNumbersiText example > works only for certain PDF files? I works for all PDF files in the sense that it adds new content under the existing content. That doesn't necessarily mean yo will actually see this content. For instance: - the new content is added o

Re: [iText-questions] Problem with UTF-8 String and PDF

2007-04-11 Thread is_maximum
Hello Thank you so much for your reply. somewhat, I managed to solve the problem I changed the part in which font is creating to this: BaseFont baseFont = BaseFont.createFont("c:\\WINDOWS\\fonts\\times.ttf", BaseFont.IDENTITY_H, true); Font font = new Font(baseFont); and now,

[iText-questions] watermark graphic not visible on "under" content using PdfStamper

2007-04-11 Thread Mingzuo Shen
Hello, I am trying 2.01 jar The AddWatermarkPageNumbersiText example works only for certain PDF files? I tried on several PDF files, one downloaded from Adobe, one generated by myself using Distiller, and one generated by myself using Bullzip PDF print driver. The "over" part works fine. But wat