X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=5cada51374ce48e288e7827b653d744efe6ddb93;hp=3e6a5941499af03c65dd2077b0214d68fcf06fdc;hb=727449f065760e1d99735f44638c25678cd8bc52;hpb=9188f342f67f399dbb7857dd1970ab44a8c24138 diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index 3e6a594..5cada51 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -394,13 +394,24 @@ char* pdf_doc_getinfo(gfxdocument_t*doc, const char*name) } +/* shortcut to InfoOutputDev.cc */ +extern int config_addspace; +extern int config_fontquality; +extern int config_bigchar; + static void pdf_set_parameter(gfxsource_t*src, const char*name, const char*value) { gfxsource_internal_t*i = (gfxsource_internal_t*)src->internal; - parameterlist_t*p = &i->parameters; + msg(" setting parameter %s to \"%s\"", name, value); if(!strncmp(name, "fontdir", strlen("fontdir"))) { addGlobalFontDir(value); + } else if(!strcmp(name, "detectspaces")) { + config_addspace = atoi(value); + } else if(!strcmp(name, "fontquality")) { + config_fontquality = atoi(value); + } else if(!strcmp(name, "bigchar")) { + config_bigchar = atoi(value); } else if(!strcmp(name, "pages")) { global_page_range = strdup(value); } else if(!strncmp(name, "font", strlen("font")) && name[4]!='q') {