Re: [iText-questions] Duplicated fonts in iText-generated PDF

2007-02-26 Thread Thomas Okken
OK, I'm now using PdfSmartCopy. What I'm doing is sending the output from the original PdfWriter to a ByteArrayOutputStream, and I then read that using another PdfReader and write it to a PdfSmartCopy. Works great; the files don't shrink quite as much as with Acrobat 8, but pretty close. I have o

Re: [iText-questions] Pdf File request

2007-02-26 Thread Leonard Rosenthol
Open Adobe Acrobat Professional. Choose the Sound tool Draw out your annotation Choose the .wav file you wish to embed Voila On Feb 26, 2007, at 11:17 AM, Tony Chhun wrote: Ok, I will explain further. A PDF document can contain Annotation such as text but also audio annotation. I only have

Re: [iText-questions] SafeNet LunaSA and getCertificateChain method

2007-02-26 Thread Paulo Soares
You should ask SafeNet about that. Note that there are many ways to sign a document, including the usage of an externally generated PKCS#7 but it all depends on what SafeNet provides. Paulo - Original Message - From: "Moore, Jane" <[EMAIL PROTECTED]> To: Sent: Monday, February 26, 200

Re: [iText-questions] JavaPolis interview

2007-02-26 Thread Alan Keown
Bruno, I didn't notice any awkward answers - just thoughtful. The last answer could be adapted to a motto for the mailing list: "Stop worrying and learn to love the PDF specification." Cheers AlanK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno

[iText-questions] SafeNet LunaSA and getCertificateChain method

2007-02-26 Thread Moore, Jane
Hi, Has anyone tried to sign a .pdf with iText using SafeNet's LunaSA HSM for key/certificate storage? I ask because the LunaSA Java API does not seem to support KeyStore.getCertificateChain() method, and the certificate chain is needed to pass to iText's setCrypto method for signing a .pdf.

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Stuart Jansen
On Mon, 2007-02-26 at 16:27 +0100, Bruno Lowagie (iText) wrote: *snip* > you are trying to catch a mouse using an elephant. (Is that even > an expression?) It's close to something I've heard before, but all that's coming to mind is: "You're trying to swat a fly with a bazooka." -- Stuart Jansen

Re: [iText-questions] Pdf File request

2007-02-26 Thread Tony Chhun
Ok, I will explain further. A PDF document can contain Annotation such as text but also audio annotation. I only have PDF document with audio annotation recorded by a microphone, but what I need is an audio annotation with a wav file. The wave file exists already (take one of the windows sound for

Re: [iText-questions] Pdf File request

2007-02-26 Thread Bill Ensley
?? -Bill Ensley www.bearprinting.com _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Chhun Sent: Monday, February 26, 2007 11:01 AM To: Post all your questions about iText here Subject: [iText-questions] Pdf File request Does anyone c

[iText-questions] Pdf File request

2007-02-26 Thread Tony Chhun
Does anyone can send me a Pdf File with an audio annotation in it. The audio annotation have to be a file specification embedded in the document. Thank you. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceFor

[iText-questions] Sound annotation implementation

2007-02-26 Thread Tony Chhun
Hello, I'm tryig to create a createSound methd for the PdfAnnotation class. If anyone could help me. Regarding the PDF Refernce document, I have implemented this: public PdfAnnotation createSound (PdfWriter writer, Rectangle rect, String clipTitle, PdfFileSpecification fs) throws IOException {

[iText-questions] PdfPTable and page split

2007-02-26 Thread Termos Termos
Hi, I want to build a page the following way: +-+ | Line 1 | +-+ | Line 2 | +-+ | | | Part 1 | | | | Part 2 | | | | Part n

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Bruno Lowagie
Marco wrote: >> Why do you want to add text to a PDF >> using java.awt.Image? > I need Canvas for insert some mathematics formulas inside text, and it > works. It would work ever better if you used PdfGraphics2D. > N.B. I don't want use iText after create a Canvas, I don't understand: you wan

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Marco
> Why do you want to add text to a PDF > using java.awt.Image? I need Canvas for insert some mathematics formulas inside text, and it works. My problem of Font is not most important, but I hoped for resolve it. N.B. I don't want use iText after create a Canvas, I want only set the same Font fo

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Bruno Lowagie (iText)
Marco wrote: > This is an example of the code I use. Reading your code it is now clear to me that you're on the wrong forum. There is no iText code involved when you create a java.awt.Image based on text written to a canvas. You should post this question on a Java forum. > As com.lowagie.text use

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Marco
>> When I make a pdf file, the images from Canvas (that contains strings >> too) and the strings that I directly insert in pdf have differents Font, >> and I don't like this. > Counter-question: have you mapped the Java Font > with the correct font file? Or are you just using > the DefaultFontM

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

2007-02-26 Thread Bruno Lowagie (iText)
Mariusz Pala wrote: > But, if you want, I can check in which version of iText it doesn't work. If you could provide us a small zip file, with some small PDF files and a standalone Java source file that reproduces the problem; it would help us a lot. Then we could dig into the problem together. br,

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

2007-02-26 Thread Mariusz Pala
OK, I've found a solution for that:) I've downloaded v1.3.6 from CVS and this functionality works, and also there is no problem with big files. So perfect for me. But, if you want, I can check in which version of iText it doesn't work. Thanks, Mariusz Mariusz Pala wrote: > Thanks Paulo for your

Re: [iText-questions] sign a PDF

2007-02-26 Thread Jens Kelkel
Thanks Original-Nachricht Datum: Fri, 23 Feb 2007 15:15:50 - Von: "Paulo Soares" <[EMAIL PROTECTED]> An: "Post all your questions about iText here" CC: Betreff: Re: [iText-questions] sign a PDF > Select the windows handler and it will work. You can also sign with the > Pdf

Re: [iText-questions] JavaPolis interview

2007-02-26 Thread Paul Hastings
Bruno Lowagie (iText) wrote: > I'm not 100% happy with what I said; I should have prepared possible > questions. Some answers I gave really sound awkward in hindsight. you mean like "Do you see any relationship between using Adobe Flex and iText?" kind of surprised you didn't all out of your cha

[iText-questions] JavaPolis interview

2007-02-26 Thread Bruno Lowagie (iText)
Hello all, the interview I gave Ted Neward while Paulo and I were at JavaPolis is online: http://itext.ugent.be/articles/press/jp_interview.php I'm not 100% happy with what I said; I should have prepared possible questions. Some answers I gave really sound awkward in hindsight. And oh boy, was

Re: [iText-questions] RtfCell vs Cell

2007-02-26 Thread GAMBELLI Raffaele
The solution was com.lowagie.text.rtf.table.RtfBorderGroup, many thanks (to myself) :-) Best regards Raffaele -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of GAMBELLI Raffaele Sent: lunedì 26 febbraio 2007 10.56 To: Post all your questions about iText here

