Loathe wrote:
I've got it working, now I need to figure out how to do formatting and
alignment.
iText is sometimes a bit too atomic when it comes to formatting (the cfteam did
a great job taking much of the sweat out of using iText) but every object has
alignment properties:
Bit by bit it's coming together for sure.
While I've got your attention :)
I'm getting some weird behavior. it seems to be producing a question
mark (?) at weird intervals and I can't tell why.
Also, the actual text of the document is produced from html entered
through
Loathe wrote:
I'm getting some weird behavior. it seems to be producing a question
mark (?) at weird intervals and I can't tell why.
might be an encoding issue, using any special chars, etc.? anything copy/pasted
from word doc? are these showing up if you simply dump the data out to the
By jove I think I've got it :)
http://pastebin.com/mb49fe19
I've rewritten it several times now, simplifying the code until I think
I have it down to just what I need and it's working just how I want it.
Now, I need to figure out the body of this damned thing and I'm there.
Paul Hastings
All of these questions are in reference to creating RTF docs using iText
and RtfWriter2 in ColdFusion called with the javaLoader.cfc
1. How do I create an 8.5 x 11 page?
2. How do I have a 1 margin?
3. How do I create a header that actually displays in the page?
4. How do I add page
7:24 AM
To: CF-Talk
Subject: More iText RTF Questions
All of these questions are in reference to creating RTF docs using iText
and RtfWriter2 in ColdFusion called with the javaLoader.cfc
1. How do I create an 8.5 x 11 page?
2. How do I have a 1 margin?
3. How do I create a header
to write a series of
tiff images to a PDF), but it should show you how to use iText with CF!
http://pastebin.com/m7187bf8d
Chris Peterson
-Original Message-
From: Loathe [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 7:24 AM
To: CF-Talk
Subject: More iText RTF Questions
Loathe wrote:
1. How do I create an 8.5 x 11 page?
pageSize=createObject(java, com.lowagie.text.PageSize).init();
doc=createObject(java,com.lowagie.text.Document).init(pageSize.LETTER,0,0,0,0);
2. How do I have a 1 margin?
the 0,0,0,0 bit above are the margins in points. 1=72pt.
3. How
Page events don't work with RTF creation, as the client renders the
document when it is opened.
That being said there is a footerheader object as part of the rtf
writer. I called it, it isn't throwing an error, and I can see my text
in the document when opened in notepad, but not in word.
Loathe wrote:
That being said there is a footerheader object as part of the rtf
writer. I called it, it isn't throwing an error, and I can see my text
in the document when opened in notepad, but not in word.
post your code.
btw cfsearching's not my blog.
besides that blog, i recommend
http://pastebin.com/m635a3bd4
I've got it working, now I need to figure out how to do formatting and
alignment.
Still working out page numbers
Paul Hastings wrote:
Loathe wrote:
That being said there is a footerheader object as part of the rtf
writer. I called it, it isn't throwing an
11 matches
Mail list logo