Re: [iText-questions] Creates an FDF and merges it with a PDF several times

2006-10-25 Thread Paulo Soares
There's no support for page templates although what you're doing is exactly the same. Paulo - Original Message - From: "muleiro" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 25, 2006 4:25 PM Subject: Re: [iText-questions] Creates an FDF and merges it with a PDF several times > >

Re: [iText-questions] Invalid color in the PDF?

2006-10-25 Thread Paulo Soares
The /BG entry in the /MK dictionary is an RGB array with values between 0 and 1. In the field "actions" the values are 238. I have a fix in the CVS to do an extra check. Paulo - Original Message - From: "Roger Misteli" <[EMAIL PROTECTED]> To: "Post all your questions about iText here"

Re: [iText-questions] How to interpret Rectangles on rotated pages

2006-10-25 Thread Mark Storer
Neither, really. All the coordinates stay the same, but it appears in a different location. I recommend against using rotated pages unless you have no choice (someone else's PDF, you're just manipulating it). Here's a little experiment for you: Lets say we've got a page that, when unrotated,

Re: [iText-questions] read the size of the image in the pdf file

2006-10-25 Thread Mark Storer
Err.. which size? Bytes in the PDF? Yes. Image size in pixels X & Y? Yes. Image size as it appears on the page: Not out of the box, no. You'd have to code something Non-Trivial to do it... iText won't do it for you. The first two require that you hunt down the Image XObject PdfDictionary for

Re: [iText-questions] bookmark action that goes to a page

2006-10-25 Thread Dan Crosta
Ok, I'm using: PdfOutline bookmark = new PdfOutline( writer.getRootOutline(), new PdfDestination( PdfDestination.XYZ, 0, 0, 0), letter.getAttribute( "name" ) ); Which wo

Re: [iText-questions] Creates an FDF and merges it with a PDF several times

2006-10-25 Thread muleiro
Thank you very much Bruno, the BatchFormFill example you gave me is exactly what i wanted to do. I don't know why i was fighting against fdf files, maybe because i've read your FDFExample and what i wanted to do was almost the same but several times. BTW, is possible with iText to work with pdf Pa

Re: [iText-questions] True Type Fonts

2006-10-25 Thread Mark Storer
Check out http://itextdocs.lowagie.com/examples/com/lowagie/examples/fonts/TrueType.java.   In the call to BaseFont.createFont(), the last parameter is BaseFont.NOT_EMBEDDED.  I'd guess (though I don't have the source/javadoc in front of me) that there's a corresponding BaseFont.EMBED constan

Re: [iText-questions] bookmark action that goes to a page

2006-10-25 Thread Paulo Soares
That's a XYZ destination with zoom 0. Paulo De: [EMAIL PROTECTED] em nome de Dan Crosta Enviada: qua 25-Out-06 19:35 Para: itext-questions@lists.sourceforge.net Assunto: [iText-questions] bookmark action that goes to a page I want to create a pdf outline with

Re: [iText-questions] Set rows height in Table

2006-10-25 Thread Paulo Soares
Use a String with a "\u00a0" inside. Paulo De: [EMAIL PROTECTED] em nome de Bruno Cardoso Enviada: qua 25-Out-06 18:15 Para: itext-questions@lists.sourceforge.net Assunto: [iText-questions] Set rows height in Table Hi folks, I'm trying to define a height for

Re: [iText-questions] True Type Fonts

2006-10-25 Thread Paulo Soares
You can embed the font. There's info in the tutorial on how to do it. Paulo De: [EMAIL PROTECTED] em nome de John Duff Enviada: qua 25-Out-06 18:37 Para: itext-questions@lists.sourceforge.net Assunto: [iText-questions] True Type Fonts Hi, I'm working on an Ap

[iText-questions] bookmark action that goes to a page

2006-10-25 Thread Dan Crosta
I want to create a pdf outline with items that go to the top of a given page -- no resizing, no zooming, just move the top of the view area to a given Y on a given page. Is that easy/possible? thanks, - d - Using Tomcat but n

[iText-questions] True Type Fonts

2006-10-25 Thread John Duff
Hi, I’m working on an App that is using iText to dynamically print pdfs and we want to use some non-standard True Type fonts but are having problems with it.  We are able to use the fonts in WindowsXP if you put them in the C:\WINDOWS\Fonts directy (they automatically get installed) and the

[iText-questions] Set rows height in Table

2006-10-25 Thread Bruno Cardoso
Hi folks,I'm trying to define a height for my rows in my Table object. Important information: I'm using itext1.3 (can't use another version). I'm calling setLeading() in all my cells and setting a Phrase object inside them with an empty String(). I need this cells empty. This is not working. How ca

Re: [iText-questions] read the size of the image in the pdf file

2006-10-25 Thread Leonard Rosenthol
At 12:43 PM + 10/25/06, jerry wrote: > can anyone please help me to read the size of the images in a pdf file. > You can't do this with iText - you'll wnat to look at PdfBox or JPEDAL. Leonard -- --- Leona

Re: [iText-questions] Becoming an Adobe Evangelist

2006-10-25 Thread Leonard Rosenthol
At 8:10 PM +0200 10/24/06, Bruno Lowagie wrote: >Please specify: "Belgian beer is good too." Yes it is! >You haven't tasted real beer unless you've tried a Duvel ;-) >http://www.duvel.be/ Good choice! I'm also a big fan of lambics - esp. Kriek. LDR -- --

Re: [iText-questions] Helvetica fonts?

2006-10-25 Thread Paulo Soares
Helvetica is always available. Note that if iText doesn't find a font it throws an exception, unless using FontFactory where a font not found is replaced with Helvetica. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Roger Misteli > Se

Re: [iText-questions] Helvetica fonts?

2006-10-25 Thread Roger Misteli
Okay.. I understand this. That none of the fotns are embedded, is acutally correct so. But could it be, that, on Linux, there weren't any fonts found and because of that, iText used the Helvetica fonts in the itext jar, because, plain simply, there isn't anything else to use? Best regards, Rog

Re: [iText-questions] Helvetica fonts?

2006-10-25 Thread Paulo Soares
You have to consider what's in the PDF and what is used to display the PDF. linux.pdf was created with font Helvetica (Type1) not embedded and windows.pdf was created with font Arial (TrueType) not embedded. As the fonts are not embedded whatever viewer used for displaying the PDF must find a suita

[iText-questions] RE : Re: PdfPCell alignement

2006-10-25 Thread Eric Rosaz
Thank you for the setUseAscender(true). This works well now!   ER   ps:Because when I print the itext pdf then measure the middle of the cell with my ruler, the text "middle" was not in the middle. And with word or internet explorer the text is exactly in the middle.   Paulo Soares <[EMAIL P

Re: [iText-questions] Creating Customized JAR file of iText for anApplication

2006-10-25 Thread M.Rameshkumar
Thanks a lot Aaron. Appreciate your time and suggestion. I will surely try that and update you.RamAaron J Weber <[EMAIL PROTECTED]> wrote: You could try autojar (sourceforge).  I've found it works pretty well -- but when you have any automated tool removing classes from existing jars (and c

Re: [iText-questions] TIFF fix

2006-10-25 Thread Paulo Soares
The jai io codecs have an updated fax reader but I don't know if the license is compatible with iText. Another alternative is to convert the code in libtiff; I've done that for the fax writer, maybe I'll do it for the fax reader. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [m

Re: [iText-questions] TIFF fix

2006-10-25 Thread Bruno Lowagie (iText)
Tatsuhiro Ono wrote: > Thank you very much for your announcement. ;-) I use this so that I don't forget to have a look at it. About your possible fix: >> http://itext.ugent.be/library/source.php?file=299 I have had a look at it, and I think it's not such a good idea to just add a try-catch. Do y

[iText-questions] cannot validate signed pdf

2006-10-25 Thread Christian Wiesbauer
Hello, i have a problem with pdf validation with adobe acrobat professional 6.0. It always says: Error during signature verification. Signature contains incorrect, unrecognized, corrupted or suspicious data. Support Information: SigDict /ByteRange value I think the problem is that the pdf I cre

Re: [iText-questions] Becoming an Adobe Evangelist

2006-10-25 Thread Damien Drix
The world changed forever on the day I was introduced to the exquisite Chimay ;-) I agree with you on the proper glass. Damien Webber, David (NIH/OD) [C] a écrit : > Bruno, > > Ah yes - Belgians and their beer. Having drank in some of the finest > and oldest bier kellers in Brussels - I can att

Re: [iText-questions] Becoming an Adobe Evangelist

2006-10-25 Thread Webber, David (NIH/OD) [C]
Bruno, Ah yes - Belgians and their beer. Having drank in some of the finest and oldest bier kellers in Brussels - I can attest to the goodness of these exquisite liquids! Leffe is also excellent - and don't forget the round ball glass is a must to enhance the flavour and presentation of the beer

Re: [iText-questions] XML to PDF Query

2006-10-25 Thread Webber, David (NIH/OD) [C]
I used to hate xslt too - but I must admit I've got quite good at it now - and for simple tasks its quick. I'm using OxygenXML for debugging xslt as it has a single step debugger - without which xslt is very much tougher!! The Saxon java library also is tool of choice. DW -Original Message-

Re: [iText-questions] Creating Customized JAR file of iText for anApplication

