No one logged in. Log in

MegaZine3 - tips, tricks and hints

Information, Ideas, News, Stories around MegaZine3

How to use pdf2swf parameters to increase image quality of .swf pages

Hans J Nücke - Thursday, March 18, 2010
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)




Comments
Tom commented on 25-Jan-2011 12:27 PM
Thanks for this, more helpful than the pdf2swf FAQ's! I've found the command line easier to get the right level of zoom I want rather than the GUI. I use the command: "pdf2swf -s zoom=150 Page1.pdf Page1.swf" to get a nicely zoomed page.
Tom

Post a Comment




Captcha Image

Trackback Link
http://www.vservu.com/BlogRetrieve.aspx?BlogID=419&PostID=45911&A=Trackback
Trackbacks
Post has no trackbacks.