PDF Extension and CFDOCUMENT

I have a problem with PDF Expension and other versions higher than
If I update PDF extension to a version higher than, in PDFs created with CFDOCUMENT the margins set in the tag <cfdocument format = “pdf” fontembed = “yes” pagetype = “A4” orientation = “portrait” marginBottom = “1.0” marginTop = “1.0” unit = “cm”> are ignored (happens even if I set them in inches).
Only solution to avoid this I had to downgrade from to (all versions after this ignore the margins)

Apache Tomcat/9.0.31
11.0.6 (AdoptOpenJDK) 64bit
Linux (3.10.0-1062.18.1.el7.x86_64) 64bit


@Michele_Scaletta Already has a ticket for the issue LDEV-3240 cfdocument - margin doesn’t work properly with orientation.

Use orientation attribute after the margin attributes like this.
<cfdocument format = “pdf” fontembed = “yes” pagetype = “A4” marginBottom = “1.0” marginTop = “1.0” unit = “cm” orientation = “portrait”>

I hope It will work.