View Single Post
Old 08-26-2019, 03:57 AM   #1
hellomichibye
Junior Member
hellomichibye began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2019
Device: none
Convert from Text(Markdown) to PDF: Can not copy text in the PDF

Hi,

I use the following command/settings to convert a Markdown file to PDF:

Code:
ebook-convert book.md build/book.pdf \
  --cover='cover.jpg' \
  --authors='Michael'  \
  --language='en' \
  --title='My Book' \
  --formatting-type=markdown \
  --level1-toc="//h:h1" \
  --level2-toc="//h:h2" \
  --level3-toc="//h:h3" \
  --markdown-extensions="footnotes,tables,toc,fenced_code" \
  --pdf-add-toc \
  --pdf-header-template="<p style=\"text-align: center\">beta</p>" \
  --pdf-footer-template='<p style="text-align: right">Page _PAGENUM_</p>'
On a CentOS based OS.

When I view the PDF on my Mac (using the Preview app), I select a few words of text and copy them, the text is not available if I paste it into some other app (e.g. a text editor).

If I use the Export to PDF feature of the Preview app, I can copy from the resulting PDF file.

Any ideas what could be the reason for this?

Thanks
Michael
hellomichibye is offline   Reply With Quote