TechDrawGui API
These functions are part of the TechDrawGui module and can be used in scripts and macros or from the python interpreter, once the TechDrawGui module has been imported.
Example:
import FreeCAD
import TechDrawGui
p = FreeCAD.ActiveDocument.Page
f = "/home/localuser/myPdfDirectory/savePage.pdf"
TechDrawGui.exportPageAsPdf(p,f)
f = "/home/localuser/mySvgDirectory/savePage.svg"
TechDrawGui.exportPageAsSvg(p,f)
Description: save a copy of pageObject in Pdf format to location filePath
Returns: none