Re: [iText-questions] Landscape Mode

2004-06-04 Thread Andrew McLaughlin
Landscape mode can be achieved for most applications, thus: Document doc = new Document( PageSize.LETTER.rotate() ); doc.add( blah ); This sets up the Document object with a Letter size but rotated 90°. However, if this causes problems of conflicts with your application you can al

Re: [iText-questions] query

2004-06-04 Thread Andrew McLaughlin
Logically, shouldn't the API throw an Exception if an operation is done out of sequence? :-/ Andrew On Jun 4, 2004, at 1:04 AM, Bruno wrote: Quoting Shailendra Sinha <[EMAIL PROTECTED]>: dear sir, can tell me how can i put footer on the first page. i added footer in the document but it is not s

[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

Re: [iText-questions] itext & Tomcat

2004-05-31 Thread Andrew McLaughlin
Even without PDFOne, it can be done. I have written a few projects that compose a PDF document based on responses from JSP using Tomcat. Works real slick. My technique has evolved in to creating a Document class that extents the iText Document class. Then, I create a method called generatePDF

Re: [iText-questions] question regarding iText

2004-05-31 Thread Andrew McLaughlin
When you first create the Document object, you specify the page size. As far as I know, you cannot change the document page size at any time after that. All pages of a PDF have to be the same size. Andrew On May 31, 2004, at 6:31 AM, Madhu wrote: hai,   we are using itext api for generating the

Re: [iText-questions] How to convert word to pdf and encrypt pdf doccument

2004-05-31 Thread Andrew McLaughlin
On the Mac, just open the print dialog and press the "Save as PDF" button. As the Macintosh (like the NeXT before it) uses Postscript to draw the screen, every print dialog of every application features this button. :) Andrew On May 29, 2004, at 8:15 PM, Leonard Rosenthol wrote: At 07:13 AM

Re: [iText-questions] non-printable table (or watermark)

2004-05-26 Thread Andrew McLaughlin
Perhaps you can create the PDF document with two pages? The first one could include a fully formatted invoice with all the graphic bells and whistles, then the second page could be just the data portion. It might be a little clunky, but at least the user would be able to print the second page o

Re: [iText-questions] Losing Accessibility Tags

2004-05-25 Thread Andrew McLaughlin
If you're using PdfWriter to obtain the PDF pages, then things like that are lost. If you use PdfCopy as an alternateive to PdfWriter, if will retain most of that, but you will not be able to annotate the pages. If there is any other way to do this, I have no idea... :) Andrew On May 25, 2004,

Re: [iText-questions] Splitting PDF files problem

2004-05-25 Thread Andrew McLaughlin
What headers do you send in the response? Andrew On May 25, 2004, at 4:38 AM, Rubio, Carlos wrote: Dear all, We have created one application that gets a big PDF file and split this into several small PDF files (1 page each one) using the example that is in the iText tutorial. It seems to be work

Re: [iText-questions] Prompt is possible in iText

2004-05-24 Thread Andrew McLaughlin
You want to prompt the user using some other channel. Since you're coding in Java, use either Swing (if it is a desktop application) or something like JSP (if it is a web application). What type of application is it? Andrew On May 24, 2004, at 6:59 AM, Dharmendra Sharma wrote: Hi All,   Is ther

Re: [iText-questions] Embedded links lost

2004-05-21 Thread Andrew McLaughlin
Has anyone been able to process a pdf document using PdfCopy that had embedded links, that worked? Andrew On May 21, 2004, at 5:16 AM, Paulo Soares wrote: PdfCopy can only be used to assemble pages not to add new content to a page. If you want to add new content you'll have to use PdfStamper. Ver

Re: [iText-questions] Embedded links lost

2004-05-20 Thread Andrew McLaughlin
ep the links. Best Regards, Paulo Soares -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew McLaughlin Sent: Thursday, May 20, 2004 12:02 AM To: [EMAIL PROTECTED] Subject: [iText-questions] Embedded links lost Hi all, I am working on a project that wi

[iText-questions] Embedded links lost

2004-05-19 Thread Andrew McLaughlin
Hi all, I am working on a project that will dynamically built a pdf document from smaller pdf documents. These other documents also have embedded html links which work fine on their own. However, when I complete the integration using iText, the links no longer work. Am I doing something wrong?

Re: [iText-questions] Template cutting off bottom of text . . .

