Status/Resolution/Reason: Closed/Withdrawn/ThirdParty
Reporter/Name(from Bugbase): Alan Bullpitt / Alan Bullpitt (Alan Bullpitt)
Created: 07/18/2014
Components: Document Management, PDF Generation (CFHTML2PDF)
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description: Trying to create a pdf with cfhtmltopdf which contains 2 rows of divs which have a css setting of position:relative; . Between each row there needs to be a page break created with <cfhtmltopdfitem type="pagebreak" />.
This creates the page break and adds the second row to the second page, however the second row is still included on the first page (so it is now duplicated). If you remove the position:relative it fixes the issue but breaks my formatting.
Steps to Reproduce:
Create open and closing cfhtmltopdf tags.
Create 2 divs with position:relative in the style. Insert a <cfhtmltopdfitem type="pagebreak" /> between them and add this inside the cfhtmltopdf tags.
Run Page.
Actual Result:
3 Divs are displayed in the output. 2 on the first page and 1 on the second.
Expected Result:
2 Divs to be displayed. 1 div on each page.
Any Workarounds:
Remove position:relative from the div. This breaks the formatting of elements inside this div though.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3791543
External Customer Info:
External Company:
External Customer Name: Abullpitt
External Customer Email:
External Test Config: My Hardware and Environment details:
System Information
Server Details
Server Product ColdFusion
Version 11,0,0,289822
Edition Enterprise (Trial)
Operating System Windows 7
OS Version 6.1
Adobe Driver Version 5.1.1 (Build 0001)
JVM Details
Java Version 1.7.0_51
Java Vendor Oracle Corporation
Java Vendor URL http://java.oracle.com/
Java Home C:\ColdFusion11\jre
Java File Encoding Cp1252
Java Default Locale en_US
File Separator \
Path Separator ;
Line Separator Chr(13)
User Name WS-T3500-02$
User Home C:\
User Dir C:\ColdFusion11\cfusion\bin
Java VM Specification Version 1.7
Java VM Specification Vendor Oracle Corporation
Java VM Specification Name Java Virtual Machine Specification
Java VM Version 24.51-b03
Java VM Vendor Oracle Corporation
Java VM Name Java HotSpot(TM) 64-Bit Server VM
Java Specification Version 1.7
Java Specification Vendor Oracle Corporation
Java Specification Name Java Platform API Specification
Java Class Version 51.0
Attachments:
- July 19, 2014 00:00:00: 1_htmltopdf_workingexample.cfm
Comments: