I know it's possible to modify a layout from a pagx file using Core (CIMLayoutDocument.FromJson seems to work fine for getting at the CIMLayoutDocument and CIMLayout).
However, I'm not sure whether it's possible to export to PDF using a core application. The Layout.Export() method does this in the Desktop environment. Is there an analog to that method in the Core environment?