Re: [iText-questions] Registering Fonts

2005-10-11 Thread Paulo Soares
- Original Message - From: "Nandu" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 12, 2005 6:46 AM Subject: [iText-questions] Registering Fonts > Hi, > > I am using the FontFactory class to register the fonts and load them up for use > in the manner shown below: > FontFactory.registe

[iText-questions] Registering Fonts

2005-10-11 Thread Nandu
Hi, I am using the FontFactory class to register the fonts and load them up for use in the manner shown below: FontFactory.register("c:\\windows\\fonts\\comic.ttf"); OR FontFactory.registerDirectory("c:\\windows\\fonts\\"); How should I do this on a Linux/Solaris machine? What is

Re: [iText-questions] Can we Insert Java Script programmatically into an existing PDF document using iText

2005-10-11 Thread Khasim Rafiuddin Lodge
Hi Paulo Thank you so much. Regards Khasim Rafiuddin L ViLink Team ' Off: 510.645.3266 ' Res: 510.481.5776 * [EMAIL PROTECTED] This is a PRIVATE message. If you are not the intended recipient, please

Re: [iText-questions] re : PdfStamper

2005-10-11 Thread Bruno Lowagie
Dilan wrote: If I do this, not work (empty file) Empty file = 99% chance you forgot to close the PdfStamper. stamper.close(); br, Bruno --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, disc

Re: [iText-questions] XHTML/CSS to Pdf

2005-10-11 Thread Bruno Lowagie
Mitch Freed wrote: I have a project requiring the conversion of XHTML with CSS to Pdf. I have looked at several different solutions and found a company doing somthing similar using iText. I know the FAQ suggests iText is not the way to go for such a thing, but How feasible is it to use iText t

[iText-questions] re : PdfStamper

2005-10-11 Thread Dilan
Hello, .. How can I get PdfStamper to work without a OutputStream? If I do this, not work (empty file) BufferedOutputStream baos = new BufferedOutputStream(new ByteArrayOutputStream()); PdfStamper stamper = new PdfStamper(reader, baos); AcroFields aform = stamper.getAcroFields(); Or int

RE: [iText-questions] re: input stream

2005-10-11 Thread Dilan
Hello, In this section of cord, I'm end up getting a corrupted pdf file, un readable one, no any other java errors or stack trace, However, if I pass the outputstream into the method that I created, it works well, why cant I crate a pdf with a ByteArrayOutputStream first then, set the response.get

Re: [iText-questions] Can we Insert Java Script programmatically into an existing PDF document using iText

2005-10-11 Thread Paulo Soares
PdfReader pdf = new PdfReader("mypdf.pdf"); PdfStamper stp = new PdfStamper(pdf, new FileOutputStream("outpdf.pdf")); stp.addJavascript("app.alert(\"I'm here!\");\r"); stp.close(); - Original Message - From: "Khasim Rafiuddin Lodge" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED

Re: [iText-questions] PDF Compress

2005-10-11 Thread Paulo Soares
I've no idea, my guessing powers are not what they used to be... - Original Message - From: "Jayakumar Jeyabal" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 11, 2005 10:50 PM Subject: [iText-questions] PDF Compress > Hello, > > After writing the PDF file using JAVA the size is 3.25 M

Re: [iText-questions] Can we Insert Java Script programmatically into an existing PDF document using iText

2005-10-11 Thread Khasim Rafiuddin Lodge
Hi Paulo Can you please send me a small code snippet that would be very helpful. I am not able to find documentation on iText thats one of the reasons for this erroneous code. Regards Khasim Rafiuddin L ViLink Team ' Off: 510.645.3266 ' Res: 510.481.5776 * [EMAIL PROTECTED] ---

[iText-questions] PDF Compress

2005-10-11 Thread Jayakumar Jeyabal
Hello, After writing the PDF file using JAVA the size is 3.25 MB and If I save as the same file its 1.21MB. Is the API allow the PDF file to be saved as 1.21MB? Thanks, Jay _ Don’t just search. Find. Check out the new MSN Search

Re: [iText-questions] PdfReader and layers

2005-10-11 Thread Leonard Rosenthol
At 11:11 AM 10/11/2005, Mark wrote: What I want to do it write a utility that will detect and or get the text from a PDF that is obscured by a black piece of data. OK. iText can't help you. You need a library like PdfBox or Multivalent that will give you access to the conten

Re: [iText-questions] Last Page Margins

2005-10-11 Thread Paulo Soares
Not with plain Document.Add(). You'll need to create your own layout with ColumnText. - Original Message - From: "Mitch Freed" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 11, 2005 9:53 PM Subject: [iText-questions] Last Page Margins Is there any way to specify different margins for

Re: [iText-questions] Can we Insert Java Script programmatically into an existing PDF document using iText

