Copy link to clipboard
Copied
This is my code:
<cfhtmltopdf orientation="landscape">
<h3>Test Landscape Output</h3>
</cfhtmltopdf>
This is my output:
Copy link to clipboard
Copied
Do you mean that you no longer have problems with cfhtmltopdf?
Copy link to clipboard
Copied
no, not what I meant. I can run the tag, but all output is portrait.
Copy link to clipboard
Copied
@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).
Copy link to clipboard
Copied
Further thoughts:
Copy link to clipboard
Copied
I have pretty much the same problem that Dwayne has on one of my servers. After Update 11, clear felix cache and restart both CF service and cf addon service, it still only generates in portrait using cfhtmltopdf. Our staging server works perfectly fine and I did not need to clear the felix cache on that server. I just updated to update 11 in the cfadmin and boom, it worked on staging. But our production doesn't generate in landscape; only portrait.
I even had the same issue with error adding PDF service manager and then restarted and it came back.
I've compared the update version and htmltopdf package version between both servers and they are identical. Both using same version JVM. I can't make any sense to why it works on one server but not the other.
Copy link to clipboard
Copied
I even had the same issue with error adding PDF service manager and then restarted and it came back.
By @AdeptDeveloper
You should have updated the existing PDF Service Manager, instead of adding a new PDF Service Manager. See my previous post. An attempt to add a new service manager might result in settings that differ between the servers.
Copy link to clipboard
Copied
That's what I did the first time. Clicked the Edit icon next to the PDF service and the form populated with the details. Then clicked Update and instead of updating, it removed the PDF service altogether.
So then I clicked Add an added it back, however, it gave the Error adding PDF Service. I tried 3-4 times to add it. Finally, just restarted CF and the service was there again. But still only doing portrait not landscape.
Copy link to clipboard
Copied
I got a patch for this by email from Adobe on Thursday. I haven't installed it. I will asap and let ya'll know how it goes. hf202300-4224136
Copy link to clipboard
Copied
I had the same exact problem and it sounds like you installed through add-on services too
Copy link to clipboard
Copied
Our hosting provider installed CF, so I'm not sure what steps they followed during install.
Copy link to clipboard
Copied
Then clicked Update and instead of updating, it removed the PDF service altogether.
By @AdeptDeveloper
Removing the last PDF Service Manager? That points to a serious problem right there. I expect ColdFusion to hang on to at least one PDF Service Manager, and to prevent you from deleting the last one.
Those retries you did might have upset the settings. I would therefore suggest a reset of the PDF engine.
Try the following steps and see if they help:
<cfhtmltopdf orientation="landscape">
<h3>Test Landscape Output</h3>
</cfhtmltopdf>​