We are using the html2ps Perl script to convert HTML to PostScript.
I know it’s not the best solution but this is what the developers here did (it was before my time).
Now we need to implement support for barcode fonts that is showing each HTML and needs to be shown in each converted PostScript file. How do you do this?
OK, I’ve got it working only with fonts (no images, as required). Here is how:
.pfa. I use fontforge to perform this conversion, like so: open the ttf font, choose File > Generate Fonts, with “PS Type 1 (ASCII), and dismiss possible warnings.Code128bWin.pfa.test.html):config:<h4>tags will be rendered with the codebar font. You now generate the Postscript output by running:html2ps -f config test.html > test.psComments welcome!
As a sidenote: this is clearly ugly, but sometimes it’s necessary to hack into an existing process, so I won’t judge the OP. I think this solution satisfies all constraints 🙂