[iText-questions] CMYK graphics using the java.awt.Graphics2D-object

2004-06-02 Thread Guillaume Allée
Hi all, I m trying to write black text on a PDF using java.awt.Graphics2D and itext in CYMK. I have seen the docs on http://www.lowagie.com/iText/tutorial/ch10.html#graphics2D and run the example Chap10_Graphics2D.java (http://www.lowagie.com/iText/examples/Chap10_Graphics2D.java) but the colo

[iText-questions] Embedded Hyperlinks

2004-06-02 Thread Andrew McLaughlin
Okay, With a the great assistance of Paulo, I have the software working properly. However there is a problem which appears to be a bug. Here's my implementation: copy = new PdfCopy ( this, outputStream ); this.open (); contentByte = null; boolean fi

[iText-questions] Struts Framework and iText

2004-06-02 Thread Woodchuck
Hello, I have tried many times tweaking different things but I keep getting a blank page instead of the PDF file. Does anyone know how to get iText working within the Struts framework? In my Action class execute() function I do this: - create the PDF file as a ByteArrayOutputStream - flush th

[iText-questions] CMYK graphics using the java.awt.Graphics2D-object

2004-06-02 Thread Guillaume Allée
Hi all, I m trying to write black text on a PDF using java.awt.Graphics2D and itext in CYMK. I have seen the docs on http://www.lowagie.com/iText/tutorial/ch10.html#graphics2D and run the example Chap10_Graphics2D.java (http://www.lowagie.com/iText/examples/Chap10_Graphics2D.java) but the colo

[iText-questions] writing document properties

2004-06-02 Thread Johannes Stuermer
Is it possible to populate the document properties of a PDF file if the PDF is only in memory? I am using iText with FOP, which saves the generated PDF to a stream (ByteArrayOutputStream outbuffer) and passed it on to iText via a PdfReader before it is Encrypted. Sample code below.    

[iText-questions] Re: iText within Struts framework

2004-06-02 Thread Woodchuck
Woodchuck yahoo.com> writes: > > I've followed the tutorial instructions and other > instructions elsewhere but I'm always getting a blank > page and yes, I am calling the > response.setContentLength().. > nevermind, it finally worked when i added these 3 lines: response.setHeader("Expir

[iText-questions] iText within Struts framework

2004-06-02 Thread Woodchuck
I've followed the tutorial instructions and other instructions elsewhere but I'm always getting a blank page and yes, I am calling the response.setContentLength().. Is there anything wrong or missing in my Action class's execute(): public ActionForward execute( ActionMapping m

RE: [iText-questions] READ Encryption settings?

2004-06-02 Thread Paulo Soares
PdfReader.getPermissions() > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Katie Portwin > Sent: Wednesday, June 02, 2004 5:27 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] READ Encryption settings? > > Hi, > > I want to KEEP whateve

[iText-questions] READ Encryption settings?

2004-06-02 Thread Katie Portwin
Hi, I want to KEEP whatever encryption settings (allow printing, etc) are on an original PDF, when I grab some of its pages and write them to a new document. I understand how to use PdfEncryptor.encrypt to SET encryption. ..But can I do something like GET the encryption flags on a PdfReader so

RE: [iText-questions] CMYK graphics using the java.awt.Graphics2D-object

2004-06-02 Thread xYomguIx
Hi again, A few trial and error, here are my result from the community : - Color created from a CMYK java.awt.color.ColorSpace does not work - Color with type com.lowagie.text.pdf.CMYKColor works. Conclusion : to do CMYK graphics using the java.awt.Graphics2D-object in itext use

RE: [iText-questions] CMYK graphics using the java.awt.Graphics2D-object

