[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PDF on debian



Corey Hickman writes:

Hello,

What's the suggested PDF generator in Debian (without desktop)?
And is there a VIM plugin for that?

For cases where I care little about font or formatting, I use VIM's integrated hardcopy:

	:ha > /tmp/print.ps
	:!ps2pdf /tmp/print.ps /tmp/print.pdf

Find the printable PDF in /tmp/print.pdf afterwards.

When I want to use a custom font and zoom settings, I follow a transformation of Text -> HTML -> wkhtmltopdf using a script (attached as `ascii2pdf.sh`). Requires `wkhtmltopdf` and `texlive-fonts-extra` (you can avoid that by changing the font file in the script).

To test it, you can run it on itself to produce a file `print.pdf`

	./ascii2pdf.sh ascii2pdf.sh print.pdf

It even supports colors but the syntax is weird enough such that it is not useful without additional documentation (I did not document it yet...).

HTH
Linux-Fan

öö

Attachment: ascii2pdf.sh
Description: Bourne shell script

Attachment: pgpB4khh4RF8p.pgp
Description: PGP signature


Reply to: