swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] PDF2SWF Generating SWFs with Different Dimensions


From: Robert Damiano
Subject: [Swftools-common] PDF2SWF Generating SWFs with Different Dimensions
Date: Tue, 12 Jun 2012 12:09:10 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi guys,

Right now I'm having a problem when converting 2 same sized PDF pages, which are resulting in a slightly different width.

Steps to reproduce:
  1. Note the dimensions of the 2 PDFs attached.  I got 1170x772 pts mediabox and 585x772 pts cropbox for both PDFs
  2. Convert both attached PDFs using the command (pdf2swf --fonts --flashversion 9 --jpegquality 75 -s disablelinks -s poly2bitmap -s zoom=125 -p 1-1  x_pdfsam_download-issue-4060 -o test.swf)
  3. Run the commands:
    • swfdump -X test.swf
    • swfdump -Y test.swf

Expected result: The SWFs have the same X and Y value

Actual result: SWF 1 has a X value of 1015 and SWF 2 has a X value of 1016

This single pixel discrepancy is causing problems when trying to place the 2 SWFs side-by-side for viewing purposes.  Any help would be greatly appreciated.  Note, if you remove the poly2bitmap flag the dimensions become the same.

Regards,

-- 
Robert Damiano
Java Developer | Uberflip
address@hidden

Attachment: 6_pdfsam_download-issue-4060.pdf
Description: Adobe PDF document

Attachment: 7_pdfsam_download-issue-4060.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]