Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2019, 04: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
Old 08-26-2019, 06:07 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,572
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
preview does not support unicode cmaps a feature of PDF more than a decade old. Use a better PDF viewing app and you will be fine.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-26-2019, 01:29 PM   #3
hellomichibye
Junior Member
hellomichibye began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2019
Device: none
Great. Thanks for your fast reply!
hellomichibye is offline   Reply With Quote
Reply

Tags
pdf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Image PDF to PDF with text or other ebook format. Memes PDF 7 05-01-2023 05:52 PM
Convert epub to pdf, with notes with main text in the pdf? 8140david ePub 1 06-18-2015 02:13 PM
Convert epub to pdf, with notes with main text in the pdf? 8140david Conversion 1 06-18-2015 12:02 PM
How to Copy & Paste text from Chinese text PDF? E-Books PDF 4 08-09-2014 10:22 AM
Best way to copy text from a PDF or MOBI? mb2u PDF 16 01-10-2014 06:13 PM


All times are GMT -4. The time now is 05:45 AM.


MobileRead.com is a privately owned, operated and funded community.