Title:
Bug 83455:(Watson Migration Closure)[ANeff] Bug for: cfdocument inserts new page at page 2If image width is more than page width then <cfdocument> is inserting a blank page at Page2
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 06/29/2010
Components: Document Management, PDF generation
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
[ANeff] Bug for: cfdocument inserts new page at page 2If image width is more than page width then <cfdocument> is inserting a blank page at Page2. Setting image width to 699 works but 700 inserts a new page.This code should only produce 4 pages. However, it produces 5 pages, by inserting a new 2nd page:<cfscript> myImage = imageNew("", 700, 5, "grayscale", "gray"); imageWrite(myImage, "myimage.png", 1, true);</cfscript><cfdocument format="pdf"><html><head></head><body style="padding:0;">Page 1<cfdocumentitem type="pagebreak" />Page 2<cfdocumentitem type="pagebreak" />Page 3<cfdocumentitem type="pagebreak" />Page 4<table> <tr> <td style="padding:1px;"><img src="myimage.png" alt="" /></td> </tr></table></body></html></cfdocument>Notes:- image width must be gte 700px- doctype has no effect- image must be wrapped in a table cell (not a div)- padding must be 0px at body, then overridden to 1+px at table cell- also reproducible on CF8, if imageWrite’s 4th parameter is removed- it doesn’t matter which page the table is located in, CF will always insert a new page 2Related thread: https://prerelease.adobe.com/r/?39b9fd0b7d4e438786a024434e9fc4a8
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041720
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: 3D1D17B03C844EBF992001AC
External Test Config: 06/29/2010
Attachments:
Comments: