This iText stuff has got my interested peeked and I am going trough some of the 
Java examples on the iText web site.

What is this line doing?  And how do I rewrite it in CF?

BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, 
BaseFont.NOT_EMBEDDED);


If you want to see it used in it's original context look here:
http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/text/Text.java


Here is how I have translated some of the lines of code in CF, but you will 
notice BaseFont is never defined and I don’t know how to...

<cfset bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, 
BaseFont.NOT_EMBEDDED)>
<cfset cb.setFontAndSize(bf, 12)>
<cfset text = "Sample text for alignment">
<cfset cb.showTextAligned(PdfContentByte.ALIGN_CENTER, text + " Center", 250, 
700, 0)>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242626
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to