Re: [iText-questions] Get font type and size from a pdf

2008-04-15 Thread Nhia Nhia
Ok, I know it sounds a bit strange but i have to do it, and do it automatically. My question was if I can extract any information from de pdf file about font and size, because i suppose you are going to say that its impossible, but i want to be sure. I thinked maybe I could use tokenizer to see th

Re: [iText-questions] Table Border Width

2008-04-15 Thread Bruno Lowagie
Mark Thomas wrote: > Hello > > Is there a way to set the table (PdfPTable) border to zero rather than having > to specify setBorderWidth on every cell (PdfPCell)? It depends. Maybe getDefaultCell().setBorderWidth(width) will help you (in case you are adding cells with for instance addCell(String

Re: [iText-questions] Get font type and size from a pdf

2008-04-15 Thread Bruno Lowagie
Nhia Nhia wrote: > Hello, > > > My problem is that i have extracted the content from a pdf (using PDFBox > as Bruno recommend in the book) to a .txt, Well, it appears that you have succeeded in doing so. > but now I want to make the > pdf again from this text. Er... OK... > The question is

Re: [iText-questions] getting the PDF from an Applet back to the calling javascript

2008-04-15 Thread Bruno Lowagie
Peter Rait wrote: > Thank you for your considerations. > My problem is what else can I use when I want to distribute my > application (creating customizable lists as PDFs) to users who have not > always an internet connection to a server? > Would it be a better solution that the Applet is sending

Re: [iText-questions] Inserting searchable text layer beneath image

2008-04-15 Thread Kavitha_Govindaraj
Hi Leonard, I have the same question as Jody and I have a text file with position information. Could you tell me which class or package i need to use in order to accomplish this? Thanks in advance, Kavitha. Leonard Rosenthol wrote: > > You can do this, but you'll need more than just the text.

Re: [iText-questions] getting the PDF from an Applet back to the calling javascript

2008-04-15 Thread wasegraves
-- Original message -- From: Peter Rait <[EMAIL PROTECTED]> > > 1T3XT info schrieb: > > Peter Rait wrote: > >> If this is the case please let me know how you solved this problem. > > > > Who knows, maybe you're even trying to do something that goes against > > the

Re: [iText-questions] getting the PDF from an Applet back to the calling javascript

2008-04-15 Thread Peter Rait
1T3XT info schrieb: > Peter Rait wrote: >> If this is the case please let me know how you solved this problem. > > I fear there won't be a lot of response. > I'm sorry, but IMHO your design has plenty of flaws: > are you going to depend on JavaScript/Applet communication? > Are you going to use Ap

[iText-questions] Table Border Width

2008-04-15 Thread Mark Thomas
Hello Is there a way to set the table (PdfPTable) border to zero rather than having to specify setBorderWidth on every cell (PdfPCell)? Thanks Mark - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don'

[iText-questions] Get font type and size from a pdf

2008-04-15 Thread Nhia Nhia
Hello, My problem is that i have extracted the content from a pdf (using PDFBox as Bruno recommend in the book) to a .txt, but now I want to make the pdf again from this text. The question is that I don't know if it's possible I can do a class where I can read line by line from my .txt and, at th

Re: [iText-questions] Using output as input for second use

2008-04-15 Thread Howard Shank
Something like this should do what you want. ByteArrayOutputStream firstPdf = new ByteArrayOutputStream();// original byte stream // create your original copy here // .. do stuff.. // now create your new input stream from the original output stream. ByteArrayInputStream firstInputPdf= new B

[iText-questions] Using output as input for second use

2008-04-15 Thread Sundowner71
Hi I have the problem, that i cannot open a pdf with the version 7 of acrobat, only the version 8 works fine. When i open the pdf with the version 8 and then use freePDFXP to generate a pdf file, then this generated pdf can be opened with version 7 of acrobat reader. Now i want to do the followi

Re: [iText-questions] adobe reader error 109

2008-04-15 Thread Cesare Cantieri
The attached is the original PDF generated from html by Flying Saucer thank you --cesare Paulo Soares wrote: I need the original PDF. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cesare Cantieri Sent: Tuesday, April 15, 2008 7:48 AM To

Re: [iText-questions] adobe reader error 109

2008-04-15 Thread Paulo Soares
I need the original PDF. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Cesare Cantieri > Sent: Tuesday, April 15, 2008 7:48 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] adobe reader error 109 > > I

Re: [iText-questions] adobe reader error 109

2008-04-15 Thread Paulo Soares
You can add new content with PdfCopy. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Cesare Cantieri > Sent: Tuesday, April 15, 2008 9:56 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] adobe reader err

Re: [iText-questions] adobe reader error 109

2008-04-15 Thread Cesare Cantieri
Unfortunately PdfCopy doesn't allow new content which I need to add; And PdfStamper can manipulate the content of just one existing PDF which is not enogh for me. From a higher point of view what I am doing is: generate from many html documents (using Flying Saucer) many PDF, then I need to co

Re: [iText-questions] PdfFormfield textfield background color

2008-04-15 Thread razvanb
Thank you for the answer...it is a good idea...! I don't know why i didn't think on it before! If I have questions, I know where to ask...you are very prompt...TY! 1T3XT info wrote: > > razvanb wrote: >> using >> TextField(that has no setWidget method). > > As explained in the book TextField

Re: [iText-questions] "Arial Unicode MS" and FontFactory.registerDirectories()

2008-04-15 Thread nanotime
Thanks for reply. I've solve the problem, please see http://www.nabble.com/forum/ViewPost.jtp?post=16697572&framed=y I didn't point to any directory specially, but instead used registerDirectories() Paulo Soares wrote: > > What path are you using in linux to get the font file? > Is there a fon

Re: [iText-questions] "Arial Unicode MS" and FontFactory.registerDirectories()

2008-04-15 Thread nanotime
Thanks a lot for your reply. I found out what the problem was. I used BaseFont instead of Font and FontFactory.getFont(). Also I added FontFactory.registerDirectory(defaultFontDirectory). Without it it won't work (I tried to put arialuni.ttf into .../jre/lib/fonts/), but I suppose I couldn't tweak