Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 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

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

2010-11-02 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 aske

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

2010-11-02 Thread riffla
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. Getting back to work tomorrow I think the best way to attack this problem is to co

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread jmrrva
Hi, I posted this long time ago:: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg41651.html Hope this helps. Jose 2010/11/2 wowarjuna > > Thanks a lot..u just saved my life..just another simple one.. > > PdfPTable table = new PdfPTable(1); > for (int _i

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

2010-11-02 Thread Mark Storer
Just because the stack trace doesn't help you doesn't mean it won't help us. PLEASE post the stack trace. Help us help you. If you don't want to help us, I doubt we'll be all that inclined to continue to help you. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaim

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

2010-11-02 Thread Mark Storer
Rectangle.toString() just prints out its width and height as well. As 1T3XT info points out, calling getWidth & getHeight isn't going to tell you much about the origin, just the width and height. You need absolute coordinates, not relative distances. --Mark Storer Senior Software Engineer Ca

Re: [iText-questions] Add to FactoryProperties

2010-11-02 Thread Mark Storer
You'll be happy to know that the 5.0.5 release already contains support for font-family. No such luck on background-color however. We've accepted quite a few user-submitted patches over the years. I was a user submitting patches myself not so long ago. --Mark Storer Senior Software Engineer

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread Mark Storer
I think this'll work from within a PdfPCellEvent... Let me see... Okay. This looks a bit fragile, but I think it will work. PdfPCellEvent.cellLayout() is called AFTER each cell is drawn. The text and images within each given cell are written into canvases[PdfPTable.TEXTCANVAS], so that's where y

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

2010-11-02 Thread 1T3XT info
On 2/11/2010 17:32, riffla wrote: > > I am debuggin at my best, but the stacktrace says nothing. And at the most > basic level inside the doc has only one iterator, but digging deeper in the > doc tree there seems to be more, I'm using both doc.add and contentbyte code > to generate pdf (if that af

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

2010-11-02 Thread riffla
I am debuggin at my best, but the stacktrace says nothing. And at the most basic level inside the doc has only one iterator, but digging deeper in the doc tree there seems to be more, I'm using both doc.add and contentbyte code to generate pdf (if that affects things) /R -- View this message in

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

2010-11-02 Thread 1T3XT info
On 2/11/2010 17:15, riffla wrote: > > Another question (urgent situation, hence all questions in a row)... > Is it possible to attach souce.jar to debug itext code (noticed that the > source jar default package does not match the compiled jar, there's a 'core' > prefixing the source jar packages)..

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

2010-11-02 Thread 1T3XT info
On 2/11/2010 17:08, riffla wrote: > > Inside the close() method there is an iteration over the listeners > collection, could it be that it iterates and tries to cast itr.next() (that > could be null for some reason) to a listener... Wouldn't it be easier to debug the problem if you printed the st

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

2010-11-02 Thread riffla
Another question (urgent situation, hence all questions in a row)... Is it possible to attach souce.jar to debug itext code (noticed that the source jar default package does not match the compiled jar, there's a 'core' prefixing the source jar packages)... A way to go? /R -- View this message i

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

2010-11-02 Thread riffla
Inside the close() method there is an iteration over the listeners collection, could it be that it iterates and tries to cast itr.next() (that could be null for some reason) to a listener... Expanded the document instance in the expression viewer which gave this: "document"= Document (id=9622)

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

2010-11-02 Thread riffla
This is the document in the expression viewer: "document"= Document (id=9583) compress= true ITEXT= "iText" (id=9586) ITEXT_VERSION= "iText 2.1.7 by 1T3XT" (id=9587) plainRandomAccess= false RELEASE= "2.1.7" (id=9588) wmfF

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

2010-11-02 Thread riffla
"e"= NullPointerException (id=9554) serialVersionUID (RuntimeException)= -7034897190745766939 cause= NullPointerException (id=9554) detailMessage= null stackTrace= null serialVersionUID (Throwable)= -304268

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

2010-11-02 Thread 1T3XT info
On 2/11/2010 16:13, riffla wrote: > > Getting a NullPointer on document.close(), though debugging shows document is > not null... The stack trace probably points to some object used in the close() method, but without the stack trace we can't help you. > Is there a known issue on this...? No. >

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

2010-11-02 Thread 1T3XT info
On 2/11/2010 16:06, Anca Zapuc wrote: > > Hi again, > > I tried : > Rectangle currentSize = currentReader.getPageSizeWithRotation(1); > System.out.println("Current size is :" + currentSize.getWidth() + > "*" + currentSize.getHeight()); > System.out.println("CropBox is:" + currentReade

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

2010-11-02 Thread Paulo Soares
Just put the imported page inside an Image an do all the scaling and rotation there, no origins to worry about. Paulo From: Anca Zapuc [mailto:anca.za...@gmail.com] Sent: Tuesday, November 02, 2010 3:07 PM To: Post all your questions about iText here Subject: Re:

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

2010-11-02 Thread riffla
Getting a NullPointer on document.close(), though debugging shows document is not null... And document is a Document (not a PdfDocument)... Is there a known issue on this...? Rebuild helps sometimes, but now it seems I'm stuck... /R -- View this message in context: http://itext-general.2136553.

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

2010-11-02 Thread Anca Zapuc
Hi again, I tried : Rectangle currentSize = currentReader.getPageSizeWithRotation(1); System.out.println("Current size is :" + currentSize.getWidth() + "*" + currentSize.getHeight()); System.out.println("CropBox is:" + currentReader.getCropBox(1)); System.out.println("Trim BoxSize i

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

2010-11-02 Thread 1T3XT info
On 2/11/2010 13:17, Anca Zapuc wrote: > Could u please tell me how can I check that ? > Or where in the documentation I should look? Section 5.3 gives an overview of the different page boundaries. In that same chapter 5, the methods getCropBox() and getBoxSize() are used. These methods also exis

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

2010-11-02 Thread Anca Zapuc
Could u please tell me how can I check that ? Or where in the documentation I should look? Anca On Tue, Nov 2, 2010 at 2:04 PM, Paulo Soares wrote: > You are assuming that the PDF's origin is 0,0 when it actually is > -17.0424,-578.43402 and that must be compensated. You are also assuming tha

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

2010-11-02 Thread Paulo Soares
You are assuming that the PDF's origin is 0,0 when it actually is -17.0424,-578.43402 and that must be compensated. You are also assuming that the PDF is not rotated, and in this case is not, but landscape PDFs are often rotated and it would also fail. Paulo Fr

[iText-questions] [URGENT] iText 2.1.4 -> 5.0.4 PDF Lanscape Bug

2010-11-02 Thread Anca Zapuc
Hi all, I have the following problem : *Problem* *Input : landscape pdf ( size :11.70 * 8.27 in ) Process : the pdf needs to be rescaled Version of iText : 2.1.4 Expected result : pdf rescaled Actual result : empty pdf* *Code *: PdfReader currentReader = new PdfReader(sourceFileName); Document

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

2010-11-02 Thread Anca Zapuc
-- Forwarded message -- From: Anca Zapuc Date: Tue, Nov 2, 2010 at 1:49 PM Subject: [URGENT] iText 2.1.4 -> 5.0.4 PDF Lanscape Bug To: text-questi...@lists.sourceforge.net Hi all, I have the following problem : *Problem* *Input : landscape pdf ( size :11.70 * 8.27 in ) Process

[iText-questions] Maintenance release iText

2010-11-02 Thread Bruno Lowagie
Hello, I've just made a maintenance release for iText: iText 5.0.5. For an overview of the changes, see: http://itextpdf.com/history/?branch=50&node=505 A new iTextSharp release is in the making. Starting tomorrow, I'll go through the suggestions and bugs reported on SourceForge. best regards, B

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread 1T3XT info
On 2/11/2010 11:14, wowarjuna wrote: > > Thanks a lot..u just saved my life..just another simple one.. Creating structure elements for tables are not simple. For tables with multiple cells, you need to create the table yourself using ColumnText (if borders are needed, you need to draw them manuall

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread wowarjuna
Thanks a lot..u just saved my life..just another simple one.. PdfPTable table = new PdfPTable(1); for (int _i = 0; _i < 100; _i++) table.AddCell("Creates the PdfTemplate that will hold the total number of pages."); PdfStructureElement myt

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread 1T3XT info
On 2/11/2010 10:42, wowarjuna wrote: > > Does the following sequence is correct? No, your attempt wasn't correct. You want to use ColumnText, so you don't need: cb.SetFontAndSize(bf, 10); cb.ShowText("Para"); That just doesn't make sense... > PdfStructureElement p = new PdfStructureElement(root

Re: [iText-questions] PDF/A Invalid ICC profile

2010-11-02 Thread Tom
Thanks for the reply Mark. Someone send me a valid SRGB profile, so currently I'm good. But I still have some conformance tests to run. On 1-11-2010 17:52, Mark Storer wrote: Well here's the code that's throwing the exception: *if* (data.length < 128 || data[36] != 0x61 || data[37] != 0x63

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread wowarjuna
Does the following sequence is correct..? If not can u just re-arrange them. :) thanks PdfStructureElement p = new PdfStructureElement(root, PdfName.P); cb.BeginMarkedContentSequence(p); cb.SetFontAndSize(bf, 10); cb.ShowText("Para");

Re: [iText-questions] MultiColumnText and TOC

2010-11-02 Thread 1T3XT info
On 2/11/2010 10:29, Tom wrote: > >>> This probably means I have to do multicolumn manually... >> That is the better option. > > Ok, so I've switched to ColumnText, but Chapters still aren't allowed. No, if you need the bookmarks, you need to use PdfOutline. -- This answer is provided by 1T3XT BVB

Re: [iText-questions] MultiColumnText and TOC

2010-11-02 Thread Tom
>> This probably means I have to do multicolumn manually... > That is the better option. Ok, so I've switched to ColumnText, but Chapters still aren't allowed. I'm going to attempt Chunk with anchors, but kind of amazes me that I cannot use chapters in columns. I'd assume that layout would have

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread 1T3XT info
On 2/11/2010 10:11, wowarjuna wrote: > > The following code generate the paragraph and i know we can use same > structure to add any other element to the document. But the the PDF getting > generated from this does not compliant to the 508. That's because you've thrown away these lines: PdfStructu

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread wowarjuna
The following code generate the paragraph and i know we can use same structure to add any other element to the document. But the the PDF getting generated from this does not compliant to the 508. The application is in .net and we dont have any samples for .net. I wonder whether we could use XML to

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread wowarjuna
The following code generate the paragraph and you i know we can use same structure to add any other element to the document. But the the PDF getting generated from this does not compliant to the 508. The application is in .net and we dont have any samples for .net. I wonder whether we could use XM

Re: [iText-questions] Signature is invalid for pdf

2010-11-02 Thread mkl
Alexander, Raitskin Alexander wrote: > In this document I tried another siganture (call it SigB) on peles.pdf and > it seems to be OK (it was signed with another code) > http://www.darina.us/code/peles_ok.pdf FYI: The certificate used in that file looks healthier than the certificate you used in

Re: [iText-questions] PDF version question

2010-11-02 Thread Tom
You can't. A mailing list sends you all mail. But you could setup a filter in your email client. Tom On 2-11-2010 9:04, Eveline Koekkoek wrote: How do I unsubsribe to all other questions? I just like to see the reply

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread 1T3XT info
On 2/11/2010 8:37, wowarjuna wrote: > > The following is the code am trying out. The text i want to put in to the > paragraph is pretty big. And it will be dynamically created. Do i need to > split the text? The code sample can't work. Are you sure you've read the book? You're creating a ColumnTex

Re: [iText-questions] PDF version question

2010-11-02 Thread Eveline Koekkoek
How do I unsubsribe to all other questions? I just like to see the reply to my specific question. From: 1T3XT info To: Eveline Koekkoek/Netherlands/Contr/i...@ibmnl Date: 01-11-2010 17:09 Subject: Re: [iText-questions] PDF version question Hallo, u hebt dit bericht off-list gestuurd, het

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread wowarjuna
The following is the code am trying out. The text i want to put in to the paragraph is pretty big. And it will be dynamically created. Do i need to split the text? Document document = new Document(PageSize.A4, 36, 36, 54, 36); try { ColumnText _column;

Re: [iText-questions] Help - Adding Header and Footer to an existing PDF

2010-11-02 Thread 1T3XT info
On 1/11/2010 19:41, Tina Tibrewal wrote: > Hi All, > > I am stuck with adding a Header and Footer to an existing PDF. > > Any clues are appreciated. I have already checked the iText Documentation and > did not find anything matching. When you refer to "the iText Documentation," it is assumed that

[iText-questions] Help - Adding Header and Footer to an existing PDF

2010-11-02 Thread Tina Tibrewal
Hi All, I am stuck with adding a Header and Footer to an existing PDF. Any clues are appreciated. I have already checked the iText Documentation and did not find anything matching. My code goes like below - Document document = new Document(); try { // step 2: FileInputStr

[iText-questions] Fwd: Book Promo: iText in Action

2010-11-02 Thread Bruno Lowagie
Original Message Subject:Book Promo: iText in Action Date: Mon, 1 Nov 2010 19:21:53 -0600 (MDT) From: Java Ranch Moose To: Java Ranch Moose We are thrilled to have Bruno Lowagie on the ranch to promote the book "iText in Action". The promotion will be held

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread 1T3XT info
On 2/11/2010 8:03, wowarjuna wrote: > > How to add a structure element to a ColumnText (A paragraph etc)...If you > could give me a simple code snippest, I would really appreciate. If this > work we'll be defineatly buying this product. You don't add the structure element to the ColumnText. You ad

Re: [iText-questions] PdfStructureElement with ColumnText

2010-11-02 Thread wowarjuna
How to add a structure element to a ColumnText (A paragraph etc)...If you could give me a simple code snippest, I would really appreciate. If this work we'll be defineatly buying this product. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfStructureElement-wit