2004-06-02 Thread xYomguIx
Hi, Will it work if the java.awt.Color is created from a CMYK Colorspace (eg. color#getType() returns 9=java.awt.color.ColorSpace#TYPE_CMYK ) ? I try it but it does not seem to work :) BR Guillaume Le mer 02/06/2004 Ã 15:35, Paulo Soares a Ãcrit : > The Graphics2D in iText only supports R

RE: [iText-questions] Background non printable image

2004-06-02 Thread Leonard Rosenthol
At 10:00 AM 6/2/2004, Paulo Soares wrote: Thank you for the assistance. I'll probably only have time in July to see this but from what I've glanced the real problem is what kind what interface is exposed to the users so that they understand and use it without being PDF gurus. Agreed.

RE: [iText-questions] Background non printable image

2004-06-02 Thread Paulo Soares
Another thing. Are there any examples of PDFs with OCG? Best Regards, Paulo Soares > -Original Message- > From: Paulo Soares > Sent: Wednesday, June 02, 2004 3:00 PM > To: 'Leonard Rosenthol'; Ignacio Galmarino; Murph; > [EMAIL PROTECTED] > Subject: RE: [iText-questions] Background non

RE: [iText-questions] Background non printable image

2004-06-02 Thread Paulo Soares
Thank you for the assistance. I'll probably only have time in July to see this but from what I've glanced the real problem is what kind what interface is exposed to the users so that they understand and use it without being PDF gurus. Best Regards, Paulo Soares > -Original Message- > From

RE: [iText-questions] Nullpointer exception together with JasperReports

2004-06-02 Thread Paulo Soares
The method PdfDocument.fixOutlines() disappeared in Jul 15, 2002 and was never seen since then. You have multiple iText versions in your classpath. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Henrik Skafsgaard Lar

RE: [iText-questions] Background non printable image

2004-06-02 Thread Leonard Rosenthol
At 09:28 AM 6/2/2004, Paulo Soares wrote: I'm tempted to add support for OCG. I'll try to find time to do it. It's not difficult, but it is tricky - as you have to put pieces in a variety of places.../Catalog, /Page/Resources and even inside the content stream(s) themselves. If y

RE: [iText-questions] CMYK graphics using the java.awt.Graphics2D-object

2004-06-02 Thread Paulo Soares
The Graphics2D in iText only supports RGB. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of xYomguIx > Sent: Wednesday, June 02, 2004 2:26 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] CMYK graphics using the

[iText-questions] XMP at what level?

2004-06-02 Thread Roger Misteli
Hiyas I can currently write XML metadata to the PDF and its stored nicely. However, the Adobe XMP specification requires a specific location to write the XMP data to. Does anyone know how I can write it to the level required? This here is from the specification, maybe that helps: PDF For PDF file

RE: [iText-questions] Guttering in iText

2004-06-02 Thread Paulo Soares
That's not supported but it's a trivial modification. I'll add in the next release. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chris Boulter > Sent: Tuesday, June 01, 2004 4:46 PM > To: [EMAIL PROTECTED] > Subject

RE: [iText-questions] Background non printable image

2004-06-02 Thread Paulo Soares
I'm tempted to add support for OCG. I'll try to find time to do it. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Leonard Rosenthol > Sent: Wednesday, June 02, 2004 1:48 AM > To: Ignacio Galmarino; Murph; [EMAIL PRO

[iText-questions] CMYK graphics using the java.awt.Graphics2D-object

2004-06-02 Thread xYomguIx
Hi all, I m trying to write black text on a PDF using java.awt.Graphics2D and itext in CYMK. I have seen the docs on http://www.lowagie.com/iText/tutorial/ch10.html#graphics2D and run the example Chap10_Graphics2D.java (http://www.lowagie.com/iText/examples/Chap10_Graphics2D.java) but the colo

[iText-questions] Nullpointer exception together with JasperReports

2004-06-02 Thread Henrik Skafsgaard Larsen
Hello, I recently upgraded JasperReports to v. 0.53 and Itext to 1.02b, created a report, compiled it but got the following error: ExceptionConverter: java.lang.NullPointerException ExceptionConverter: java.lang.NullPointerException at com.lowagie.text.pdf.PdfDocument.fixOutlines(PdfDocument.

[iText-questions] getting error with header

2004-06-02 Thread Sandy . Soesilo
halloo.. I'm trying to run the XML -> PDF formating based on the example Chap0702, but everytime I compile it, it shows following error messages ; java.net.UnknownHostException: itext.sourceforge.net at java.net.InetAddress.getAllByName0(InetAddress.java:585) at java.net.InetAd

Re: [iText-questions] RTF File generated by ITEXT

2004-06-02 Thread Mohamed Ennassiri
          Yes, and the result is the same. The image is not displayed too.           The RTF file produced by Word after saving is bigger than the same file produced by iText.           After analyzing the two RTF files, I found differences in the image data ...           Regards,           Mo

Re: [iText-questions] Printing A Table With No Borders

2004-06-02 Thread Bruno
Quoting Murph <[EMAIL PROTECTED]>: > 1.) Is it possible to create a table without any visible borders? You have set the Table border to NO_BORDER, but you have to do the same for each Cell (or for the default Cell). > 2.) I would like to use the default, fixed-width font Courier. When I use it >