tracker issue : CF-4205349

select a category, or use search below
(searches all categories and all time range)
Title:

CF2016 Update 12 switches page width/height

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): MrSmith M. / ()

Created: 10/01/2019

Components: Document Management, PDF Generation (CFHTML2PDF)

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: CF2016 Update 12 /

Priority/Frequency: Normal /

Locale/System: / Linux

Vote Count: 0

Problem Description:
In CF2016 Update 11 the following code generates a horizontal PDF. Update 12 generates a vertical PDF.

Steps to Reproduce:
<cfset local.pageWidth  = 4.97>
<cfset local.pageHeight = 2>
<cfhtmltopdf name="local.result" orientation="landscape"
				pagetype="custom" unit="in" pagewidth="#local.pageWidth#" pageheight="#local.pageHeight#"
				margintop="0.0" marginright="0.0" marginbottom="0.0" marginleft="0.0">
aaaaaa
</cfhtmltopdf>

<cfheader name="Content-type" value="application/pdf">
<cfcontent variable="#local.result#" reset="true">


Actual Result:

Expected Result:

Any Workarounds:

Attachments:

Comments:

Hi,   We had fixed a bug in this update which takes into account if you have a portrait or a landscape PDF. Since your width is more than height, if you give height as more, it will generate a PDF with more height (in landscape mode) You might want to try to play with orientation as landscape/portrait. In case of portrait, if height is increased, it will actually increase the width of the PDF you are trying to view    Thanks, Kailash
Comment by Kailash B.
31586 | October 11, 2019 10:36:08 AM GMT