For a research project, I'd like to extract an image of each typeset line in a page of plain text all in the same font.
I've considered two ways, both hacks of course, but I don't mind hacking:
Use dvipng and extract the image of each line:
Probably fragile and hard to get the line heights right.
Use dvips and hack the PostScript code:
It seems that
ysignals a new line.
Is there a simple, robust solution?
I control the TeX input completely, if that helps.