Is there a way to print as pdf under Linux and embed the fonts too?
Yes I do it all the time.
(File)-(print)-(print to file.pdf) using firefox or midori.
Export as pdf from libre office or abiword.
ps2pdf, a2pdf, text2pdf, wkhtmltopdf
I don't have cups-pdf installed.
This web page will print to file.pdf from your browsers "print to file" and the .pdf has text in it. From BSD and Linux. It can also be printed to .ps or vsg. Vector graphics will be an image.
Libre office will print to file, thunderbird will etc.
pacman -Ss ghost
extra/ghostscript 9.06-1 [installed]
An interpreter for the PostScript language
extra/gsfonts 1.0.7pre44-3 [installed]
Standard Ghostscript Type1 fonts from URW
pacman -Ss cups-pdf
PDF printer for cups
I just printed this page to file.ps from a browser. Then ran
ps2pdf file.ps output.pdf
output.pdf has embedded text.
I printed this web page to file.pdf
file.pdf has embedded text.
I then printed this web page to file.ps then ran
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=output.pdf file.ps
ouput.pdf has embedded fonts.
You can also use
html2pdf http://www.linuxquestions.org output.pdf