[iText-questions] BookMarks (Outlines) in iText

2003-07-10 Thread bfavro
Anyone have any quick code samples on howto create Outlines(bookmarks) in iText? I see there is a PdfOutline class, but on every call to the PdfCopy.add () method requires a PdfOutline Object which in turn is instantiated through specifying: 1) a PdfOutline parent Object 2) PdfDestination or

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Paulo Soares
Does it happen with all the clients? iText doesn't do linearizing and that means that all the pdf must be read before displaying. If the font's are embedded the problem must be with the client, maybe the plug-in. Best Regards, Paulo Soares -Original Message- From: Christian Sauer

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Christian Sauer
Hoi, yes, it does happen with all clients. the plug-in is adobe acrobat 5.0 and the platform is WXP as well as W2K. cheers, chris -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 10. Juli 2003 11:39 To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Paulo Soares
Make sure the Acrobat version is 5.05. Prior versions have all kind of problems with fonts. Best Regards, Paulo Soares -Original Message- From: Christian Sauer [SMTP:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:54 To: Paulo Soares; [EMAIL PROTECTED] Subject: RE:

RE: [iText-questions] BookMarks (Outlines) in iText

2003-07-10 Thread Paulo Soares
PdfCopy can only be used to add pages, no extra content, annotation or bookmarks are allowed. Currently the only to do what you want is to place the pages in a new document. The problem you'll have is that the annotations are lost. This features are on the top of my to-do list but are very tricky,

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Christian Sauer
Hi, indeed ... acrobat 6 renders the embedded fonts correctly. the former rendering engine of our customer used pdf_lib with which the font refresh problem has never occurred - they used afm/ps fonts. is it possible to use those font too with iText? or is there any other possibility you see

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Paulo Soares
iText supports AFM/PFB fonts. Remember you customer that if Adobe issued those patches was because the Acrobat version was buggy. Tailoring the PDF to the bugs of the viewer is a bad precedent and it's not guaranteed to work with all the versions. I also know that technical reality has little to

[iText-questions] Page size

2003-07-10 Thread Carmona Perez, David
Hi all, Does anyone know if the page size of a PDF file has to be the same throughout the whole file? Can landscape and portrait pages be freely intermixed? Thanks in advance for sharing your experiences with iText David

[iText-questions] iText versus FOP

2003-07-10 Thread Carmona Perez, David
Hi, Im currently using Cocoon + FOP for generating PDF files, and find that is quite show and memory hungry (180 Mb of memory for 60 pages), and Im searching alternatives. I think that iText seems to be a better solution, as it doesnt use any XML format like FO not directly geared to

[iText-questions] iText and Cocoon

2003-07-10 Thread Carmona Perez, David
Hi all, Has anybody tried iText with Apache Cocoon? David

[iText-questions] RE: Regarding exception

2003-07-10 Thread Paulo Soares
The font has a table bug. I've fixed iText to work with this kind of broken fonts. If you want to try, replace in TrueTypeFont.java: HashMap readFormat4() throws IOException { HashMap h = new HashMap(); int table_lenght = rf.readUnsignedShort(); rf.skipBytes(2);

[iText-questions] Re: Extending the XML handling stuff...

2003-07-10 Thread Bruno
Quoting Leonard Rosenthol [EMAIL PROTECTED]: Another nice feature would be the possibility to parse a CSS into a TagMap object. I've been thinking about CSS stuff - but for a future project... This looks interesting: http://www.w3.org/Style/CSS/SAC/

[iText-questions] Re: Page size

2003-07-10 Thread Bruno Lowagie
Carmona Perez, David wrote: Does anyone know if the page size of a PDF file has to be the same throughout the whole file? Can landscape and portrait pages be freely intermixed? Of course you can have pages of different sizes in one document. There is an example in the first chapter of the iText

Re: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread Leonard Rosenthol
At 10:41 AM +0530 7/10/03, SATHISH Sreedharan wrote: c.setAnchor(javascript:onLoad=window.open('http://www.yahoo.com','popup','').focus();void(0);); This shouldn't work at all - esp. with Acrobat 6. The support for the javascript URL type was an unfortunate security hole introduced during the

RE: [iText-questions] Refreshing problem of embedded fonts whenopening PDF

2003-07-10 Thread Leonard Rosenthol
At 12:14 PM +0200 7/10/03, Christian Sauer wrote: indeed ... acrobat 6 renders the embedded fonts correctly. Good! the former rendering engine of our customer used pdf_lib with which the font refresh problem has never occurred - they used afm/ps fonts. It's not an issue of type of font, but an

Re: [iText-questions] BookMarks (Outlines) in iText

2003-07-10 Thread Leonard Rosenthol
At 2:42 PM -0500 7/9/03, [EMAIL PROTECTED] wrote: I am merging 'x' number of pdf documents (up to 200) and need to create a bookmark that refers to each document merged within the final file. Ideally, if there is a way to keep any of the read document's bookmarks as children under the new

Re: [iText-questions] Page size

2003-07-10 Thread Leonard Rosenthol
At 12:41 PM +0200 7/10/03, Carmona Perez, David wrote: Does anyone know if the page size of a PDF file has to be the same throughout the whole file? No it does not. You can happily mix page sizes... Leonard -- --- Leonard

RE: [iText-questions] Refreshing problem of embedded fonts whenopening PDF

2003-07-10 Thread Leonard Rosenthol
At 11:53 AM +0200 7/10/03, Christian Sauer wrote: yes, it does happen with all clients. the plug-in is adobe acrobat 5.0 and the platform is WXP as well as W2K. It's it actually 5.0, or is it 5.0.5 or 5.1? It is Reader or the full Acrobat or both? Does the browser matter (IE vs. NS)? Leonard

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Christian Sauer
it is 5.0 (the one for free)! acrobat is a plugin as well for IE as for NS too ... chris -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 10. Juli 2003 14:16 To: [EMAIL PROTECTED]; Paulo Soares; [EMAIL PROTECTED] Subject: RE: [iText-questions]

[iText-questions] Does iText and Java run faster on Powermac G4?

2003-07-10 Thread Mieke Banderas
I'm planning my server, which is going to start out on a old Powermac Beige G3/266 running Mac OS X Server Jaguar and Apple Web Objects 5.1, Itext, PostgreSQL and Apache. One of my customers will get to utilize iText for PDF creation from a java app that fetches data from the Database I've made

Re: [iText-questions] Streaming PDFs

2003-07-10 Thread Ben Sinclair
Can you show me how you're doing the streaming? The content-disposition was just something I added to try and make it work. I've tried many combinations of the various headers I know of, but to no avail. At 06:56 PM 7/9/2003, Scott Hamilton wrote: Two things come to mind, but both are

RE: [iText-questions] Page size

2003-07-10 Thread Schmickel, Xan
Title: RE: [iText-questions] Page size By the same token, is there a way to instruct the printer to select upper and lower tray for legal and letter size within one document? -Xan -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]] Sent: Thursday, July

RE: [iText-questions] Page size

2003-07-10 Thread Matt Benson
Have you tried it? If your printer driver sends the sizes your printer may be able to figure it out. For example, I think there is a better than 50% chance that an HP-LaserJet could do it, assuming the physical printer is set up to know what types of paper are in it. -Matt --- Schmickel, Xan

Re: [iText-questions] Does iText and Java run faster on Powermac G4?

2003-07-10 Thread Mark Morris
This isn't really an answer to your question, but I'm currently using iText with WebObjects 5.2, and have implemented returning the pdf directly, writing to a file then redirecting, and a cool Please wait... progress bar page. ;-) I'd be happy to share if you need any code snippets. Regards,

[iText-questions] printing a PDF directly from java class (LINUX platform)

2003-07-10 Thread bazofia
Hi I had successfully open a PDF file, fill in some form fields and I'd like to print it directly (to a samba printer or whatever) from the java application. any ideas about how to achieve this? any libraries? (iText does not handle printing, does it?) thanks in advance have a nice day bz

[iText-questions] How to force Page Break

2003-07-10 Thread Gopal . Bairwa
HI, Can anybody tell how to force a pagebreak while writing a pdf document ? Thanks in advance, Gopal. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book.

[iText-questions] OT: java pdf reader

2003-07-10 Thread Roberto Cipollini
Hi. Sorry for thuis off topic email. I hope anyone would mind :P I'm searching for a java pdf reader to boundle with my classes instead of having the acrobat-reader-setup beside my files. any suggestion? thanks., Roberto - sorry again for the off topic! -

Re: [iText-questions] OT: java pdf reader

2003-07-10 Thread Matt Benson
You may be able to use some stuff from JPEDAL, but I think there are other solutions as well. -Matt --- Roberto Cipollini [EMAIL PROTECTED] wrote: Hi. Sorry for thuis off topic email. I hope anyone would mind :P I'm searching for a java pdf reader to boundle with my classes instead of

RE: [iText-questions] BookMarks (Outlines) in iText

2003-07-10 Thread Paulo Soares
There's a difference. PdfCopy creates a new document by concatenating full pages. A regular PdfWriter creates a blank page and the imported page is placed as a template. If you don't have annotations the final result is the same with the difference that the latter method allow other content to be

RE: [iText-questions] Event handling in outline

2003-07-10 Thread Paulo Soares
Try Section.setBookmarkOpen(false) to present a colapsed view of the tree. Best Regards, Paulo Soares -Original Message- From: pramodh [SMTP:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:00 To: [EMAIL PROTECTED] Subject: [iText-questions] Event handling in outline Hi.,

Re: [iText-questions] OT: java pdf reader

2003-07-10 Thread Roberto Cipollini
yes..some APIs that can display the pdf inside a pane or similar ways. - Original Message - From: Mihnea Galeteanu [EMAIL PROTECTED] To: Roberto Cipollini [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 4:44 PM Subject: RE: [iText-questions] OT: java pdf reader u mean like somthing

RE: [iText-questions] Refreshing problem of embedded fonts when opening PDF

2003-07-10 Thread Leonard Rosenthol
At 02:24 PM 7/10/2003 +0200, Christian Sauer wrote: it is 5.0 (the one for free)! Acrobat Reader 5.0 had a LOT of bugs - that's why there was a 5.0.5, and then later a 5.1. The current version is 6.0. Upgrade! acrobat is a plugin as well for IE as for NS too ...

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread Leonard Rosenthol
At 06:05 PM 7/10/2003 +0530, SATHISH Sreedharan wrote: Now, if my requirement is that i want to display an alert from a pdf, then is there any way to do this. Use Acrobat JavaScript as the action NOT browser JavaScript (which is what you were doing). app.alert(This is an alert);

Re: [iText-questions] printing a PDF directly from java class (LINUX platform)

2003-07-10 Thread Leonard Rosenthol
At 04:20 PM 7/10/2003 +0200, bazofia wrote: I had successfully open a PDF file, fill in some form fields and I'd like to print it directly (to a samba printer or whatever) from the java application. Save it to a file, send it to Ghostscript. Leonard

Re: [iText-questions] OT: java pdf reader

2003-07-10 Thread Leonard Rosenthol
At 04:25 PM 7/10/2003 +0200, Roberto Cipollini wrote: I'm searching for a java pdf reader to boundle with my classes instead of having the acrobat-reader-setup beside my files. any suggestion? There aren't any. Adobe had one, they canned it :(. Leonard

RE: [iText-questions] Page size

2003-07-10 Thread Leonard Rosenthol
At 09:58 AM 7/10/2003 -0400, Schmickel, Xan wrote: By the same token, is there a way to instruct the printer to select upper and lower tray for legal and letter size within one document? No! PDF is the PORTABLE Document Format, meaning that it does NOT contain any methods for printer-specific

[iText-questions] Question about FontMapper

2003-07-10 Thread Alex Geller
Hi, I use iText for creating pdf from Graphics2D drawings. I get the Context from calling PdfContentByte.createGraphics(float w,float h,FontMapper mapper). My questions are about the FontMapper. I understand, that it is responsible for mapping java.awt.Fonts to com.lowagie.text.pdf.BaseFont by

[iText-questions] Can't get a ttf font file working - font says it's from Adobe

2003-07-10 Thread Teri Radichel
Hi, I have a font I want to use in an application that has a ttf extension and when I open it up it says it is from Adobe. It seems to work fine in word processing applications on Windows 2000. However no matter which way I change the encoding the font does not work in itext. I ran some code

Re: [iText-questions] OT: java pdf reader

2003-07-10 Thread Roberto Cipollini
ok. thanks!!! - Original Message - From: Mihnea Galeteanu [EMAIL PROTECTED] To: Roberto Cipollini [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 5:19 PM Subject: RE: [iText-questions] OT: java pdf reader I use JPedal...one thing i modified on jpedal was to add functionality to display

[iText-questions] Component borders do not show up in pdf file

2003-07-10 Thread Nabil Daoud
Hi, I'm trying to export a JPanel to a pdf file using the Graphics2D object which can be obtained as: PdfContentByte cb = writer.getDirectContent(); PdfTemplate tp = cb.createTemplate(w, h); Graphics2D g = tp.createGraphics(w, h, mapper); when I print the JPanel myPanel.print(g); or

[iText-questions] Setting security in the pdf document

2003-07-10 Thread David Thielen
Hi; How do I set the security in the pdf document (can print, can copy, etc.)? thanks - dave

[iText-questions] Setting security in the pdf document - Part II

2003-07-10 Thread David Thielen
Hi; Am I correct in assuming that setEncryption does 2 things: 1) Sets the user password 2) Sets the open permissions But both are locked by the owner password. thanks - dave - Original Message - From: Cezar FLOROIU To: David Thielen ; [EMAIL PROTECTED] Sent:

Re: [iText-questions] Setting security in the pdf document

2003-07-10 Thread Leonard Rosenthol
At 4:47 PM -0600 7/10/03, David Thielen wrote: How do I set the security in the pdf document (can print, can copy, etc.)? Look at the encrypt_pdf.java example. Leonard -- --- Leonard Rosenthol

[iText-questions] Lloyd Bergman/Towers Perrin is out of the office.

2003-07-10 Thread Lloyd Bergman
I will be out of the office starting 07/10/2003 and will not return until 07/21/2003. I will respond to your message when I return. --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread SATHISH Sreedharan
Hi Leonard, Thanks a lot for ur help. Can you point me to some site where I can find some more documentation on this as this seems to be very interesting and I wud like to know more abt this topic. Thanks for your time Sathish -Original Message- From: Leonard Rosenthol [mailto:[EMAIL

RE: [iText-questions] Javascript and PDF Anchor

2003-07-10 Thread SATHISH Sreedharan
Hi Leonard, Thanks a lot for your timely help.It has worked for me. Lots and Lots of Thanks again Sathish -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:25 PM To: SATHISH Sreedharan; [EMAIL PROTECTED] Subject: RE: [iText-questions]

Re: [iText-questions] Event handling in outline

2003-07-10 Thread pramodh
Thanks for the reply. Actually my problem is if i select parent node in the tree,In the right pane it is showing parent node + all its children details.I want to show only the parent node details on the right pane.I here with enclose the pdf file.Please help me how to solve this problem Regards

[iText-questions] extra blank page with version 1.00

2003-07-10 Thread Dang Nguyen
Title: extra blank page with version 1.00 I just upgraded my iText to version 1.0, and the pdf that gets created contains an extra blank page before the first page. I use itext to generate pdf on-the-fly on a web server to display a report retrieved from a database. The extra blank page at