# MakePDF\_script

**URL:** <https://discourse.mcneel.com/t/makepdf-script/218069>\
**Category:** Scripting\
**Tags:** windows\
**Created:** [April 15, 2026, 6:27pm UTC](https://discourse.mcneel.com/t/makepdf-script/218069 "2026-04-15T18:27:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [April 15, 2026, 6:27pm UTC](https://discourse.mcneel.com/t/makepdf-script/218069/1 "2026-04-15T18:27:26Z")

</div>

Hi,

I’m writing a script to automate part of my job. I’m having trouble getting Rhino Python to generate a PDF of a cut sheet without the user interface popping up. Is there any way to do this?

[1234- Copy.3dm](https://discourse.mcneel.com/uploads/short-url/aqK1Si4zPtE1RWvRqupB1hsDcog.3dm) (552.2 KB)

---

<div class="post-metadata">

**Author:** ![Willem](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/willem/32/773637_2.png) [@Willem](https://discourse.mcneel.com/u/Willem)\
**Post date:** [April 21, 2026, 2:18pm UTC](https://discourse.mcneel.com/t/makepdf-script/218069/2 "2026-04-21T14:18:57Z")

</div>

Hi Harold,

Did you solve this already?

How about using the comand with a hyphended prefix

`rs.Command(‘-Print…`

There are more elaborate ways where you setup layouts and export/print those to PDF with the use of Rhino.FileIO.FilePdf but maybe the above solution wil suffice for your needs.

-Willem

---

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [April 21, 2026, 4:38pm UTC](https://discourse.mcneel.com/t/makepdf-script/218069/3 "2026-04-21T16:38:51Z")

</div>

Hi Willem,

Not yet. I’ve tried a few approaches, including `rs.Command("-Print…")` and printing to Rhino PDF first, but it always ends up sending it straight to the printer and printing on paper.

---

<div class="post-metadata">

**Author:** ![Tom\_P](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_p/32/766520_2.png) [@Tom\_P](https://discourse.mcneel.com/u/Tom_P)\
**Post date:** [April 21, 2026, 5:47pm UTC](https://discourse.mcneel.com/t/makepdf-script/218069/4 "2026-04-21T17:47:13Z")

</div>

you have to play around with typing in the commandline and using the macroeditor.  
use the english version for best compatibility  
then your macro - and later your scripted command starts with  
`-_print _setup _destination`

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [April 21, 2026, 6:47pm UTC](https://discourse.mcneel.com/t/makepdf-script/218069/5 "2026-04-21T18:47:56Z")

</div>

I’ll have to check again, but trying the same thing for a client, I posted quite a while back that some of the macro options didn’t work. ISTR that the response was yes, we know, but it will not get fixed in V8…

---

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [April 22, 2026, 10:08am UTC](https://discourse.mcneel.com/t/makepdf-script/218069/6 "2026-04-22T10:08:47Z")

</div>

okay Thanks