2006-10-25 Thread Filipe Fedalto
Hi, If what you want is to reduce the jar size, you could also use Proguard (http://proguard.sourceforge.net/). Proguard is a Java Code Optimizer/Shrinker/Obfuscator. It's not so straightforward. Actually, there are many parameters that you should configure to achieve the desired result without sp

Re: [iText-questions] Creating Customized JAR file of iText for anApplication

2006-10-25 Thread Aaron J Weber
You could try autojar (sourceforge).  I've found it works pretty well -- but when you have any automated tool removing classes from existing jars (and combining them with others), you should make sure to regression-test your classes against the resultant-jar very well in case something was m

[iText-questions] How to interpret Rectangles on rotated pages

2006-10-25 Thread Christoph Engelhardt
Hi mailing list. Could you give me a on how I have to interpret the coordinates of a Form element, if the page is turned by 90 degrees? e.g. if i have an array that was ordered in the following way: [lower-left-x lower-left-y top-right-x top-right-y] does it stay the some? or does it become:

[iText-questions] read the size of the image in the pdf file

2006-10-25 Thread jerry
Hi, can anyone please help me to read the size of the images in a pdf file. regards jerry - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated techno

Re: [iText-questions] Creates an FDF and merges it with a PDF several times

2006-10-25 Thread Bruno Lowagie (iText)
muleiro wrote: > Hi, i'm quite new on iText so please be patient with me. > I know how to create a fdf, fill it with the data and finally create a pdf. > That's really cool for my application requirements. But what i really wanted > to do is, once I've filled the fdf and created the pdf, begin agai

[iText-questions] Creates an FDF and merges it with a PDF several times

2006-10-25 Thread muleiro
Hi, i'm quite new on iText so please be patient with me. I know how to create a fdf, fill it with the data and finally create a pdf. That's really cool for my application requirements. But what i really wanted to do is, once I've filled the fdf and created the pdf, begin again to fill the fdf and

Re: [iText-questions] StyleSheet / HtmlWorker and granular font size

2006-10-25 Thread Paulo Soares
Document document = new Document(PageSize.A4); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("c:\\test3.pdf")); document.open(); PdfContentByte cb = writer.getDirectContent(); String rr = "Hello"; rr += "Hello3"; rr += "Hello5"; StyleSheet styles = new StyleSheet();

Re: [iText-questions] StyleSheet / HtmlWorker and granular font size

2006-10-25 Thread Joe Scanlon
Paolo I was running into a similar issue a while back - can you post the code you used to generate this pdf?Thanks in advanceJoeOn 10/25/06, Paulo Soares <[EMAIL PROTECTED]> wrote: This is all equivalent:HelloHello3Hello5 With a style sheet:StyleSheet styles = new StyleSheet();styles.loadStyle("pd

Re: [iText-questions] StyleSheet / HtmlWorker and granular font size

2006-10-25 Thread Paulo Soares
This is all equivalent: Hello Hello3 Hello5 With a style sheet: StyleSheet styles = new StyleSheet(); styles.loadStyle("pdfFont", "size", "11px"); styles.loadStyle("pdfFont", "face", "times-roman"); I attach the resulting PDF. Paulo

Re: [iText-questions] PdfPCell alignement

2006-10-25 Thread Paulo Soares
You may be missing a PdfPCell.setUseAscender(true). We can also argue why would you consider Word "more correct" than iText. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eric Rosaz > Sent: Wednesday, October 25, 2006 10:44 AM > To: iTe

[iText-questions] StyleSheet / HtmlWorker and granular font size

2006-10-25 Thread daniel . lehtihet
Hi, Having gotten help regarding this in the past (Thanks Paolo and Leonard...) i have now stumbled across something that i can't seem to fix. I currently use HtmlWorker together with StyleSheet to populate a PDF using HTML. Most of this works like a dream. The problem is that i need to force the

Re: [iText-questions] PdfPCell alignement

2006-10-25 Thread Bruno Lowagie (iText)
Eric Rosaz wrote: > What's wrong? Do i forgot something like the padding? Padding can be one reason, but in this case, I'd say it's probably the leading that was used for "middle". br, Bruno - Using Tomcat but need to do mo

Re: [iText-questions] printing pdf - from java

2006-10-25 Thread Damien Drix
Hello, First here's a related entry in the iText FAQ : http://itext.ugent.be/library/question.php?id=5 Now: On Unixes : - the lpr command on most systems works quite well. On Windows (prepare to enter a world of pain) : - If you're only interested in PS-capable printers : Go for the stan

Re: [iText-questions] 'iterate over a pdf document'

2006-10-25 Thread jerry
Hi, Yes i want to iterate over the pages of a PDF document. i have used the below given code to embed the images into the pdf file. so first i have to find the pages in the PDF Document which has images and attach the corresponding image files into that pages.so as to attach the image f

Re: [iText-questions] 'iterate over a pdf document'

2006-10-25 Thread jerry
Bruno Lowagie (iText lowagie.com> writes: > > jerry wrote: > > > i need to iterate over a PDF document > > You probably mean you want to iterate over the pages of a PDF document. > > > and set the writer to particular pages which contains images. > > I have not idea what you mean when you sa

Re: [iText-questions] 'iterate over a pdf document'

2006-10-25 Thread Bruno Lowagie (iText)
jerry wrote: > i need to iterate over a PDF document You probably mean you want to iterate over the pages of a PDF document. > and set the writer to particular pages which contains images. I have not idea what you mean when you say you have to 'set the writer'. br, Bruno --

[iText-questions] 'iterate over a pdf document'

2006-10-25 Thread jerry
Hi, Please forgive me if this is a repeated Question. i need to iterate over a PDF document and set the writer to particular pages which contains images.i will be very Thankful to you if u provide me a sample code. regards, jerry. --