GithubHelp home page GithubHelp logo

Comments (4)

jonathanj avatar jonathanj commented on May 18, 2024 1

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.

simonhaenisch avatar simonhaenisch commented on May 18, 2024

😂 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.

jonathanj avatar jonathanj commented on May 18, 2024

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.

simonhaenisch avatar simonhaenisch commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.