Re: [iText-questions] NullpointerException on document.close()

2010-11-03 Thread 1T3XT info
On 2/11/2010 23:57, riffla wrote: Thanks for supporting me... but for you Mark, if you look at the third message from top in this thread you can see what I mean about the stacktrace, and that I doubt it'll give you any hint 'bout the original cause. That wasn't what we meant when we asked

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-03 Thread 1T3XT info
On 2/11/2010 22:45, jmrrva wrote: Hi, I posted this long time ago:: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg41651.html Hope this helps. Nice example, I must have overlooked it. I'm happy to see that it works. In future versions, I must find a way to make this

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-03 Thread jmrrva
Hello, By the way, I sent a fix some days ago related to the PDF/A conformance: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg53900.html It is a very minor modification to PdfStructureElement.java. Have a nice day Jose 2010/11/3 1T3XT info i...@1t3xt.info On

Re: [iText-questions] NullpointerException on document.close()

2010-11-03 Thread Klas Lindbäck
If you use lower level constructs like directcontent it is possible to get strange errors if you write stuff out of order or if you have unclosed sections or sections with the wrong kind of content. So I think your idea to comment out all rendering code is a good one. I don't know which tool

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-03 Thread 1T3XT info
On 3/11/2010 8:56, jmrrva wrote: Hello, By the way, I sent a fix some days ago related to the PDF/A conformance: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg53900.html It is a very minor modification to PdfStructureElement.java. I think the Type is Optional,

Re: [iText-questions] [URGENT] iText 2.1.4 - 5.0.4 PDF Lanscape Bug

2010-11-03 Thread Anca Zapuc
Hi all and super thanks very much for your feedback. I tried wrapping the pdf page into an Image and i did scaling / rotating and it worked. I want also to do the same thing but with the cb.addTemplate(a,b,c,d,e,f) I want to do a scalling + rotating and I have computed my transformation matrix.

Re: [iText-questions] [URGENT] iText 2.1.4 - 5.0.4 PDF Lanscape Bug

2010-11-03 Thread 1T3XT info
On 3/11/2010 10:49, Anca Zapuc wrote: Hi all and super thanks very much for your feedback. I tried wrapping the pdf page into an Image and i did scaling / rotating and it worked. I want also to do the same thing but with the cb.addTemplate(a,b,c,d,e,f) I want to do a scalling + rotating and

Re: [iText-questions] Fwd: help

2010-11-03 Thread 1T3XT info
On 3/11/2010 10:44, Ariffin Hasan wrote: If you noticed, in the combined pdf, there is a small red dot at the top right hand corner of page 1 and a red line at the same position in other pages. That's not correct. It's not a line and it's not a dot. It's text and it says: Demo Version -

Re: [iText-questions] Fwd: help

2010-11-03 Thread Paulo Soares
I noticed that and I also noticed that iText was not used to concatenate the PDFs. Did you send us the right PDF or the PDF was generated with some other tool? Paulo -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Wednesday, November 03, 2010 10:17 AM To: Post all

Re: [iText-questions] NullpointerException on document.close()

2010-11-03 Thread riffla
Hi Eclipse is my IDE, and I know the cause now. There were a few parts in the code that weren't covered completely in the exception handling so a getter in a domain object returned null, nothing more than that. But sometimes you miss the obvious and start looking for more complicated answers...

[iText-questions] jfreechart and itext, how to determine absolute position at runtime/dynamically

2010-11-03 Thread Jake Vang
i have adapted code at the url, http://www.wirelust.com/2008/03/17/creating-an-itext-pdf-with-embedded-jfreechart, for using jfreechart to generate high quality graphs inserted into PDF files with the iText API. i must admit with the author, there is no other way to integrate these two APIs with

Re: [iText-questions] jfreechart and itext, how to determine absolute position at runtime/dynamically

2010-11-03 Thread 1T3XT info
On 3/11/2010 11:48, Jake Vang wrote: i have adapted code at the url, http://www.wirelust.com/2008/03/17/creating-an-itext-pdf-with-embedded-jfreechart, for using jfreechart to generate high quality graphs inserted into PDF files with the iText API. i must admit with the author, there is no

Re: [iText-questions] jfreechart and itext, how to determine absolute position at runtime/dynamically

