Skip to content

Instantly share code, notes, and snippets.

@lukexie
Created February 6, 2018 02:21
Show Gist options
  • Save lukexie/0d685b324f6375338ee4bc38bfb94890 to your computer and use it in GitHub Desktop.
Save lukexie/0d685b324f6375338ee4bc38bfb94890 to your computer and use it in GitHub Desktop.
int gsdll_callback(int message, char* str, unsigned long const) { return 0;}
int main(int argc, char* argv[])
{
int rc;
args[0] = "gsdll32-test.exe";
args[1] = "-dBATCH";
args[2] = "-dNOPAUSE";
args[3] = "-dDEVICE=pdfwrite";
rc = gsdll_init(gsdll_callback, NULL, argct, args);
fprintf(stdout, "gsdll_init returns %d\n", rc);
if (!rc) rc = gsdll_exit();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment