[pdftex] inverse operation to \pdffiledump

Alexander Grahn A.Grahn at fzd.de
Wed Jan 6 14:47:29 CET 2010


Hi Akira,

On Wed, Jan 06, 2010 at 09:55:19PM +0900, Akira Kakuto wrote:
>If you admit shell escape, the following is possible:
>
>...
>\immediate\write18{hex2bin tmp.txt tmp.png}
>...
>where a source of hex2bin is
>...

thank you for your suggestion to use an external program and to provide
the source for it. At a pinch, I would have used `xxd -r -ps tmp.txt'
with \write18 for converting Hex back to Bin. In fact, I used xxd to
produce the hexdump from the original file. (Xxd is a helper program
that ships with the Vim editor.)

Of course, I hoped to elegantly get along without the need to resort to
an external program, but this does not seem to be possible.

Thank you anyway!
Best regards,
Alexander



More information about the pdftex mailing list