X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=257997897032db32008108d0c57bd4edd4e259af;hb=4445020ff739e4cc46320afc90312bcd347ba1e8;hp=1d56679026bc19256d74e6d5db1334b1e207c342;hpb=bac8d2e4da298000c30c6f63031542b3b8cee7c5;p=swftools.git
diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc
index 1d56679..2579978 100644
--- a/lib/pdf/pdf.cc
+++ b/lib/pdf/pdf.cc
@@ -361,10 +361,14 @@ static void pdf_set_parameter(gfxsource_t*src, const char*name, const char*value
multiply = atoi(value);
} else if(!strcmp(name, "help")) {
printf("\nPDF device global parameters:\n");
- printf("fontdir=
a directory with additional fonts\n");
- printf("font= an additional font filename\n");
- printf("pages= the range of pages to convert (example: pages=1-100,210-)\n");
- printf("zoom= the resultion (default: 72)\n");
+ printf("fontdir= a directory with additional fonts\n");
+ printf("font= an additional font filename\n");
+ printf("pages= the range of pages to convert (example: pages=1-100,210-)\n");
+ printf("zoom= the resultion (default: 72)\n");
+ printf("languagedir= Add an xpdf language directory\n");
+ printf("multiply= Render everything at the resolution\n");
+ printf("poly2bitmap Convert graphics to bitmaps\n");
+ printf("bitmap Convert everything to bitmaps\n");
}
storeDeviceParameter(name,value);
}
@@ -484,6 +488,8 @@ void pdf_destroy(gfxsource_t*src)
parameter_t*p = device_config;
while(p) {
parameter_t*next = p->next;
+ if(p->name) free(p->name);p->name = 0;
+ if(p->value) free(p->value);p->value =0;
p->next = 0;delete p;
p = next;
}