do you think it's possible to create cstuff.dll starting from pdftex source code? It wasn't written to be a library, so I expect it would be a big project, if it's possible at all. I can't advise ... --good luck, karl.