Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Reto Aeberli / Reto Aeberli (Reto Aeberli)
Created: 05/10/2014
Components: Document Management, PDF Generation (CFHTML2PDF)
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Win 2012 Server x64
Vote Count: 1
Problem Description:
According to the docs of cfhtmltopdfitem the default unit used for the margins are inch or if specified the value of the unit attribute. But there is no unit attribute documented on this tag and using it throws an error. According to my tests the unit from the parent tag is not used.
Steps to Reproduce:
create a file and paste the following code:
<cfhtmltopdf pagetype="a4" orientation="portrait" unit="cm" marginTop="3" marginLeft="2.5" marginRight="1" marginBottom="2" >
<cfhtmltopdfitem type="header" align="right" marginLeft="2.5" marginRight="1">
<cfoutput>#dateFormat(now(), 'dd. mmmm yyyy')#, _PAGENUMBER/_LASTPAGENUMBER</cfoutput>
</cfhtmltopdfitem>
<table width="100%"><tr><td bgcolor="silver"> </td></tr></table>
</cfhtmltopdf>
Actual Result:
The header text is not 1cm away from the right side.
Expected Result:
The header aligned with grey box from the table, 1cm away from the right side.
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3758430
External Customer Info:
External Company:
External Customer Name: Reto CENTINATED GmbH
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: