X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=inline;f=lib%2Fpdf%2Fpdf.cc;h=257997897032db32008108d0c57bd4edd4e259af;hb=c694e8e2a1528c3266ac80560a2d6e92c559cc01;hp=34cca1c94c480fd871cd95ced214cd197e095d66;hpb=47f0662f06ca99f476fc93480df569727432ceef;p=swftools.git
diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc
index 34cca1c..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,10 +488,13 @@ void pdf_destroy(gfxsource_t*src)
parameter_t*p = device_config;
while(p) {
parameter_t*next = p->next;
- p->next = 0;free(p);
+ 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;
}
delete globalParams;globalParams = 0;
+ free(src);
}
gfxsource_t*gfxsource_pdf_create()