Hi all,
I'm developing a C# application which, given a DWG file path, opens it in the CAD and export it as PDF.
I'm getting some troubles at last step, the PDF export one.
I found this coding example among official documentation: http://help.solidworks.com/2019/English/api/draftsightapi/Save_Current_View_to_PDF_Example_CSharp.htm
Even though 'ExportSettings' object allows you to set the 'PaperSize' property, I do not understand how to set it without using a constant, but doing it depending on the real format the active document represents.
I mean... let suppose I have an A4 format document opened in the CAD, how can I know programmatically that it's an A4 one?
And more specific... how to know that A4 is wider than higher (that is width > height), or viceversa?
T&R,
Pié
