[iText-questions] [patch] correctly read DPI value from PNG files

2007-06-27 Thread Chad Loder
A similar (untested) patch for PNG. I do not know whether TIFF needs similar logic. Index: com/lowagie/text/pdf/codec/PngImage.java === RCS file: /usr/local/cvsroot/nexposev4/src/3rdparty/itext/itext/java/com/lowagie/text/pdf/codec/

Re: [iText-questions] [patch] Correctly read DPI value from BMP files

2007-06-27 Thread Chad Loder
Two comments to my own diff. 1) Obviously you will want to remove the System.out.println call before committing. 2) The same change will likely apply to other codecs, which suffer from a similar (float->int) truncation problem, e.g. PngImage. On Wed, Jun 27, 2007 at 03:16:23PM -0700, Chad

[iText-questions] [patch] Correctly read DPI value from BMP files

2007-06-27 Thread Chad Loder
I believe the bitmap codec has a floating point truncation error that causes a 300 dpi bitmap to be processed as 299 dpi. A 300 dpi image specifies an xPelsPerMeter of 11811, which is multiplied by 0.0254 (one inch in meters), yielding an effective DPI of 299.9994. I do not think it is correct to t

[iText-questions] changes to Image.toURL()

2007-06-27 Thread robert engels
The toURL() method in Image is needlessly complicated and restrictive. Rather than checking if the string starts with various prefixes, a better solutions would be to either just call new URL(string) and trap an InvalidURLException, or minimally check that the string contains the :/ characte

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread Paulo Soares
You must use a font that contains that character. The default font Helvetica doesn't. Paulo Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de co

Re: [iText-questions] RTF vs. PDF image scaling

2007-06-27 Thread Mark Hall
On Monday 25 June 2007, Chad Loder wrote: > I have attached a test case to this email. I realize now after developing > this case that the problem lies with differences in how tables are rendered > between PDF and RTF. The PDF table cells are wide enough to show the > image, while the RTF table is

Re: [iText-questions] Line Spacing in RTF

2007-06-27 Thread Mark Hall
On Tuesday 26 June 2007, Edward Smith wrote: > Paragraph.setLeading(1.5f); > > But I don't get any line spacing. I don't see what effect this does at all? That is because the setLeading method expects a fixed leading. Try it with setLeading(18) for some nicer results. Greetings, Mark -- FORTUNE

Re: [iText-questions] PDF & RTF rendering bug using Table, List

2007-06-27 Thread Mark Hall
I've looked at your example and for the RTF output the problem is as follows: * Nested Tables are not supported. Not even if they are not directly nested, but contained in a List. Greetings, Mark On Monday 25 June 2007, Dhruba Bandopadhyay wrote: > Hi there, > > First of all I want to thank you

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread mdcapurro
At my version of itext the entities are inside the "SimpleXMLParser.java" and, there are the '⇒' at the list. But, the htmlworker didn't convert. Sorry for my ignorance, but is necessary i'm say in any place something to htmlworker understand?. At any html document created, there are the "" t

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread mdcapurro
"Paulo Soares" <[EMAIL PROTECTED]> Enviado Por: [EMAIL PROTECTED] 27/06/2007 11:47 Favor responder a Post all your questions about iText here Para: "Post all your questions about iText here" cc: Assunto:Re: [iText-questions] HTMLWorker and Symbols > -

[iText-questions] Using loadTagStyle and loadStyle in the StyleSheet object

2007-06-27 Thread DominicTrix
Hi there, I am having to create some HTML to convert to pdf using iText and am so far pleased with the results. My problem is that I cannot find a complete reference as to what values I can pass into the loadTagStyle() and loadStyle() methods. I am using the (string tag/class, string key, string

Re: [iText-questions] itext 2.0.4

2007-06-27 Thread Paulo Soares
Post the problematic TIFF. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Beard, Terry > Sent: Wednesday, June 27, 2007 5:19 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] itext 2.0.4 > > Hi, > > > > I a

Re: [iText-questions] Spacing JPanels in PDF

2007-06-27 Thread Paulo Soares
PdfContentByte cb = writer.getDirectContent(); PdfTemplate tp; Graphics2D g2; tp = cb.createTemplate(500, 500); g2 = tp.createGraphics(500, 500); JPanel empty = new SmallFret(); empty.print(g2); g2.dispose(); cb.addTemplate(tp, x, y); tp = cb.createTemplate(500, 500); g2 = tp.createGraphics(500

Re: [iText-questions] PDF & RTF rendering bug using Table, List

2007-06-27 Thread Dhruba Bandopadhyay
Hi, Any response to my email below? I've tried to as thorough as possible. Do you require any more information from me? On 6/25/07, Dhruba Bandopadhyay <[EMAIL PROTECTED]> wrote: > Hi there, > > First of all I want to thank you for accepting my earlier bug fix. > > In this email I provide a tes

Re: [iText-questions] Spacing JPanels in PDF

2007-06-27 Thread mikeS
I'm not quite sure what you mean as I am new to iText but my code is: ... PdfContentByte cb = writer.getDirectContent(); PdfTemplate tp = cb.createTemplate(500, 500); Graphics2D g2 = tp.createGraphics(500, 500); JPanel empty = new SmallFret(); empty.print(g2); JPanel empty1 = new SmallFret(); e

[iText-questions] itext 2.0.4

2007-06-27 Thread Beard, Terry
Hi, I am using iText to convert TIFF images to PDF documents on the fly for a small college. iText seems to work fine in most instances. However, I have encountered an issue when render some TIFF files as opposed to others, and I can't quite nail down the root cause. When I go to display

Re: [iText-questions] Spacing JPanels in PDF

2007-06-27 Thread Paulo Soares
Put each in a PdfTemplate. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of mikeS > Sent: Wednesday, June 27, 2007 4:31 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Spacing JPanels in PDF > > > Hi, > I hav

[iText-questions] Spacing JPanels in PDF

2007-06-27 Thread mikeS
Hi, I have a guitar fretboard which is being correctly printed to a pdf. The thing is, is that in my program, I have an array of JPanels containg different guitar fretboard configurations, and I'm not sure how to space them / move them down a line. When I try printing two together they just print

Re: [iText-questions] Mac fonts supported in iText

2007-06-27 Thread Paulo Soares
iText doesn't support native MAC fonts (the ones with the resource fork). In other words the font must also work in Windows. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of remgeo > Sent: Wednesday, June 27, 2007 3:42 PM > To: itext-quest

Re: [iText-questions] Repeat layered text on every page, BUT my tables span multiple pages, so cant write on every page

2007-06-27 Thread Paulo Soares
PdfStamper won't do layers but before explaining how to do it's better to understand what you want to do. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of ChrisR > Sent: Wednesday, June 27, 2007 1:36 PM > To: itext-questions@lists.sourcefo

[iText-questions] Mac fonts supported in iText

2007-06-27 Thread remgeo
Hello, In the iText book it says, "SOME" Mac fonts are recognized by iText and can be used in a PDF document. Would you have a list of the MAC fonts that are supported/not supported? Or is there any criteria that determines which ones are not? How is it possible for me to find out which ones a

Re: [iText-questions] Adding existing headers/footers to new page

2007-06-27 Thread pmk
Sorry , I discovered several posts already handling this issue. ( PDFStamper ) /pekka pmk wrote: > > Hi! > > I am using Fop 0.20.5 together with an xsl and xml file to create a pdf > file. The document has headers and footers containing static info but also > dynamic info (page x of y). > >

[iText-questions] Adding existing headers/footers to new page

2007-06-27 Thread pmk
Hi! I am using Fop 0.20.5 together with an xsl and xml file to create a pdf file. The document has headers and footers containing static info but also dynamic info (page x of y). Now I am using iText to post-process this fop-created pdf document with another PDF file created via ghostscript 8.56

Re: [iText-questions] HTMLWorker and Symbols

2007-06-27 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Wednesday, June 27, 2007 1:53 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] HTMLWorker and Symbols > > > Hi. > > My user create an html

Re: [iText-questions] No longer able to export the PDF file asxmlafter i stamp it. its IPC 1752 form

2007-06-27 Thread lucas sandtiff
ic... humm... tough luck for me.. thanks Leonard. From: Leonard Rosenthol <[EMAIL PROTECTED]> Reply-To: Post all your questions about iText here To: Post all your questions about iText here Subject: Re: [iText-questions] No longer able to export the PDF file asxmlafter i stamp it. its IPC

[iText-questions] Repeat layered text on every page, BUT my tables span multiple pages, so cant write on every page

2007-06-27 Thread ChrisR
Hi I need to write a footer on every page of my document. The footer is text with a non-printable white rectangle drawn over it, which requires layers. I have tried to do this with the PdfStamper but it seems as though it wont do layers, and non-printable layers, so my only option is to check

Re: [iText-questions] No longer able to export the PDF file as xmlafter i stamp it. its IPC 1752 form

2007-06-27 Thread Leonard Rosenthol
You can't modify a PDF created by LiveCycle Designer and expect it to still work. Leonard On Jun 27, 2007, at 1:46 PM, lucas sandtiff wrote: > i'm new to itext, and confused > i tried to stamp on a file, and after the stamp, i wasn't able to > export the > file as XML anymore, the option

[iText-questions] HTMLWorker and Symbols

2007-06-27 Thread mdcapurro
Hi. My user create an html document using this symbol: "⇒". The htmlworker didn't convert it, the pdf have nothing at that place. How can include that symbols? It's possivel? Thanks in advance!!! Daniela- This SF.net

[iText-questions] No longer able to export the PDF file as xmlafter i stamp it. its IPC 1752 form

2007-06-27 Thread lucas sandtiff
i'm new to itext, and confused i tried to stamp on a file, and after the stamp, i wasn't able to export the file as XML anymore, the option for export won't even be there in the Adobe reader. Btw, its a IPC 1752 form. created by LiveCycle Designer. this is the simple code. i stamp nothing and

Re: [iText-questions] turn background printing on/off

2007-06-27 Thread Bruno Lowagie (iText)
Carl H. Sayres wrote: > Is it possible to turn on/off the printing of background images. ie. In > Acrobat 8, I can set a background image using the > Document>background>Add/Replace dialog, and then click on Appearance > Options and select or de-select "show when printing". What I am looking >