2005-10-11 Thread Paulo Soares
Your code is all wrong, you must use PdfStamper. Pdf is not postscript you can't put one pdf after the other and expect to have something valid. - Original Message - From: "Khasim Rafiuddin Lodge" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>; Sent: Tuesday, October 11, 2005

[iText-questions] Last Page Margins

2005-10-11 Thread Mitch Freed
Is there any way to specify different margins for the last page of a document? We have certain documents that need say a 3in. bottom margin on the last page of the document. I have been reading through the documentation and haven't seen anything suggesting something like this is possible.  

[iText-questions] XHTML/CSS to Pdf

2005-10-11 Thread Mitch Freed
I have a project requiring the conversion of XHTML with CSS to Pdf. I have looked at several different solutions and found a company doing somthing similar using iText. I know the FAQ suggests iText is not the way to go for such a thing, but How feasible is it to use iText to achieve such a 

Re: [iText-questions] PdfReader and layers

2005-10-11 Thread Mark
What I want to do it write a utility that will detect and or get the text from a PDF that is obscured by a black piece of data. There have been cases recently which have caused some embarrasement where people tried to "black out" text in the hopes of the text not being read by other people. The f

RE: [iText-questions] Changing font in table cell

2005-10-11 Thread Paulo Soares
No Cell constructor takes a font, that information is carried in the Paragraph and Phrase that you add to the Cell. By the way, use a PdfPTable; if something goes wrong with Table you won't get any help. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Be

[iText-questions] Changing font in table cell

2005-10-11 Thread Hamish Symington
Title: Message Hello -   Using iTextSharp, writing an ASP.NET page in VB.NET rather than C# (don't ask) to generate a PDF from a form input.   Trying to work out how to change the font in a table cell. (I'm making a table with 'headings' on the left and 'values' on the right, and want the h

[iText-questions] Distress call - Adding combo-box elements programmatically

2005-10-11 Thread Nitin Tomer
Hi,           I searched a lot on net and tried other things, but unable to make any progess, please suggest something.   \N - Original Message - From: Nitin Tomer To: itext-questions@lists.sourceforge.net Sent: Monday, October 10, 2005 4:19 PM Subject: Adding combo-box elements p

Re: [iText-questions] Image sizes

2005-10-11 Thread Bruno Lowagie
James Scott wrote: Bruno Thank you for your last responce. When creating a photoshop image. It is being created at 72 dpi. But when for example I have an image of 500px by 150px and put this image into my PDF. It is still appearing a great deal larger than it should. I have also tried using th

RE: [iText-questions] Can we Insert Java Script programmatically into an existing PDF document using iText

2005-10-11 Thread Paulo Soares
Works for me both in full Acrobat 6 and in Reader 6. Do you have javascript enabled in Acrobat? (I attach my test file for you to check out) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Khasim Rafiuddin Lodge > Sent: Monday, October 10, 2005 9

[iText-questions] Re: How to draw thin lines?

2005-10-11 Thread Matthias . Dillier
Hi Gabriel Maybe you can use some existing fonts with musical symbols or even create your own with fontforge (http://fontforge.sourceforge.net/) instead of 'drawing' the notes. Here some liks which may be interesting. http://jeff.cs.mcgill.ca/~luc/music.html http://www.unicode.org/charts/PDF/U

Re: [iText-questions] re: input stream

2005-10-11 Thread Bruno Lowagie
Saying something works and something else doesn't work isn't sufficient information. What I need is a StackTrace or some info on the so called corrupt PDF. I don't need this in my personal inbox, I want to see it on the mailing list. This being said, a first glance at your code says me neither s

Re: [iText-questions] How to draw thin lines?

2005-10-11 Thread Bruno Lowagie
Gabriel Cristian Ditu wrote: Indeed, I noted that line width has a float value, however something like this (which is what I need) cb.setLineWidth(0.25f); still produces a line of width 1pt in the PDF document. I wonder if I am doing something wrong? Maybe you set the line width after yo

Re: [iText-questions] How to draw thin lines?

2005-10-11 Thread Gabriel Cristian Ditu
Indeed, I noted that line width has a float value, however something like this (which is what I need) cb.setLineWidth(0.25f); still produces a line of width 1pt in the PDF document. I wonder if I am doing something wrong? Would it be possible for someone to post a snippet of code that prod

Re: [iText-questions] re: input stream

2005-10-11 Thread Bruno Lowagie
Dilan wrote: Yep, I Try that, same result, Its only working, if I carry the OutputStream out = response.getOutputStream(); Into the method, why couldn't I able to create a pdf, then, copy the bytes into the OutputStream ? Normally you can write PDF to any OutputStream; it can be a ServletOutp

Re: [iText-questions] How to draw thin lines?

2005-10-11 Thread Bruno Lowagie
Gabriel Cristian Ditu wrote: The font that I am using does not have a staff character, nor does it have simple note stems, so I'm trying to draw the music staff using PdfContentByte.drawLine(), but no matter what I've tried (including Graphics2D, etc.) the lines come out thicker than I need. I