2

I tried to print out a huge text file to a PDF file (DIN A4 landscape or A3 landscape). Unfortunately, every way I try, I always lose the formatting of the tabs I used for tabbing some tables with the tabulator key.

The problem seems to be, that PDF does not see the tabs or rather "translates" them to spaces of different width or whatever. Basically all (primitively done) tables are gone after converting to PDF, but in GEdit and TextEdit with a Monotype style font everything looks nice.

I just do not have a clue how to avoid this. Actually, I just want to have a one-to-one translation from a text file to a PDF, without having to work over 60 pages of tabbed tables.

8
  • 1
    Are your files simply .txt? In TextEdit you can change extension to .rtf and for this mode the export to .pdf keeps the tabs as the original. Also you can insert tables. – Yoan Nov 14 '18 at 14:11
  • open -a Safari foo.txt and save to PDF using Print. – lhf Nov 14 '18 at 14:57
  • Thanks, Yoan, but changing to RTF just destroys/removes all tabulators, as well. – vega Nov 14 '18 at 15:13
  • Thanks, Ihf, but that way is the same like TextEdit's way to print to PDF or even worse, because there I cannot choose the size (DIN A4 or A3) or format (landscape). Also, the tabulators get lost, too. – vega Nov 14 '18 at 15:14
  • Check out smallpdf.com It's one of my favorite online apps for messing with tricky pdf issues. They seem to be able to fix most of the issues I get into. Their PDF converter might create the pdf you are looking for. – GoofyMonkey Nov 14 '18 at 16:28

You must log in to answer this question.

Browse other questions tagged .