Marc, Itext does not honor every style and convention... and I suspect input boxes would (obviously) be a problem. I would try adding an inline style block to the input block - or appending to the one that's there (style="text-align: right;")... if that fails, parse out the <input> tags and leave just the values in the table cells.
-mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -----Original Message----- From: marc -- [mailto:m...@marcbakker.com] Sent: Saturday, December 25, 2010 3:28 PM To: cf-talk Subject: pdf creation hell Hi, I create a pdf from cf-generated HTML. Part of it is a table with numbers. Most of the table cells contain <input type="text"> with text or numbers inside. I want the fields with numbers in one of the columns to be right-aligned so it is easy to see how they ad up but I am unable to do so. When I view the page (that is to be rendered as pdf) in the browser the numbers are perfectly right-aligned. But when the pdf is generated from that same html/css, the numbers are either left-aligned or centered. I use an included style sheet. The css rule I use to right-align text is "text-align:right". I use that in a style I apply to the input field in the table cells. This is my <cfdocument> tag: <cfdocument name="invoice" format="PDF" pagetype="A4" fontembed="false"> fontembed="yes" gave me the same problem. The rest of the pdf looks Ok so the pdf generator has no problem with the HTML. Just this text - align part. I use CF 9.0.1 on Mac OS X with apache 2.2 Does anyone have an idea what could be causing this? Thanks, Marc ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340275 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm