The CUPS PDF program saves printed PDFs to the
apt install cups-pdf
The output directory can be configured by editing the “Out” directory in
Matlab/GNU Octave figure save PDF
- if you already have Matlab open, just restart Matlab to make the PDF printer available.
Workaround for Java bug stopping Matlab from printing in color–this will create a color PDF
test.pdfin your current directory.
Matplotlib figure save PDF
This can be accomplished by either
- save to PDF from the Matplotlib figure GUI
figure.savefig()to save to PDF from Matplotlib. Example:
#!/usr/bin/env python from matplotlib.pyplot import figure fg = figure() ax = fg.gca() ax.plot(range(10)) fg.savefig('line.pdf',bbox_inches='tight',dpi=300)