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

cfhtmltopdf orientation not working

  • October 25, 2023
  • 3 replies
  • 4924 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
    Community Expert
    Community Expert
    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
    Community Expert
    Community Expert
    November 18, 2024

    @dwaynea8754223 wrote:

    no, not what I meant. I can run the tag, but all output is portrait.


     

    That is strange. Like you, I am on ColdFusion 2023 Update 11. When I copy and run your last code, I get the expected result (a PDF in landscape format - attached). 


    Further thoughts:

     

    • The message "Error adding PDF Service Manager" makes me think that your ColdFusion installation might have 2 PDF Service Managers on the go.
      Go to the PDF Service page of the Administrator and rule this out. If there is a second PDF Service Manager there, delete it.
    • Go to Package Manager > Available Packages in the Administrator. If there are document-related packages available for installation, install them.


        
    jascomp
    jascompAuthor
    Known Participant
    June 17, 2024

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

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

    Using ColdFusion 2023 Update 4

    Charlie Arehart
    Community Expert
    Community Expert
    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)