By Adam Nagy
I'm wondering if I could use EXPORTPDF directly to create a PDF file.
Solution
EXPORTPDF does not have a command line version, but just like EXPORTDWF and EXPORTDWFX as well, this command also builds on the EXPORT command functionality, which does have a command line version.
Here is a sample showing how to use it:
(command "_-EXPORT" "_PDF" "_D" "_NO" "C:\\my.pdf")
Also, the EXPORT command is using the Publish API in the background so you might be interested in using that - have a look at blog post "How to use Autodesk.AutoCAD.Publishing.Publisher.PublishExecute?"