Cfdocument ignoring page size

I am using Lucee having upgraded from to solve an FTP issue.

I now have a new problem with code that used to work fine and is now broken. I am using the following code to print labels in a warehouse.

<cfdocument format="PDF" unit="in" pagewidth="4" pageheight="6" orientation="landscape" marginbottom="0.1" margintop="0.1" marginleft="0.1" marginright="0.1">
	<style type="text/css">
	p {	font-size: 72pt;
		font-family: Verdana, Arial, Helvetica, sans-serif;
		font-weight: bold;
		padding-top: 3.8cm;
		text-align: center;

Unfortunately after the upgrade the page size is being ignored and whatever units I use I always get US Letter size pages.

Can anyone suggest a way around this?


Could you please add a attribute pagetype = “custom” with your above code. Then only, you can able to manipulate a page width and height.

1 Like

That has fixed it, Thanks.

It never used to be required, do we know why this behavior has changed?