ecrm1000.tfm-latex-issues.md (1242B)
1 --- 2 title: "Pandoc TXT to PDF exporting ecrm1000.tfm issues" 3 date: 2018-11-26T10:41:00 4 tags: ["Formats", "Linux", "Snippets", "Software"] 5 --- 6 7 Recently I was experimenting with [paperless](https://github.com/danielquinn/paperless) and importing a number of files to see how the software handled things. Over the course of this experiment the only files that didn't seem to be accepted were plain txt files. 8 9 A simple solution (or so I thought) would be to convert these to PDF, and just run the import again. Pandoc is my goto choice for all types of textual documentation management, so I threw the files through the following command: 10 11 ``` 12 for i in *.txt; do pandoc "$i" -o "${i%txt}pdf"; done 13 ``` 14 15 Which helpfully gave me: 16 ``` 17 pdflatex not found. Please select a different --pdf-engine or install pdflatex 18 ``` 19 This can be remedied via: 20 ``` 21 sudo apt-get install texlive-latex-recommended 22 ``` 23 Which then nets you: 24 ``` 25 Error producing PDF. 26 ! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found. 27 ``` 28 29 This incredibly helpful message can be resolved via: 30 ``` 31 sudo apt-get install texlive-fonts-recommended texlive-latex-recommended 32 ``` 33 34 Which finally produces acceptable PDF files using the very first command. Phew.