Why do I get a blank .pdf file when trying to export a drawing to .pdf with the exportPdf() function?

  1. FAQ
  2. »
  3. Export Questions

Probably, loading the PdfModule is missing from the beginning of your code:

::odrxDynamicLinker()->loadModule(OdPdfModuleVIModuleName);
Without this module, PdfUnderlay is invisible and the export saves nothing or saves just an extents rectangle.