SWFTools pdf2swf exactly cropping

884 Views Asked by At

I am trying to make a little program to crop PDF pages and export as SWF files which will be displayed on web. I am using SWFTools to crop and convert to SWF by this command line

pdf2swf -c x1:y1:x2:y2 mypdf.pdf -o exported.swf

But it masks instead of cropping and keeps file size same with full page. I checked swftools wiki pages and documents but found nothing related cropping. is there any way to crop and reduce size?

1

There are 1 best solutions below

3
None On BEST ANSWER

I found the solution -G parameter which defined as "Remove as many clip layers from file as possible." in pdf2swf help worked for me.

pdf2swf -G -c x1:y1:x2:y2 mypdf.pdf -o exported.swf