Re: [iText-questions] RtfCell vs Cell

2007-02-26 Thread GAMBELLI Raffaele
Aaaargghh! I must drink less in the morning! There are two RtfCell, one depracted and one not...uff... 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 confu

Re: [iText-questions] RtfCell vs Cell

2007-02-26 Thread GAMBELLI Raffaele
Ok sorry, I've just seen in the API reference for RtfCell this: Do not use it directly ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2 Ok! Then, with Table, should I use only Cell? Is it correct? Thank you, best regards Raffaele ---

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Bruno Lowagie (iText)
Marco wrote: > It is possible to use default iTeXt font for my Frame? > > When I make a pdf file, the images from Canvas (that contains strings > too) and the strings that I directly insert in pdf have differents Font, > and I don't like this. Let me guess: you are using PdfGraphics2D to print

Re: [iText-questions] Templates, Watermarks

2007-02-26 Thread Roger Misteli
Thanks, that's exactly what I was looking for. I experiemnted around with addImage() and came to the same conclusion, but I wasn't sure if this was a bug or a feature (in other words: I wasn't sure if this was the official way or not), but now that I know it is, I can start optimizing my code!

[iText-questions] RtfCell vs Cell

2007-02-26 Thread GAMBELLI Raffaele
Hi all! I would like to understand a difference about RtfCell and Cell: I can add both elments into a Table but, the rtf code generated is different: Consider a rtf document with only a table of one column with only one row, pratically an empty rectangle, in Java is: WITH Cell:

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

2007-02-26 Thread Mariusz Pala
Thanks Paulo for your help, but still I have no idea how to write a code to agglutinate all the destinations and add it to the catalog. As I sad before, it was working with old iText (from early 2005 release). I was trying to compare source code to investigate why it stop working, but unfortunale

Re: [iText-questions] Templates, Watermarks

2007-02-26 Thread Bruno Lowagie (iText)
Roger Misteli wrote: > Hiyas > > I have a document with, say, 2000 pages and on each page is a little image. > The image is the same over all the 2000 pages. Now, if I simply add the > picture to the document using PdfContentByte and addImage() I get the desired > result, but the same image is

[iText-questions] Templates, Watermarks

2007-02-26 Thread Roger Misteli
Hiyas I have a document with, say, 2000 pages and on each page is a little image. The image is the same over all the 2000 pages. Now, if I simply add the picture to the document using PdfContentByte and addImage() I get the desired result, but the same image is written 2000 times and blows up t