Skip to main content
Participant
August 3, 2020
Question

PDF pagesize issue

  • August 3, 2020
  • 1 reply
  • 239 views

Hi all, I have a problem generating pdf files.

I use Coldfusion 2016 update 11 and <cfdocument format="PDF"> to generate a pdf document.

 

If I set pageheight to 2.5 centimeters, I got this error:

The valid size must be equal to or greater than 2 inches (5.1 centimeters).

 

There are some limits in pagesize?

 

Thank you very much

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    August 4, 2020

    In cfdocument the default pageType is "letter". You get an error because you set a pageHeight of 2.5 cm to the Letter pageType. So, use the attribute pageType="custom".

    Anyway, do you really want to have a PDF document with such a small page height?

    ilgolemAuthor
    Participant
    August 4, 2020

    I already used pagetype="custom" with pagewidth and pageheight, but I got the same error.

    I set this size because I need to generate labels to print with Dymo LabelWriter 450.