Skip to main content
jascomp
Known Participant
October 25, 2023
Question

cfhtmltopdf orientation not working

  • October 25, 2023
  • 3 replies
  • 4923 views

This is my code:

<cfhtmltopdf orientation="landscape">
<h3>Test Landscape Output</h3>
</cfhtmltopdf>


This is my output:

    3 replies

    dwaynea8754223
    Known Participant
    October 30, 2024

    just installed 2023 update 11 and it's still not working

    Charlie Arehart
    Braniac
    October 30, 2024

    Dwayne, did you clear the felix-cache? The steps are in the update technote, to help with other issues related to the htmltopdf package. It may help with yours. I've confirmed landscape does work after the update, a bug fix it specifically addressed as you may know.

     

    Let us know if it helps or not. 

    /Charlie (troubleshooter, carehart. org)
    BKBK
    Braniac
    November 18, 2024

    cfhtmltopdf has always worked, although it doesn't seem to render on the very first execution after a server reboot.

     

    here is simple test code that most closely resembles my actual code.

     

    <cfhtmltopdf marginBottom = "1" marginLeft = "0.5" marginRight = "0.5" marginTop = "2" orientation = "landscape">
      <head>
        <title>Test</title>
      </head>
      <body>
        <cfhtmltopdfitem type="header">
          <cfoutput>
            <div>
              <div>
                <h1>Header</h1>
              </div>
            </div>
          </cfoutput>
        </cfhtmltopdfitem>
        <p>This is the body of the document.</p>
        <cfhtmltopdfitem type="footer">
          <h5>Footer</h5>
        </cfhtmltopdfitem>
      </body>
    </cfhtmltopdf>

     


    @dwaynea8754223 ,

    Do you mean that you no longer have problems with cfhtmltopdf?

    jascomp
    jascompAuthor
    Known Participant
    June 17, 2024

    Eight months and 3 updates later, the problem still exists. 

    BKBK
    Braniac
    June 22, 2024
    jascomp
    jascompAuthor
    Known Participant
    October 25, 2023

    Using ColdFusion 2023 Update 4

    Charlie Arehart
    Braniac
    October 25, 2023

    I can confirm the same (and on update 5 as well, or with no updates at all). Thanks for sharing it.

     

    I have filed a bug report for this (saving you the trouble, and adding a bit more info for interested readers):

    https://tracker.adobe.com/#/view/CF-4219706

    /Charlie (troubleshooter, carehart. org)