Hello,
We have external tools that take the dwg file and convert each sheet into pdf's. We have problems, with some files that have set the wrong printing area. See below. There is extra space at the top. This is because the letter is set as paper size.
I want to add a code that before saving the document checks it and sets the correct value.
This would guarantee the external tool will export PDFs without this extra white space.
I tried to follow this example:
https://help.solidworks.com/2019/english/api/draftsightapi/HelpViewerDS.aspx?version=2019&prod=api&lang=english&path=draftsightapi%2fGet_and_Set_Print_Options_Example_CSharp.htm
But paper size is set when I choose a printer and even if I use e.g. "dsPrintMgr.PaperSize = "A4"" it isn't saved in the sheet/printing settings.
I think I'm looking at the wrong place. But I checked e.g. ISheet Interface and there is nothing about the paper size. The same IDocument Interface.
Can I ask for help? How to programmatically set the paper size and save this setting in the current document.
Where to search for the solution?
How the paper size is stored in the document? Is it?
