X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=1a6969d5d937a96c24384a6458caab9ed3de69c3;hb=8aeee6106e6d04d3ced2afff12c238eb38254123;hp=3e6a5941499af03c65dd2077b0214d68fcf06fdc;hpb=98caa66dc7bb7a304b7b9d4d95d8d0849cefec01;p=swftools.git diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index 3e6a594..1a6969d 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -390,17 +390,28 @@ char* pdf_doc_getinfo(gfxdocument_t*doc, const char*name) sprintf(buf, "%.1f", i->doc->getPDFVersion()); return strdup(buf); } - return 0; + return strdup(""); } +/* 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') {