mb21 / panwriter

Markdown editor with pandoc integration and paginated preview.
https://PanWriter.com
GNU General Public License v3.0
1.03k stars 49 forks source link

Failed to export error (font issue?) #62

Closed joshl129 closed 3 years ago

joshl129 commented 3 years ago

When I try to export a file, I get the following error message:

Failed to export Called: pandoc --metadata 'mainfont=-apple-system, BlinkMacSystemFont, Segoe UI, sans serif' --metadata monobackgroundcolor=#f0f0f0 --output /home/[user name]/Documents/-[file name] --to --standalone

I experienced this issue while trying multiple files: 1) the "Install and Use Pandoc.md" file (included in the Pandoc download) and 2) a file I made that just has the word "test" in it. I also experienced this while trying to export to multiple file types (ODT and PDF).

I'm running the latest version (0.8.0) on Ubuntu 21.04. I have Pandoc installed and just confirmed I'm able to use it via the command line (I successfully exported a markdown file to HTML).

Apologies if I'm missing something and thank you for actively developing a more user-friendly GUI for Pandoc!

mb21 commented 3 years ago

You're getting this even with a file that just contains test? The --to part of the pandoc command you posted seems wrong: it should be --to html. What exactly do you select in the export dialog? Does the output filename contain the suffix .html?

mb21 commented 3 years ago

Closing this as I cannot reproduce. But happy to revisit if there's more info...

Harikar-NGO commented 2 years ago

I am facing the same problem, using appimage on linux

mb21 commented 2 years ago

Have you installed pandoc? What exactly happens? Is there a dialog with a message? What's the message?

Harikar-NGO commented 2 years ago

I do have pandoc installed,

here is the error message

image

here is my metadate

title: | {width=0.6in} \ \ \ \ \color{harikar} \fontsize{28}{12} \selectfont Vacancy Announcement header-includes: | \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{eso-pic} \usepackage{transparent} \usepackage{geometry} \usepackage{xcolor} \usepackage{sectsty} \pagestyle{fancy} \fancypagestyle{plain}{} \addtolength{\headwidth}{\linewidth} \fancyheadoffset{\textwidth} \geometry{includeheadfoot,top=0in,left=1in,right=1in,bottom=0.5in} \definecolor{harikar}{rgb}{0.29,0.38,0.65} \sectionfont{\color{harikar}} \subsubsectionfont{\color{harikar}} \fancyhf{} \lfoot{\includegraphics[scale=1]{img/address.png} \color{harikar} Iraq-Kurdistan – Duhok \ \ \ \ \ Medya – Str. / Australia } \cfoot{\includegraphics[scale=1]{img/unit.png} \color{harikar} HR Unit \ \ \ \ \ \ \ \ \ \ \ \ \ \includegraphics[scale=1]{img/phone.png} 0751 414 8317} \rfoot{\includegraphics[scale=1]{img/web.png} \color{harikar} www.harikar.org} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{1pt} \AddToShipoutPictureBG{\AtTextLowerLeft{\put(+90,+100){\transparent{0.1}\includegraphics[width=4in]{img/Harikar.png}}}}

mb21 commented 2 years ago

which pandoc and PanWriter versions? also with an empty document or one with just a single word in it?

sith-on-mars commented 2 years ago

I have the exact same issue as the OP when trying to export to PDF. My PanWriter is the latest and my pandoc version is 2.17 I'm using OpenSUSE Tumbleweed.

micha06de commented 1 month ago

The problem is that by default the .html extension is missing from the file name in the export file dialog. I also had this problem. After reading https://github.com/mb21/panwriter/issues/62#issuecomment-850973800 I added .html and now it works,

mb21 commented 1 month ago

Weird, is it possible everyone having this problem is on Windows or Linux? Because I still cannot reproduce it on macOS. If anybody wants to investigate, the code is in the fileExportDialog function.

micha06de commented 1 month ago

I have this problem under Linux.