document = new Document(
new com.lowagie.text.Rectangle( 0,
0,
(float) rtfDoc.getHeader().getPaperWidth() / 20.0f,
(float) rtfDoc.getHeader().getPaperHeight() / 20.0f ),
(float) rtfDoc.getHeader().getLeftMargin() / 20.0f,
(float) rtfDoc.getHeader().getRightMargin() / 20.0f,
(float) rtfDoc.getHeader().getTopMargin() / 20.0f,
(float) rtfDoc.getHeader().getBottomMargin() / 20.0f );
(float) rtfDoc.getHeader().getPaperWidth() / 20.0f,
(float) rtfDoc.getHeader().getPaperHeight() / 20.0f ),
(float) rtfDoc.getHeader().getLeftMargin() / 20.0f,
(float) rtfDoc.getHeader().getRightMargin() / 20.0f,
(float) rtfDoc.getHeader().getTopMargin() / 20.0f,
(float) rtfDoc.getHeader().getBottomMargin() / 20.0f );
// Create a writer that
listens to the document and direct a PDF-stream to a
file
writer = PdfWriter.getInstance(document, file );
writer = PdfWriter.getInstance(document, file );
// put our info in the
doc
document.addAuthor( "Windward Reports " + ProcessReport.VERSION_MAJOR +
"." + ProcessReport.VERSION_MINOR + "." + ProcessReport.VERSION_RELEASE +
" (http://www.windwardreports.com)");
document.addHeader( "WindwardReports.system", "jvm: " + System.getProperty( "java.specification.version" ) +
", OS: " + System.getProperty( "os.name" ) + ", ver: " + System.getProperty( "os.version" ) );
document.addHeader( "WindwardReports.user", ProcessReport.getProperty( "license.name" ));
document.addAuthor( "Windward Reports " + ProcessReport.VERSION_MAJOR +
"." + ProcessReport.VERSION_MINOR + "." + ProcessReport.VERSION_RELEASE +
" (http://www.windwardreports.com)");
document.addHeader( "WindwardReports.system", "jvm: " + System.getProperty( "java.specification.version" ) +
", OS: " + System.getProperty( "os.name" ) + ", ver: " + System.getProperty( "os.version" ) );
document.addHeader( "WindwardReports.user", ProcessReport.getProperty( "license.name" ));
// Open the
document
document.open();
document.open();
ProcessReport.VERSION_MAJOR/MINOR/RELEASE
are static final ints.
thanks - dave
----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>; "itext"
<[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 2:48 PM
Subject: Re: [iText-questions] Header info - can do
without unicode?
> the code and the PDF.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "David Thielen" <[EMAIL PROTECTED]>
> To: "Paulo Soares" <[EMAIL PROTECTED]>; "Leonard Rosenthol"
> <[EMAIL PROTECTED]>; "itext" <[EMAIL PROTECTED]>
> Sent: Monday, March 17, 2003 20:14
> Subject: Re: [iText-questions] Header info - can do without unicode?
>
>
> > I'm doing real simple ascii text something like "version: 1.3". Why
> > would
> > that go to unicode? And is there anything I can do to have it not be
> > written
> > as unicode?
> >
> > thanks - dave
> >
> >
> > ----- Original Message -----
> > From: "Paulo Soares" <[EMAIL PROTECTED]>
> > To: "Leonard Rosenthol" <[EMAIL PROTECTED]>; "David Thielen"
> > <[EMAIL PROTECTED]>; "itext" <[EMAIL PROTECTED]>
> > Sent: Monday, March 17, 2003 12:52 PM
> > Subject: Re: [iText-questions] Header info - can do without unicode?
> >
> >
> > > The last version only places them in Unicode if any character is
> > outside
> > > PdfDocEncoding.
> > >
> > > Best Regards,
> > > Paulo Soares
> > >
> > > ----- Original Message -----
> > > From: "Leonard Rosenthol" <[EMAIL PROTECTED]>
> > > To: "David Thielen" <[EMAIL PROTECTED]>; "itext"
> > > <[EMAIL PROTECTED]>
> > > Sent: Monday, March 17, 2003 18:57
> > > Subject: Re: [iText-questions] Header info - can do without unicode?
> > >
> > >
> > > > At 11:37 AM -0700 3/17/03, David Thielen wrote:
> > > > >When I write the author and some private header fields, it puts
> > them
> > > > >in the pdf file as unicode. But the CreationDate and Author are in
> > > > >as ascii text. Is there any way I can get the headers I write to go
> > > > >as ascii?
> > > > >
> > > >
> > > > Since the PDF spec says that those fields can be either
> > > > PDDocEncoding OR Unicode, placing them into Unicode is completely
> > > > valid (though admittedly wastes space).
> > > >
> > > >
> > > > Leonard
> > > > --
> > > >
> > ------------------------------------------------------------------------
> > > > ---
> > > > Leonard Rosenthol
> > > > <mailto:[EMAIL PROTECTED]>
> > > > Chief Technical Officer
> > <http://www.pdfsages.com>
> > > > PDF Sages, Inc. 215-629-3700 (voice)
> > > > 215-629-0789 (fax)
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by:Crypto Challenge is now open!
> > > > Get cracking and register here for some mind boggling fun and
> > > > the chance of winning an Apple iPod:
> > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > > > _______________________________________________
> > > > iText-questions mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by:Crypto Challenge is now open!
> > > Get cracking and register here for some mind boggling fun and
> > > the chance of winning an Apple iPod:
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> >
>
>
