How do I save a file as a PDF in Linux?

How do I save a file as a PDF in Linux?

In order to create a new PDF, create a document as you would in any word processor. When you are done with adding all the text and graphics in your file, click the Export as PDF icon from the toolbar. Alternatively, click the File menu and select Export as, and then Export as PDF.

How do I print as PDF?

How to print to PDF:

  1. Select a file in any application that prints and open it.
  2. Choose “File” > “Print”.
  3. Choose “Adobe PDF” from the list of printers in the print dialog box.
  4. Click “Print” to use the Acrobat PDF printer.
  5. Click “OK” and enter a new file name for your PDF. Save to your desired location.

How do I print a File in Terminal?

To print a document on the default printer, just use the lp command followed by the name of the file you want to print.

How to print a regular file to PDF from command line?

There are more options to enscript, e.g. -B to omit the page header. See man enscript for all of the options. without installing any of the above mentioned software, one can simply do the following with already installed cupsfilter: Then run enscript on your file with the -P switch and the printer description PDF in this case.

Is it possible to print code with syntax highlighting?

Yes, Notepad++ can certainly print code with syntax highlighting. Colour printing would obviously be preferable, but on the occasions when I’ve printed in black and white, the subtle differences in colour [rendered as shades of grey, of course] can be difficult to distinguish.

Is there a command line program to convert files to PDF?

There is a command line program that can convert between all of the formats supported open/libre office called unoconv so if you need to batch convert with a script it will come in handy. Pandoc is a must have swiss knife tool when it comes to conversion between various markup languages.