#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
#include "../lib/args.h"
#include "../lib/os.h"
#include "../lib/rfxswf.h"
else if (!strcmp(name, "f"))
{
driver->set_parameter("storeallcharacters", "1");
+ driver->set_parameter("extrafontdata", "1");
return 0;
}
else if (!strcmp(name, "w"))
" 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");
int nup_pos = 0;
int x,y;
char* installPath = getInstallationPath();
- char* fontdir = 0;
initLog(0,-1,0,0,-1,loglevel);
-#if defined(WIN32) && defined(HAVE_STAT) && defined(HAVE_SYS_STAT_H)
- if(installPath) {
- fontdir = concatPaths(installPath, "fonts");
- FILE*test = fopen(concatPaths(fontdir,"\\d050000l.afm"), "rb");
- if(!test) {
- fprintf(stderr, "Couldn't find file %s - pdf2swf not installed properly? OS says:\n", concatPaths(fontdir, "\\d050000l.afm"));
- perror("open");
- exit(1);
- }
- fclose(test);
- }
-#else
- fontdir = concatPaths(installPath, "fonts");
-#endif
+ /* not needed anymore since fonts are embedded
+ if(installPath) {
+ fontpaths[fontpathpos++] = concatPaths(installPath, "fonts");
+ }*/
#ifdef HAVE_SRAND48
srand48(time(0));
}
/* add fonts */
- /*
- if(fontdir) {
- driver->set_parameter("fontdir", fontdir);
- }*/
for(t=0;t<fontpathpos;t++) {
driver->set_parameter("fontdir", fontpaths[t]);
}
pdf->destroy(pdf);
- char*zip = "";
+ const char*zip = "";
if(zlib) {
zip = "-z";
}