2003-08-04 Thread Andrew McLaughlin
Perhaps you're rendering the page number info too close to the bottom margin? Or there is another white object just below? Andrew On Thursday, July 31, 2003, at 03:12 PM, Tom Kofford wrote: I am using a template in order to print "Page x of y" on every page. I am using the Chap1201.java ex

[iText-questions] Length of text?

2003-03-25 Thread Andrew McLaughlin
Here's a fun one. I am using PdfContentByte to compose the entire PDF now and things are back on track. However, I find there are some things I need to right justify. How do I calculate the length, in pixels, for a string of text, in a certain font, point size etc? Is there a seperate font metr

Re: [iText-questions] PDF's as Templates

2003-03-21 Thread Andrew McLaughlin
. This too would save a TON of unecessary debugging time... :) Andrew On Friday, March 21, 2003, at 05:55 PM, Paulo Soares wrote: Yes, I can throw an exception if there's no listener associated. Best Regards, Paulo Soares - Original Message - From: "Andrew McLaughlin&quo

Re: [iText-questions] PDF's as Templates

2003-03-21 Thread Andrew McLaughlin
Ack!! That fixed it. Can you throw an exception if the writer is created after the document is open?! These timing issues are real development time burners... :( Andrew On Friday, March 21, 2003, at 04:10 PM, Paulo Soares wrote: I was worried that I had goofed up somewhere when I introduced t

Re: [iText-questions] PDF's as Templates

2003-03-21 Thread Andrew McLaughlin
tem.err.println( "template2=" + String.valueOf(template2)); System.err.println( "template3=" + String.valueOf(template3)); just for kicks? -Matt --- Andrew McLaughlin <[EMAIL PROTECTED]> wrote: The PDF's, all three, are definitely not null as I can view them elsewher

Re: [iText-questions] PDF's as Templates

2003-03-21 Thread Andrew McLaughlin
de looks good to me; however judging from the stack trace I would say that whichever imported page you tried to add at line 36 of your code was null. If so, your problem is not here, but with that PDF. -Matt --- Andrew McLaughlin <[EMAIL PROTECTED]> wrote: Okay, I've been taking a stab a

[iText-questions] PDF's as Templates

2003-03-21 Thread Andrew McLaughlin
Okay, I've been taking a stab at trying to make the templated PDF work. However, I'm running into resistance. I'm not completely certain that I have set it up properly as I am getting a NullPointerException (indicated below). Can someone take a gander at this code fragment? Docum

Re: [iText-questions] PDF Development

2003-03-18 Thread Andrew McLaughlin
Can I then bring this PDF into an iText document and then add my dynamic stuff on top of it? Are there code samples of this in the tutorial (that I obviously overlooked)? :) Thanks, Andrew On Tuesday, March 18, 2003, at 07:18 AM, Leonard Rosenthol wrote: At 2:41 PM -0800 3/17/03, Andrew McLau

Re: [iText-questions] PDF Development

2003-03-17 Thread Andrew McLaughlin
can be described in simple but precise high level terms that a program would then translate to the iText components. Best Regards, Paulo Soares - Original Message - From: "Leonard Rosenthol" <[EMAIL PROTECTED]> To: "Andrew McLaughlin" <[EMAIL PROTECTED]>; &l

[iText-questions] PDF Development

2003-03-17 Thread Andrew McLaughlin
Hi Guys, In my efforts to evaluate iText as a PDF API, I'm finding that going from a creative design (like from an Art Director) to Java code, and making it look even remotely close, is an arduous process. Is anyone else having to deal with issues like this? Or is everyone else just using iTex

Re: [iText-questions] Layers?

2003-03-17 Thread Andrew McLaughlin
I can kinda see how that could be used for paragraphs of text, but it loses out on support for images and graphics. What I really want to accomplish is a simulation of what the tag does in HTML, as I KNOW this will become a requirement as this project proceeds. So far, I have been experimenti

Re: [iText-questions] Layers?

2003-03-14 Thread Andrew McLaughlin
at kind of layout do you need; you can do everything but it takes some work. Best Regards, Paulo Soares -Original Message- From: Andrew McLaughlin [SMTP:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 18:46 To: [EMAIL PROTECTED] Subject:[iText-questions] Layers? iText is gre

[iText-questions] Layers?

2003-03-14 Thread Andrew McLaughlin
iText is great. I've like how it allows me to generate a report in PDF format from a Java application. Very convenient. However, I'm now running into a small dilemma. Management wants more precise control over placement if items on the page, rather than just depending on the luck of text flow o