Re: [iText-questions] XML to PDF

2007-03-02 Thread Bill Ensley
One word: Tutorial. Xml to PDF is simple and well documented. If you have specific questions once you get started, please ask again. -Bill Ensley www.bearprinting.com I would be very interested if someone found a way to convert XML to PDF Michael D Marcavage Re Date: Fri, 02 Mar 20

Re: [iText-questions] Capturing the "on the fly" data to PDF

2007-03-02 Thread Stuart Jansen
On Sat, 2007-03-03 at 09:16 +0530, Krishna Prasad V wrote: > We are getting the images from one of our application on the fly > (which we cannot get the path also, but it will be displayed on the > screen). > > While converting the same document (images/chart/graph's) to PDF only > the "on the fly

Re: [iText-questions] How to add Customized font

2007-03-02 Thread Stuart Jansen
On Sat, 2007-03-03 at 09:11 +0530, Krishna Prasad V wrote: > We have a custom made font and we want to use it in all our PDF's > which we are generating through iText. > > We are not able to find the suitable package to define and use our > custom font. I assume you're talking about standard True

[iText-questions] Capturing the "on the fly" data to PDF

2007-03-02 Thread Krishna Prasad V
Dear Paulo, Bruno, We are getting the images from one of our application on the fly (which we cannot get the path also, but it will be displayed on the screen). While converting the same document (images/chart/graph's) to PDF only the "on the fly" contents are not converted. Please help. Than

[iText-questions] How to add Customized font

2007-03-02 Thread Krishna Prasad V
Dear Paulo, Bruno, We have a custom made font and we want to use it in all our PDF's which we are generating through iText. We are not able to find the suitable package to define and use our custom font. Please help. Thanks, Regards, Krishna Prasad V -

[iText-questions] XML to PDF

2007-03-02 Thread MMarcavage
I would be very interested if someone found a way to convert XML to PDF Michael D Marcavage Re Date: Fri, 02 Mar 2007 19:11:15 +0100 From: Patrick Schweizer <[EMAIL PROTECTED]> Subject: [iText-questions] xml to pdf acroforms SAXiTextHandler question To: itext-questions@li

[iText-questions] extent of XFA support in itext

2007-03-02 Thread Dan Foygel
Hi - My understanding is that XFA support in iText is currently fairly limited - for example, it's not possible to add new XFA form fields to a document. Is this correct? Are there any current plans to extend XFA support in the near term? If not, is this due to resource availability or

Re: [iText-questions] bouncy castle (Paulo Soares)

2007-03-02 Thread Paulo Soares
I'll get back to you later on this. Paulo - Original Message - From: "robert engels" <[EMAIL PROTECTED]> To: "itext iText here" Sent: Friday, March 02, 2007 6:26 PM Subject: Re: [iText-questions] bouncy castle (Paulo Soares) > Paulo, > > Maybe there is a better way. > > I have 2 mot

Re: [iText-questions] RtfParagraphStyle throws a NullPointerException

2007-03-02 Thread Mark Hall
On Wednesday 10 January 2007 10:53, Sebastien Arbogast wrote: > getDocument().add(new Paragraph("Hello World!", new > RtfParagraphStyle("TEST", "Arial", 20, RtfFont.STYLE_ITALIC, > Color.BLACK))); When I run it, here is the exception I get: > > Is it a known bug? Is there a workaround? Because I re

Re: [iText-questions] Hanging indentation in RTF

2007-03-02 Thread Mark Hall
On Friday 19 January 2007 10:51, Sebastien Arbogast wrote: > 1.[Tab]This is a very long text and when the end of the line comes > the text is wrapped. > > But I would prefer to have the wrapped line aligned with the first one, > like that: > 1.[Tab]This is a very long text and when the end of the l

Re: [iText-questions] detect page break and table size

2007-03-02 Thread kanchana
Before a table or row is rendered (written) on the page, Is there a way to know its height? If not, is it possible to delete the row or table (or blotch it out) after being written to the document? Thanks, Kanchana. - Take

Re: [iText-questions] [RTF] problem with font

2007-03-02 Thread Mark Hall
On Sunday 21 January 2007 17:10, Eric W wrote: > I have a problem when creating rtf file. > When selecting blue color font in a phrase, next phrases are blue too > What's wrong in my code ? This bug has been fixed in the CVS. Font settings are now properly reset at the beginning of phrases and

Re: [iText-questions] RTF - page numbering

2007-03-02 Thread Mark Hall
On Wednesday 21 February 2007 08:05, GAMBELLI Raffaele wrote: > My colleague who uses TxTextControl (do you know? if not, you can see > http://www.textcontrol.com/) says that he isn't able to change > programmatically page's numbering (special) field for all the rtf documents > that I created using

Re: [iText-questions] RTF - page numbering

2007-03-02 Thread Mark Hall
On Tuesday 20 February 2007 15:44, GAMBELLI Raffaele wrote: > Please, try open the rtf in attachment (generated with itext, same code as > tutorial for page numbering) and look at page's numbering of the first page > (see the document in a way that you can see the full page inside your > screen). I

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
Ok lets forget that. Sorry i have not tough of this before. I will generate the Page completelly in HTML, and ill pass it through PD4ML after instead. That will do the trick. Thanks for the help anyhow! Jeff On 3/2/07, Larouche Jean-François <[EMAIL PROTECTED]> wrote: > Best would be if i could

Re: [iText-questions] Header/footer problem with merging existing rtf

2007-03-02 Thread Mark Hall
Hi, sorry for the long delay in answering, I've been offline. On Friday 23 February 2007 19:30, Garcia, Daniel NMN wrote: > How can I merge this existing rtf file without changing the > footer/header of my destination document? This is a tricky situation. When you merge the complete document, the

Re: [iText-questions] bouncy castle (Paulo Soares)

2007-03-02 Thread robert engels
Paulo, Maybe there is a better way. I have 2 motivating factors: 1. Limit the deployment size. The bouncy castle jars are as large as the iText jar. Maybe a 'thin" BC can be distributed with iText that only contains the ASN functions? Or just implement the ASN1 functions in iText? 2. Limi

Re: [iText-questions] RtfCell vs Cell

2007-03-02 Thread Mark Hall
On Monday 26 February 2007 09:56, GAMBELLI Raffaele wrote: > Ok, at this point I confirm my first post about the difference between Cell > and com.lowagie.text.rtf.table.RtfCell > > Plese scuse me for the confusion but also the API reference is a little > confused... The difference between RtfCell

[iText-questions] xml to pdf acroforms SAXiTextHandler question

2007-03-02 Thread Patrick Schweizer
Hello, I have a question concerning the xml to pdf transformation. I need to generate a pdf out of an xml. I searched to web to find a good solution for that and came across iText. This is what I found out so far: - iText supports a xml to pdf transformation via the SAXiTextHandler - SAXiTextH

Re: [iText-questions] graphics2d/pdfmark...

2007-03-02 Thread robert engels
You would also have to implement the create() method properly to do the create on the underlying graphics, and create a new wrapper graphics. On Mar 2, 2007, at 12:01 PM, robert engels wrote: > Maybe just create a wrapper PdfGraphics that contains a reference > to the underlying PdfGraphics

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
Best would be if i could do something like: reader.consolidateNamedDestinations(); PdfDictionary dict = reader.getPageN(1) document.add(dict.getContentAsRawElement()); . I know the getContentAsRawElement doesn't exists but im not a pdf master, you are. Im asking myself if its possible

Re: [iText-questions] graphics2d/pdfmark...

2007-03-02 Thread robert engels
Maybe just create a wrapper PdfGraphics that contains a reference to the underlying PdfGraphics and then delegate all methods to it. Intercept the drawString calls, detect the urls, and then add the annotations to the pdf. -

Re: [iText-questions] bouncy castle

2007-03-02 Thread Paulo Soares
Unfortunately iText needs more than algorithms and RSA public/private key implementation, most of those already present in jdk 1.4. There's also PKCS#7 assembly and disassembly and other asn1 operations that the jce doesn't give you. Even if jdk 1.5 could provide all that, iText won't leave jdk 1.4

Re: [iText-questions] bouncy castle

2007-03-02 Thread robert engels
What is the point in wasting my time fixing the code, if there is no reasonable chance of getting it committed? Paulo is obviously competent enough to understand the problem, and the proposed solution. I have a feeling that there is more too this than meets the eye, as there is no technical

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Paulo Soares
You can start by reading the tutorial (or buying the book). See http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#pdfwriter. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Larouche Jean-François > Sent: Friday, March 02

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
So its not possible to use something like this? There must be a way, i probably dont use it correctly. ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream(); Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document, pdfOutputStream); document.open() doc

Re: [iText-questions] bouncy castle

2007-03-02 Thread Stuart Jansen
On Fri, 2007-03-02 at 11:21 -0600, robert engels wrote: > I think you misunderstand the JCE system or what I am stating - > although I did not use the term provider correctly in the strictest > sense. Might I suggest that code speaks louder than words and is more often understood correctly. As

[iText-questions] Header & Footer in Web Application...

2007-03-02 Thread Versoft
Hi Friends, Appreciate all for helping in my previous problem. This time i need to add header and footer to my PDF output. This is my attached... The problem is the header and footer only on the last page. What do i do to get it all the pages. I purchased the bookiText in action, it says we sh

[iText-questions] bouncy castle

2007-03-02 Thread robert engels
paul, I think you misunderstand the JCE system or what I am stating - although I did not use the term provider correctly in the strictest sense. The SUN provider in 1.5 includes significantly more cryptography algorithms than the 1.4 and prior releases - most importantly it includes an RS

Re: [iText-questions] problem with page break

2007-03-02 Thread Paulo Soares
You only have a table with several cells, they will break as needed. to do wjat you want put each of your blocks in a table and put each of this tables in a cell in an outer table. Make the outer table setSplitLate(true). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EM

Re: [iText-questions] graphics2d/pdfmark...

2007-03-02 Thread Bill Ensley
If I understand you correctly, you want to have PdfGraphics2D honor hyperlinks within the finished document. While this is certainly possible to hack PdfGraphics2D to accomplish it, it breaks the concept of the Graphics object as You would need to explicitely be using a PdfGraphics2D object instea

[iText-questions] problem with page break

2007-03-02 Thread Carlo Bongiovanni
Hi all, i have to print the result of a report in a pdf file. each row from the database is put in a PdfPtable, and this is my code, but it occurs a page break during the print that breaks some of the tables :( at start i have an image: PdfWriter.getInstance(document, response.getOutp

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Paulo Soares
Importing pages doesn't preserve links. You may be asking too much of the PDF format. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Larouche Jean-François > Sent: Friday, March 02, 2007 4:49 PM > To: Post all your questions about iText

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
Ack i just tough about it, i cannot do that, there might by hyperlinks inside the PD4ML generated pdf. If i clip an image i will loose all this information. I really need to just get that content and insert in a cell as is. On 3/2/07, Larouche Jean-François <[EMAIL PROTECTED]> wrote: I dont kn

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
I dont know if this will work, because if i clip an image, the content wont readjust itself in the Cell if its smaller. I will try to find the example you talking about and try it. Thanks! On 3/2/07, Paulo Soares <[EMAIL PROTECTED]> wrote: There are lots of examples about importing PDF pages

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Paulo Soares
There are lots of examples about importing PDF pages and treating them as images. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Larouche Jean-François > Sent: Friday, March 02, 2007 4:36 PM > To: Post all your questions about iText her

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
Well i want to add the "content" of all pages in another PDF inside a PdfPCell. That cell is inside a dynamically generated Document with iText. Would that be possible? Im still digging through mailing archive without luck. On 3/2/07, Bruno Lowagie <[EMAIL PROTECTED]> wrote: Larouche Jean-Fra

Re: [iText-questions] bouncy castle requirement?

2007-03-02 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of robert engels > Sent: Friday, March 02, 2007 4:12 PM > To: itext iText here > Subject: Re: [iText-questions] bouncy castle requirement? > > My point was, if you use the standard Java interfaces,

Re: [iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Bruno Lowagie
Larouche Jean-François wrote: > But its only working if i close all the PDFs, re-read them, and merge on > a page basis. Are you saying you tried using bytes from a document that wasn't closed? The close method creates the Cross-Reference table and the trailer of the document. Those are essential

Re: [iText-questions] bouncy castle requirement?

2007-03-02 Thread Bruno Lowagie
robert engels wrote: > I am willing to work on a patch to allow have iText use the standard > java JCE interfaces if there was reasonable certainty of it being > accepted. Sounds interesting. Paulo has the final word on everything that concerns signatures. Let's hear what he thinks about it. b

Re: [iText-questions] bouncy castle requirement?

2007-03-02 Thread robert engels
My point was, if you use the standard Java interfaces, a user that is running Java 1.3 or 1.4 can install the bouncy castle "provider" jars and it will work. A user that is running 1.5 does not need the bouncy castle jars since the provider is already there. With the current code, all users

Re: [iText-questions] detect page break and table size

2007-03-02 Thread kanchana
Sorry for the previous reply. I was able to find a solution after delving more deeply into the classes. I was able to emulate the rowspan too. Thanks for your help. Kanchana. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexis Pigeon Sent: Wednesday,

[iText-questions] graphics2d/pdfmark...

2007-03-02 Thread Darrell Berry
Hi Searched the archives, and couldn't find a similar question, so... I have a java app which currently exports graphics2d objects rendered using the excellent JUNG visualisaiton library as EPS files (amongst other formats), using a slightly-hacked version of the FreeHEP vector graphics too

[iText-questions] Merging PDF, but different from example.

2007-03-02 Thread Larouche Jean-François
Hi All, Its been some time that i try to merge a PDF created in memory from iText and an utility called PD4ML. Everything is in memory, and the good example on website is working. But its only working if i close all the PDFs, re-read them, and merge on a page basis. The only problem, the user wa

Re: [iText-questions] Getting coordinates of an existing field...

2007-03-02 Thread Rick DeFazio
Thanks I'll check that out... >From: Bruno Lowagie <[EMAIL PROTECTED]> >Reply-To: Post all your questions about iText here > >To: Post all your questions about iText here > >Subject: Re: [iText-questions] Getting coordinates of an existing field... >Date: Fri, 02 Mar 2007 10:34:00 +0100 > >Rick

Re: [iText-questions] Import a part of a page

2007-03-02 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: > I’m tying to add to a pdf a part of an other pdf. > > I found getImportedPage who import a whole page but how can I import > just a part of a page? You can 'clip' a PdfImportedPage, but something tells me that's not what you want. You'll have to clarify. Either your qu

Re: [iText-questions] Table of contents in pdf!

2007-03-02 Thread Bruno Lowagie
Eric Summkeller wrote: > - How could I found the Paragraph with the special character combination? That may prove to be very difficult if not impossible. Why didn't you add a(n invisible) annotation instead? Annotations contain coordinates. > - How could I change this Paragraph through the new Pa

Re: [iText-questions] PDF merging much slower in 1.4.8 than in 1.3.6

2007-03-02 Thread Mariusz Pala
I'm testing with different files and it's slower, sometimes 10, sometimes 2 times, but always slower. I've observed that merged file on my drive is growing with 1mb/s with 1.3.6, and 100-200kb/s with 1.4.8. How is it possible? Thanks, Mariusz Paulo Soares wrote: > 10 times slower is certainly

Re: [iText-questions] Files are not beging closed

2007-03-02 Thread Paulo Soares
If you run the test code: FileOutputStream file = new FileOutputStream("output.txt"); FileChannel channel = file.getChannel(); channel.close(); PrintWriter writer = new PrintWriter(file); writer.println("testing, testing, testing"); writer.close(); Do you have anything writen to output.txt? Paul

Re: [iText-questions] PDF merging much slower in 1.4.8 than in 1.3.6

2007-03-02 Thread Paulo Soares
10 times slower is certainly something else. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mariusz Pala > Sent: Friday, March 02, 2007 11:59 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] PDF merging much sl

Re: [iText-questions] Problem with ToC in PDF aftermerging using PdfCopy

2007-03-02 Thread Paulo Soares
This may be fixed in the current CVS. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mariusz Pala > Sent: Friday, March 02, 2007 12:09 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Problem with ToC in

Re: [iText-questions] Problem with ToC in PDF aftermerging using PdfCopy

2007-03-02 Thread Mariusz Pala
OK, thanks. please let me know if the status of this "bug" will change. I've tested this stuff with iText 1.4.8 and it works fine. The problem seems to exist only in v2.0 . Regards, Mariusz Bruno Lowagie (iText) wrote: > Mariusz Pala wrote: > >> Ok, I'm enclosing an example that allows to rep

[iText-questions] PDF merging much slower in 1.4.8 than in 1.3.6

2007-03-02 Thread Mariusz Pala
I'm trying to upgrade my iText library. Currently I'm using itext 1.3.6 and file merging (using PdfCopy) is quite fast. But when I upgrade to v1.4.8 merging, it is very very slow.. Like ten times slower than in 1.3.6. I'm testing on files with sizes: 5.5kb, 30mb, 14mb. Do you know where could

[iText-questions] Table of contents in pdf!

2007-03-02 Thread Eric Summkeller
Hello, I want to create a table of contents in pdf. Therefore I saved all the added Chapters and Sections in a list. At the position where the table of contents should later appear I added a Pharagraph with a special character combination. After the Pdf Document was closed I want to read the Pd

Re: [iText-questions] want to display pdf file in jsp

2007-03-02 Thread Bruno Lowagie (iText)
Amit Kumar Agarwal wrote: > Hi, > > I want to display a PDF file in jip. jip? > It is possible using iText. If yes, > please provide me some sample code. Please Google for an example. This question has been answered over and over again. Summarized: it's possible, but it's a bad idea. Use Servl

[iText-questions] want to display pdf file in jsp

2007-03-02 Thread Amit Kumar Agarwal
Hi, I want to display a PDF file in jip. It is possible using iText. If yes, please provide me some sample code. Thanks in Advance, Amit - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay p

Re: [iText-questions] bouncy castle requirement?

2007-03-02 Thread Bruno Lowagie
robert engels wrote: > Curious. Why is there a direct dependency on the bouncy castle jars? Because we are planning to use more BC functionality in the future. > Can't iText use the standard Java encryption packages (which will > locate the needed provider)? I believe you implicitly gave the a

Re: [iText-questions] Getting coordinates of an existing field...

2007-03-02 Thread Bruno Lowagie
Rick DeFazio wrote: > Does anyone know if it is possible to determine the coordinates of an > existing signature filed in a PDF? If so any code examples? Hey Rick, for some reason I'm not receiving any of your mails in my inbox. This happens with several people. I'm starting to suspect my hosting

Re: [iText-questions] Insert Image in PDF...

2007-03-02 Thread Bruno Lowagie (iText)
Versoft wrote: > How can i specify the relative location to my web application root You can ask the Servlet for its context path. br, Bruno - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay

Re: [iText-questions] How to make Plain ContentsList of a Pdf into a new linked Contents of a Pdf So that a user can go to a specific page By clicking on the Respective link

2007-03-02 Thread Bruno Lowagie (iText)
rajat bhatnagar wrote: > I am trying 2 do the following since the last 4 days but did not have > success as of now The reason for this is that you're trying to do something that is impossible. Sorry. br, Bruno - Take Surveys