Details
Assignee
Michael OffnerMichael OffnerReporter
Pothys - MitrahSoftPothys - MitrahSoftPriority
CriticalLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Pothys - MitrahSoft
Pothys - MitrahSoftPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 2 July 2019 at 11:09
Updated 12 February 2020 at 02:01
From the earlier version of pdf-1.0.0.69-SNAPSHOT, the table created with the proper centre alignment. Here is the sample code. The workaround for the issue is, to set this.pdf.type="classic" in an Application.cfc
<cfdocument format="pdf"> <table width="100%" style="border:1px solid"> <tr><td> <table width="360" style="border:1px solid"> <tr><td style="border:1px solid">This is some text that goes in a table, which I'd like to place centrally on the page by using a style that sets margins automatically.</td></tr> </table> <tr><td> <table width="360" align="center" style="border:1px solid"> <tr><td style="border:1px solid">This is some text that goes in a table, which I'd like to place centrally on the page by using a style that sets margins automatically.</td></tr> </table> <tr><td> <table width="360" style="margin:0 auto; border:1px solid"> <tr><td style="border:1px solid">This is some text that goes in a table, which I'd like to place centrally on the page by using a style that sets margins automatically.</td></tr> </table> </table> </cfdocument>