X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fpdf2swf.cc;h=7f064ccd0bc1c0fcd9fad0aa992bc655dcd05193;hp=cff67d0e48ad9edda23c8a4bccbcaefe9c1787ea;hb=c8e0d0bd8cc515f60ab6a1248caf6fdc8945d89e;hpb=9b7ed00673462ed1846ff03f0e77a5405ad1a50d diff --git a/pdf2swf/pdf2swf.cc b/pdf2swf/pdf2swf.cc index cff67d0..7f064cc 100644 --- a/pdf2swf/pdf2swf.cc +++ b/pdf2swf/pdf2swf.cc @@ -325,11 +325,11 @@ void addfontdir(FILE*database, char* dirname, int*numfonts, char*searchpath) strcat(searchpath, ":"); strcat(searchpath, dirname); } - logf(" Adding %s to search path\n", dirname); + msg(" Adding %s to search path\n", dirname); DIR*dir = opendir(dirname); if(!dir) { - logf(" Couldn't open directory %s\n", dirname); + msg(" Couldn't open directory %s\n", dirname); return; } dirent*ent; @@ -356,10 +356,10 @@ void addfontdir(FILE*database, char* dirname, int*numfonts, char*searchpath) sprintf(buf, "%s/%s", dirname,name); fi = fopen(buf, "rb"); if(!fi || !fread(&a,1,1,fi)) { - logf(" Couldn't read from %s", buf); + msg(" Couldn't read from %s", buf); } fprintf(database, "%s\n", buf); - logf(" Found font %s\n", buf); + msg(" Found font %s\n", buf); fclose(fi); } if(numfonts) @@ -416,7 +416,7 @@ int main(int argn, char *argv[]) { if(filename) { outputname = stripfilename(filename, ".swf"); - logf(" Output filename not given. Writing to %s", outputname); + msg(" Output filename not given. Writing to %s", outputname); } } @@ -434,7 +434,7 @@ int main(int argn, char *argv[]) exit(0); } - logf(" reading font files from %s/fonts\n", SWFTOOLS_DATADIR); + msg(" reading font files from %s/fonts\n", SWFTOOLS_DATADIR); //TODO: use tempnam here. Check if environment already contains a //T1LIB_CONFIG. putenv( "T1LIB_CONFIG=/tmp/t1lib.config.tmp"); @@ -510,8 +510,8 @@ int main(int argn, char *argv[]) if(viewer || preloader) { #ifndef SYSTEM_BACKTICKS - logf(" Not sure whether system() can handle command substitution"); - logf(" (According to config.h, it can't)"); + msg(" Not sure whether system() can handle command substitution"); + msg(" (According to config.h, it can't)"); #endif if(!system_quiet) printf("\n"); @@ -524,7 +524,7 @@ int main(int argn, char *argv[]) printf("\n"); } if(preloader && !viewer) { - logf(" --preloader option without --viewer option doesn't make very much sense."); + msg(" --preloader option without --viewer option doesn't make very much sense."); ret = systemf("swfcombine `swfdump -r %s` %s/swfs/PreLoaderTemplate.swf loader=%s movie=%s -o %s", preloader, SWFTOOLS_DATADIR, preloader, outputname, outputname); if(!system_quiet)