Hello Joseph,
sorry it took me a while to find the files because I reinstalled my machine
and haven't had them on till now. Here are two java files and the pdf
output. Haven't done anything since. But this might gives you an idea of how
to use the absolute positioning.
I cc the iText list, since I couldn't find the old thread in the searchable
archive.
HTH

Gunter

----------------------
air-conditioned environment - don't open windows !

----------------------
Gunter Sammet
SAMMYSOLUTIONS.COM LTD
----------------------
2102-12 AVE NW
Calgary/AB, T2N 4X1, CANADA
Ph./Fax: +1 (403) 210-2603,
Cell:    +1 (403) 830-0705
E-mail:  [EMAIL PROTECTED]
Web:     www.SammySolutions.com

-----Original Message-----
From: jrajkumar [mailto:jrajkumar]On Behalf Of Joseph Rajkumar
Sent: May 2, 2002 8:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [iText-questions] Mailing Labels


Hi Gunter

        Thanks for your email and the information.
Unfortunately all the data is on a Postgresql server
on a system on the lan and secretaries want to be
able to connect to there server and though an interface
select only addresses for a certain state and generate
the rtf file and save it on their local machine and
print the address labels.

        What I have done so far, is using Tomcat and
using a servlet which talks to Postgres, I have given
them an interface so they can select the state they want
to choose and then the servlet talks to the postgresDB
and queries and using iText formats and creates an rtf
file, which they could down load and save to their local
disk and then view it using word and print.

        I have formatted the addresses using Tables and Cells,
but I am not able to specify the exact size of the CELL I want
because the address labels on the paper come as stickable
pieces on a single page which the secretaries can pull out
and put them on the envelope.

        So I need the CELL to be exactly some known specific
size.

        Tomcat/Servlet/talking to postgres, getting the exact
data that I want, formatting it using iText and generating
an rtf and viewing them using StarOffice, all of this works
perfectly. But I need to specify the cell size exactly and also
specify the font for the text in the cell.

        Any help would be ever so gratefully appreciated.

Thanks
Joseph Rajkumar
PS: I am 100% Unix pro and I am use windows just for survival.

"[EMAIL PROTECTED]" wrote:
>
> If you want to print out in Word, wouldn't you be better up to import it
> straight into Word through a mail merge? You could connect through an ODBC
> datasource and have them available in Word.
> For myself, I haven't worked with rtf but I played a little bit around
with
> absolute positioning and printing into pdf as labels. Worked fine but
> haven't touched it in a while.
> HTH
>
> Gunter

Attachment: Chap1007new.pdf
Description: Adobe PDF document

Attachment: Chap1007new.java
Description: Binary data

Attachment: Chap1007.pdf
Description: Adobe PDF document

Attachment: Chap1007.java
Description: Binary data

Reply via email to