Exporting PDFs with images is not possible

Steps to reproduce

  • paste or drag an image into a note so it’s visible on preview (exclamation mark and double brackets)
  • click ‘more options’ button and then click export to PDF option
  • chose settings, click ‘export to pdf’ button
  • chose file name and destination folder
  • click ok

Expected result

  • get a pdf with the image on the chosen folder

Actual result

  • no pdf
  • error message on upper right corner saying “Failed to Save PDF.”
  • following error message on dev console log:
TypeError: Cannot convert undefined or null to object
    at hasOwnProperty (<anonymous>)
    at PreviewDatabaseModeService.eval (plugin:dbfolder:132873)
    at Generator.next (<anonymous>)
    at eval (plugin:dbfolder:41)
    at new Promise (<anonymous>)
    at __awaiter (plugin:dbfolder:37)
    at PreviewDatabaseModeService.markdownPostProcessor (plugin:dbfolder:132861)
    at Function.e.postProcess (app.js:1)
    at e.<anonymous> (app.js:1)
    at app.js:1
(anonymous) @ app.js:1


  • Operating system: Windows 10 Pro
  • Debug info:
    Obsidian version: v0.14.15
    Installer version: v0.13.23
    Operating system: Windows 10 Pro 10.0.19044
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: off
    Plugins installed: 4
    Plugins enabled: 3
    1: DB Folder
    2: Dataview

Additional information

I can export PDFs without images normally.

It happens just as same with Pandoc, even when trying to export to docx.
The following printscreen shows first attempt without pandoc enabled, second attempt with pandoc enabled but using regular ‘export to PDF’ and third using pandoc command to docx

Post a screen recording of this happening in the sandbox vault (no themes, no plugins)

it worked on an empty vault.

DB folders is the culprit. If i disable it i can export pdfs normally.