also set -s extrafontdata if -f option is given
[swftools.git] / src / pdf2swf.c
index 6e1c096..49e0942 100644 (file)
@@ -236,6 +236,7 @@ int args_callback_option(char*name,char*val) {
     else if (!strcmp(name, "f"))
     {
        driver->set_parameter("storeallcharacters", "1");
+       driver->set_parameter("extrafontdata", "1");
        return 0;
     }
     else if (!strcmp(name, "w"))
@@ -414,6 +415,7 @@ void args_callback_usage(char*name)
           "                           graphic errors)\n");
     printf("-s filloverlap             Make intersecting shapes overlap, instead of canceling each\n"
           "                           other out. (Needed for some Powerpoint PDFs)\n");
+    printf("-s transparent             Make the SWF transparent\n");
     //deliberately undocumented (for now)
     //printf("-2                         Put 2 pages into each frame.\n");
     //printf("-4                         Put 4 pages into each frame.\n");
@@ -486,9 +488,10 @@ int main(int argn, char *argv[])
     
     initLog(0,-1,0,0,-1,loglevel);
 
-    if(installPath) {
+    /* not needed anymore since fonts are embedded
+       if(installPath) {
        fontpaths[fontpathpos++] = concatPaths(installPath, "fonts");
-    }
+    }*/
 
 #ifdef HAVE_SRAND48
     srand48(time(0));