[iText-questions] how to set document properties (from archive thread post)

2005-01-13 Thread Woodchuck
bump. can anyone help on this? --- Woodchuck <[EMAIL PROTECTED]> wrote: > Date: Wed, 12 Jan 2005 08:38:12 -0800 (PST) > From: Woodchuck <[EMAIL PROTECTED]> > Subject: iText: how to set document properties (from archive thread > post) > To: itext > > hihi all,

[iText-questions] iText: how to set document properties (from archive thread post)

2005-01-12 Thread Woodchuck
close(); in the end, i just want to be able to set the document property values for things like title, author, subject, etc., so that they are seen when right-clicking on the pdf file or viewing them from within Acrobat reader (File/Document Properties). any help is much appreciated! please and

[iText-questions] PdfEncryptor

2004-06-18 Thread Woodchuck
hello, i am creating a PDF as follows: PdfReader reader = new PdfReader("certificate.pdf"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfStamper stamp = new PdfStamper(reader, baos); AcroFields form = stamp.getAcroFields(); form.setfield("field1","ABC"); stamp.setFormFlattening(t

Re: [iText-questions] Landscape Mode

2004-06-04 Thread Woodchuck
For landscape mode you can do this: Document myDoc = null; myDoc = new Document(PageSize.LETTER.rotate(), 0, 0, 0, 0); the rotate() function will make the document from Portrait (default) mode to Landscape mode. --- Daniel Rabe <[EMAIL PROTECTED]> wrote: > Hi, is it possible to create a PDF do

RE: [iText-questions] guidance requested for generating a pdf with dynamic data

2004-06-03 Thread Woodchuck
Hi Paulo, I am almost there! My final pdf file may consist of multiple pages depending on how much data is retrieved from the database. However, every page uses the same blank certificate. I think this is the correct code for handling one page: PdfReader reader = new PdfReader("certificate.p

RE: [iText-questions] Struts Framework and iText

2004-06-03 Thread Woodchuck
o correct them: > > response.setHeader("Pragma", "public"); > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of > Woodchuck > Sent: Thursday, June 03, 2004 1:21 PM > To: itext > Subject: Re: [iText-questions]

Re: [iText-questions] Struts Framework and iText

2004-06-03 Thread Woodchuck
baos.writeTo(out); > out.flush(); > ... catch block ... > > then > return null; // in ActionForward execute() > > Best Regards. > Michael. > > > - Original Message - > From: "Woodchuck" <[EMAIL PROTECTED]> > To: <[EMAI

[iText-questions] regarding Pdf security

2004-06-03 Thread Woodchuck
Hi all, After I create my pdf file, the only thing I want the user to be able to do is to print the pdf file (which is opened from my website within a browser window). Can this be achieved? I have tried using the PdfWriter.setEncryption() method, but when I specify PdfWriter.AllowPrinting it als

[iText-questions] guidance requested for generating a pdf with dynamic data

2004-06-03 Thread Woodchuck
hello all, what i want: - a certificate with database retrieved information filled in, in the form of a pdf file generated on the fly and opened into a modal browser window upon request from my website what i think i should do: - if word document of blank certificate available, convert this int

[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] 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 the

[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