This should be a problem when we use VSCode “markdown-preview-enhanced” plug-in and use PDF (prince). Please refer to the following solution to solve this problem.

  1. Enter prince’s official website and click the link corresponding to the PC version to download and install it.

    The website is as follows:The prince’s official website

    Download complete and install, the default installation location should beC:\Program Files (x86)\Prince, or you can choose it yourself. I recommend the default.

  2. chooseRight-click my computer -> Properties -> Advanced System Settings -> Environment Variables -> System Variables ->Path-> Edit


    Your installation path \engine\binThis Path can be added to the new Path environment variable.

    Note: The default path isC:\Program Files (x86)\Prince\engine\bin





Hope to help you!!