Comments (4)
I discovered that the cause of this issue (in my case) was indeed the use of a custom font. I don't know if the font itself has an issue or if it's any non-system font, but using a system font (like "Helvetica Neue" on macOS) made this issue go away.
from md-to-pdf.
😂 best bug report yet.
Just pasting this from a pdf I just converted:
Lorem ipsum dolor sit amet consectetur adipisicing elit.
I. e., can't reproduce on macOS 10.14.3 with node 11.13.0 and md2pdf 2.6.4 (opened the PDF in Preview.app).
I'd be keen to know what actually causes this though, never seen it before 🤓 Maybe someone installed you a copy-paste reverser as a hoax?
from md-to-pdf.
I'm having the same issue. The output PDF looks fine (although the selection indicator looks weird) but the text copied to the clipboard is reversed. The document is in English, but this happens on a basic document:
# Testing
Hello world
I found these related issues:
This unfortunately dramatically reduces the value of converting my documents to PDF.
md-to-pdf: 2.8.2
node: 10.19.0
Platform: macOS 10.15.3
from md-to-pdf.
Ok thanks for the info... seems to be an issue with custom fonts and how they are embedded in the pdf.
This unfortunately dramatically reduces the value of converting my documents to PDF.
Sorry but there's nothing I can do about this (as for everyone, my time is limited). This tool merely composes different tools to make it easier to generate PDFs from markdown, but I can't offer any support for those tools. It's an upstream issue and I'm keeping the dependencies up-to-date so once it's fixed, it should work with md-to-pdf as well.
You could use the --as-html
flag to convert it to html instead, and then you could see whether there's another way of converting that to PDF that doesn't have the issue. Maybe there's another browser that allows to print to PDF programmatically 🤷🏻♂️
from md-to-pdf.
Related Issues (20)
- 'Bash wrote one or more lines to the standard error stream' on Azure Pipelines HOT 3
- bug: Failed to launch the browser process! HOT 1
- bug: HOT 1
- feature: Support for footnote, as Github-Flavored-Markdown now supports footnote HOT 1
- Improve documentation around Marked plugins
- feature: embedded tweets HOT 2
- feature: embedded instagram posts HOT 4
- feature: embedded mastodon posts HOT 2
- ProtocolTimeout change via the Commandline HOT 1
- bug: Puppeteer reports a weird warning HOT 5
- feature: Bookmarks HOT 1
- bug: Links to images now contain http://localhost:port prefix when using --as-html flag HOT 5
- feature: add --dest option to the CLI HOT 4
- bug: mathjax test is flaky
- feature: add language to body-tag HOT 3
- bug: HOT 1
- Can not find highlight style HOT 1
- feature: option to import other files for headerTemplate
- feature: ability to keep the browser window open (for testing & debugging) HOT 1
- bug: No such file or directory, open 'C:\workspace\angular-demo\pdf\**\*.md' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md-to-pdf.