Printing to a PDF with Python/Rhino

I need to automate the production of PDF documents as we are heading toward paperless manufacturing. I can use a command string to print, but I’m not sure how to apply the path and filename automatically. I’m wondering if there is a more Pythonish way of doing this?

So basically, in my script I already have the filename prepared to use, and a path defined. I don’t want the user to have to deal with those. But so far, I always get the “Save Print Output As” dialogue to interact with.

Thanks,

Dan

Are you able to use V6 for this? I wrote an entirely new PDF export engine that is accessible from RhinoCommon. V5 is pretty darn hard to get this to work (which is one of the reasons for the rewrite).

Yes, since V6 release seems to be imminent I would say I don’t need to make this work in V5.

Edit: I have it working in V6 now. I used rs.Command (_-Print, blah, blah) but I’m still curious if there is a more Pythonic way of doing this.

Thanks,

Dan

I knew I had written a sample at one point in time :slight_smile:

1 Like

Thanks Steve.