How to use pdf2swf parameters

18.03.2010 14:50 by Hans Nuecke (comments: 0)

Old Blog Article; moved from vservu.com

Sometimes the default setting of the parameters as defined in pdf2megazine.bat do not result in optimal image quality and text blurs occur.

There are several ways to tweak quality; one being the "-j" switch (setting the JPEG quality with 0: poor, 100:best) and anotherone the zoom paramater (resolution in dpi can be set)
A complete list of all switches and parameters offered by pdf2swf can be found in this paper:
The call of the pdf2swf converter is (actually) in row 64 of the pdf2megazine.bat converter script, and an example looks like this:
  "%PDF2SWF%" -q -t -T 9 -j100 -O1 -s internallinkfunction=megazine.PDFlinkHandler -s zoom=100 -G -p %%i -f "%from%" "%to%%%i.swf"
-j100               sets jpg conversion artifacts to a minimum, but increases file size.
-s zoom=100    sets resolution from 72 dpi (the default) to 100 dpi. 
                      This increases conversion time and file size signigicantly
Those are just 2 examples to show the general use of these parameters and switches.
Please download the complete list, open pdf2megazine.bat in an editor (e.g. notepad++) and feel free to modify the settings.
Here the switches and parameters as screendump (higher quality as pdf file under above link)
tl_files/images/website/wiki images/pdf2swf-switches-s.jpg
pdf2sef paramatere part 1

Go back