Formatting tables in PDF doesn't work

Description

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>

Environment

None

Activity

Show:

Simon Goldschmidt 12 February 2020 at 02:01

There are some basic HTML formatting options missing form the new engine, for example placing a div on a page:

<cfdocument format="pdf"> <div style="position:absolute;top:100;left:100">Some text</div> <div style="position:absolute;top:200;left:200">More text</div> </cfdocument>

 

Geoff Bowers 14 August 2019 at 00:19

Probably worth noting that Flying Saucer has a different rendering engine. It’s unlikely we’ll be able to address differences in rendering behaviour to Classic mode – we can only ensure the latest Flying Saucer rendering engine is available and working as advertised.

 

Pothys - MitrahSoft 15 July 2019 at 15:11

I've checked this ticket & confirmed the issue happened from the PDF version 1.0.0.70-SNAPSHOT. If set this.pdf.type="classic" in an Application.cfc its working as expected

Details

Assignee

Reporter

Priority

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

Flag notifications