2010-11-03 Thread Nurettin DAG
Jake, It looks like what you need is to use document.add(); to add all of your content. It will take care of jumping onto next page when content does not fit in the remaining of the page etc. All you need to do is to create Paragraph, PdfPTable, Image etc. and add using document.add(); Good luck

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-03 Thread jmrrva
I also thought that it was optional. But after Callas reports I notice that the ISO docs say SHALL HAVE: chapter 6.8.3.3 Structure hierarchy: Each structure element dictionary in the structure hierarchy *shall have* a Type entry with the name value of StructElem. Once again, thanks for your

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-03 Thread 1T3XT info
On 3/11/2010 14:36, jmrrva wrote: I also thought that it was optional. But after Callas reports I notice that the ISO docs say SHALL HAVE OK, seems like a minor inconsistency in the ISO. The table says: optional, the text says: required. -- This answer is provided by 1T3XT BVBA

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-03 Thread Leonard Rosenthol
Yup, it's been resolved in a corrigenda for PDF/A - but in the meantime, you need to put it there :(. -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Wednesday, November 03, 2010 9:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions]

[iText-questions] Embedded fonts

2010-11-03 Thread Rod Hall
Hi, I want to embed a few fonts for our web app, which runs on Google App Engine. I am using eclipse, and I created a fonts folder under the war folder to store the .ttf files with my project. The following fails with source not found comicSansFont = BaseFont.createFont(fonts/comic.ttf,

Re: [iText-questions] Embedded fonts

2010-11-03 Thread Leonard Rosenthol
Do you have the legal right to use those fonts in that environment? For example, comic.ttf is a Microsoft font and can only be used on the Windows-based computer (which Google clearly isn't running). Leonard From: Rod Hall [mailto:rh...@planbook.com] Sent: Wednesday, November 03, 2010 10:28

Re: [iText-questions] Embedded fonts

2010-11-03 Thread Rod Hall
Trying to get my arms around this. The PDF file I'm creating is a nice looking version of what the user sees in their browser window. They can select a variety of fonts for their text in the browser, and I then want the PDF to also have these fonts. I assume the fonts the user sees in their

[iText-questions] losing the last onGenericTag() event

2010-11-03 Thread Leonardo K. Shikida
Hi I am generating footnotes using onGenericTag() and onEndPage() and I am getting a strange behavior for some reason, the last generic tag wasn´t being called in the onEndPage method, so I´ve forced the document to create one (which resulted in a blank last page)

Re: [iText-questions] Embedded fonts

2010-11-03 Thread Leonard Rosenthol
No, you are looking at it exactly the correct way. However, that doesn't mean that it's not an issue.It's an issue faced by every server-side PDF creator for over a decade now. There are solutions which include client-side only, server-side only, or a combination. But you still need to

Re: [iText-questions] Embedded fonts

2010-11-03 Thread Rod Hall
Thanks Leonard, so I think my question goes back to iText. My preference is to have the client side PDF reader look for the fonts locally. I think this means that I do not embed the fonts in the PDF at creation on the server, but is there a way that I tell iText to allow the font-families to be

Re: [iText-questions] [URGENT] iText 2.1.4 - 5.0.4 PDF Lanscape Bug

2010-11-03 Thread Mark Storer
Just use an AffineTransform and suck the coordinates out that way. The order in the array AT gives you matches the order of the parameters in addTemplate(). --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null;

Re: [iText-questions] Embedded fonts

2010-11-03 Thread 1T3XT info
On 3/11/2010 19:22, Rod Hall wrote: I am using iText 5.0.5, and when I look in the properties of the created PDF file I do not see any of the fonts that I requested to have added (via my html style=font-families:blah blah; that I send to the HTMLworker), I only see the standard 14... You

Re: [iText-questions] Embedded fonts

2010-11-03 Thread Nurettin DAG
I can guess from my limited debugging experience that you must have those fonts available in the server when you are generating the pdf since iText needs font specific information when rendering the pdf like character size. On Wed, Nov 3, 2010 at 3:22 PM, 1T3XT info i...@1t3xt.info wrote: On

Re: [iText-questions] Embedded fonts

2010-11-03 Thread 1T3XT info
On 3/11/2010 20:30, Nurettin DAG wrote: I can guess from my limited debugging experience that you must have those fonts available in the server when you are generating the pdf since iText needs font specific information when rendering the pdf like character size. That's correct. In PDF,

[iText-questions] iTextSharp AssemblyInfo.cs

2010-11-03 Thread Keith O
still has the the old version number. it's reflected in the .dll download too. thank you! -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G.