| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() 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>' 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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 2 
				Karma: 10 
				Join Date: Aug 2019 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Great. Thanks for your fast reply!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Tags | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Convert Image PDF to PDF with text or other ebook format. | Memes | 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 | 4 | 08-09-2014 10:22 AM | |
| Best way to copy text from a PDF or MOBI? | mb2u | 16 | 01-10-2014 06:13 PM | |