From 5473e79cfd6a550e87ac8785d198955c4762915c Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 16 Aug 2004 08:37:55 +0000 Subject: [PATCH] brought up to date. --- FAQ | 46 +++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/FAQ b/FAQ index 434c465..cb786a6 100644 --- a/FAQ +++ b/FAQ @@ -3,11 +3,11 @@ SWFTools is free of charge, and is released under the GPL (http://www.gnu.org/licenses/gpl.html). -2.) How to compile/link swftools? +2.) How to compile/link swftools on Unix/Linux/BSD? - Download swftools-0.4.2.tar.gz and t1lib-1.3.1.tar.gz. + Download swftools-0.x.x.tar.gz and t1lib-1.3.1.tar.gz. - gzip -d swftools-0.4.2.tar.gz + gzip -d swftools-0.x.x.tar.gz gzip -d t1lib-1.3.1.tar.gz tar -xf t1lib-1.3.1.tar cd t1lib-1.3.1 @@ -15,13 +15,13 @@ make make install cd .. - tar -xf swftools-0.4.2.tar - cd swftools-0.4.2 + tar -xf swftools-0.x.x.tar + cd swftools-0.x.x ./configure make make install -3.) What libraries do I need to compile swftools? +3.) What libraries do I need to compile swftools on Unix/Linux/BSD? You need t1lib and jpeglib to compile pdf2swf. Links: @@ -36,7 +36,7 @@ http://avifile.sourceforge.net . -4.) configure doesn't find my jpeglib / my t1lib! +4.) when compiling the sourcecode version, configure doesn't find my jpeglib / my t1lib! In case some of your libraries/include files are installed in /usr/local, try the following: @@ -71,14 +71,18 @@ 7.) The fonts in the SWFs generated by pdf2swf are wrong! - Try running pdf2swf with the "-v" switch. - If you see a line reading "substituting VerySpecialFont -> Times-Roman", then pdf2swf - didn't find some fonts, which may be external references in the pdf. - To fix this, copy the fonts into your current directory and pass the "-F ./" (--fontpath ./) - option to pdf2swf. (This doesn't yet work with TTF, only with Type1 Fonts. You can - convert TTF to Type1, however, using ttf2pt1 (http://ttf2pt1.sourceforge.net)). - The font files should, in this case, have the filenames VerySpecialFont.afm and - VerySpecialFont.pfa (.pfb). + Watch the output of pdf2swf closely. + You should see something like: + + WARNING Font Myriad-Roman could not be loaded. + WARNING Try putting a TTF version of that font (named "Myriad-Roman.ttf") into /swftools/fonts + + Provided you actually own the font in question (here: Myriad-Roman.ttf), + you can copy that fonts into your current directory and pass + the "-F ./" (--fontpath ./) option to pdf2swf. + If you use a page in several PDFs, you can also simply copy it + to (on Windows) C:\SWFTools\Fonts\, or (on Unix) /usr/local/share/swftools/fonts + to make it work all the time. 8.) Can png2swf handle transparency? @@ -111,12 +115,12 @@ The result is something like: Objects in file myfile.swf: - Shapes: 1, 2, 3 - MovieClips: 4, 5, 8, 10, 12 - JPEGs: 69, 116, 447 - PNGs: 318 - Sounds: 28, 29, 30 - Frames: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 + 3 Shapes: ID(s) 1-3 + 5 MovieClips: ID(s) 4, 5, 8, 10, 12 + 3 JPEGs: ID(s) 69, 116, 447 + 1 PNG: ID(s) 318 + 3 Sounds: ID(s) 28-30 + 10 Frames: ID(s) 0-10 Not you can extract a shape using -- 1.7.10.4