You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or a documentation error.
I can't get PDFs to export to a defined height on Mac. This is needed in my Scaled Perspectives2 extension to export drawings to scale.
The documentation neither specifies a unit or a data type for the imageHeight setting, but logically one of these 4 exports aught to be 10 times the height of one of the others. Yet they are all the same size.
dir=UI.select_directorySketchup.active_model.export("#{dir}/pdf size test 1.pdf",imageHeight: 1)Sketchup.active_model.export("#{dir}/pdf size test 1.0.pdf",imageHeight: 1.0)Sketchup.active_model.export("#{dir}/pdf size test 10.pdf",imageHeight: 10)Sketchup.active_model.export("#{dir}/pdf size test 10.0.pdf",imageHeight: 10.0)
On Windows you can do the following to export a PDF to a defined size.
path=UI.savepanel("Export PDF")path="#{path}.pdf"unlesspath.end_with?(".pdf")Sketchup.active_model.export(path,height_units: Length::Inches,# Length::Millimeter not supported.window_height: 20.0# Integer and Length not supported.)
There are errors in the documentation for PDF export on Mac.
The options linked to pdf export are named: image_height (not imageHeight) image_width (not imageWidth) line_weight
Not sure if this is a bug or a documentation error.
I can't get PDFs to export to a defined height on Mac. This is needed in my Scaled Perspectives2 extension to export drawings to scale.
The documentation neither specifies a unit or a data type for the imageHeight setting, but logically one of these 4 exports aught to be 10 times the height of one of the others. Yet they are all the same size.
On Windows you can do the following to export a PDF to a defined size.
Forum thread: https://forums.sketchup.com/t/does-the-pdf-exporter-even-accept-settings/110582/7
The text was updated successfully, but these errors were encountered: