MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to save HTMLViewer to PDF with landscape orientation?
Feedback.

Answer: You can use NSPrintInfoMBS to change the options for PrintToPDFFile function.
Example:
// make it landscape
dim n as NSPrintInfoMBS = NSPrintInfoMBS.sharedPrintInfo
n.orientation = n.NSLandscapeOrientation

// save html to file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
call HTMLViewer1.PrintToPDFFileMBS(f,10,30,10,30)
Notes:
You may want to reset options later.
This code is only for Mac OS X.




Links
MBS Real Studio Plugins