vscode-markdown-pdf icon indicating copy to clipboard operation
vscode-markdown-pdf copied to clipboard

Markdown 1.4.3 - unable to create PDF from md

Open sztrzask opened this issue 4 years ago • 10 comments

When I try to create pdf from markdown file that includes tables and images, nothing happens. HTML is generated but pdf is not - the process either never ends or ends with timeout. I'm using 1.4.3

sztrzask avatar Mar 12 '20 13:03 sztrzask

Did you create a PDF with Markdown 1.4.2 ? Could you provide a sample file that causes a problem ?

yzane avatar Mar 12 '20 15:03 yzane

# Markdown PDF

This extension converts Markdown files to pdf, html, png or jpeg files.

## Table of Contents


<div class="page"></div>

## Features

Supports the following features
* [Syntax highlighting](https://highlightjs.org/static/demo/)
* [emoji](http://www.webpagefx.com/tools/emoji-cheat-sheet/)
* [markdown-it-checkbox](https://github.com/mcecot/markdown-it-checkbox)
* [markdown-it-container](https://github.com/markdown-it/markdown-it-container)
* [markdown-it-include](https://github.com/camelaissani/markdown-it-include)
* [PlantUML](http://plantuml.com/)
  * [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
* [mermaid](http://knsv.github.io/mermaid/)
  * [knsv/mermaid](https://github.com/knsv/mermaid)



Any kind of .md file doesn't work, even this.

Last time I checked it was working was a month ago - it was latest version at that time.

sztrzask avatar Mar 13 '20 08:03 sztrzask

Can you solve the problem with the following operation ?

  1. Set the markdown-pdf.executablePath option
  2. Restart the Visual Studio Code

yzane avatar Mar 13 '20 09:03 yzane

Yup, that solves the issue. Is there an alternative to this?

sztrzask avatar Mar 13 '20 14:03 sztrzask

If the PDF was generated using the markdown-pdf.executablePath option, you may have failed to automatically download Chromium. Therefore, please reinstall markdown-pdf.

yzane avatar Mar 13 '20 14:03 yzane

I've got the same problem.

Problem: " The extension is not able to download and install chromium". Test Environment:

Captura de pantalla 2020-03-17 a las 11 14 38

Working: LUbuntu:

I'm sorry but I'm quite busy today If I had time I will provide more data.

Regards and thank you for your work in the project, It's very helpful for me and my students.

arturocandela avatar Mar 17 '20 10:03 arturocandela

I've upgraded vscode and the extension in MacOs, and now Markdown-pdf is working again:

Thank you! Regards

arturocandela avatar Mar 20 '20 07:03 arturocandela

Can you solve the problem with the following operation ?

  1. Set the markdown-pdf.executablePath option
  2. Restart the Visual Studio Code

Is this the executable path? /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

alanwunsche avatar Aug 06 '20 00:08 alanwunsche

Setting executable like @yzane mentioned fixes the problem for me.

snakeland avatar Nov 18 '20 16:11 snakeland

Setting executable like @yzane mentioned fixes the problem for me.

For me too.

jose-amat avatar Nov 30 '20 16:11 jose-amat