[Top][All Lists]

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

Re: [Swftools-common] Pdf2swf internal links issue for merged pdf

From: Subhash K
Subject: Re: [Swftools-common] Pdf2swf internal links issue for merged pdf
Date: Wed, 2 May 2012 12:06:26 +0530

Thanks for the response. Internal links are working fine on v0.9.1 but not on v0.9.2 for a merged pdf.

Following is the analysis for the two versions swftools(v0.9.1 and v0.9.2)  :

Command used for the conversion in both versions:

pdf2swf -t -T 9 -s internallinkfunction=true -f -s storeallcharacters inputFile.pdf -o outputDirectory/%.swf

Attached the swfdump output and decompiler code of page2.swf which contains the internal links.

In v 0.9.1

button166 is dispatching the TextEvent with "dok00439.pdf" as parameter.
which is overlapped by button277 exactly at the same location dispatching TextEvent with "frame3_filesignature" as parameter.
So, on clicking the internal link area where button277 is on top of button166 is dispatching TextEvent with frame3_filesignature as parameter.

In v 0.9.2

button503 is dispatching TextEvent with "frame3_filesignature"as parameter.
which is overlapped by button614 exactly at the same location dispatching TextEvent with "dok00439.pdf" as parameter. So on clicking the intenal link area where button614 is on top of button button503 is dispatching TextEvent with 'dok00439.pdf' as parameter is causing the problem. 

Order of the buttons which are added on both the versions are different due to which internal links were working on the v0.9.1 but not on v0.9.2. Not sure why the TextEvent with 'dok00439.swf' is being dispatched? Please suggest me is there any way to suppress TextEvent with the parameter other than 'frame_frameNo_signature' or any work around for the v 0.9.2 ? 

On Wed, May 2, 2012 at 9:20 AM, Chris <address@hidden> wrote:
Perhaps it would be better to check exactly how those pdf files were merged,
making sure there are no conflicts between local and remote ( goToURL style )

Right clicking on the swf and choosing Global Properties, does allow you to
override the default network security settings and locarions.  Flash is a tad particular about what it accesses and how.

HTH a lttle.



>On Tue, 1 May 2012 18:10:02 +0530
>Subhash K <address@hidden> wrote:

> Hi,
> I have a PDF file which was a result of merging of multiple PDF files. When
> i convert this to SWF using pdf2swf the internal links don't work. When i
> click on the link i see this error message.
> SecurityError: Error #2148: SWF file file:///XXXXXXXXX.swf cannot access
> local resource dok00439.pdf. Only local-with-filesystem and trusted local
> SWF files may access local resources.
> at global/flash.net::navigateToURL()
> at rfx::MainTimeline_8478c3ad/clickbutton636_8478c3ad()
> However clicking on the link in the original PDF document when its opened
> in the Acrobat Reader works perfectly.
> I decompiled the SWF and noticed that instead of TextEvent instead of
> having the frame_<frame number> has dok00439.pdf
> How do i get the linking to work in the SWF ?
> --
> Regards,
> Subhash

SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an existing subscription, please kindly point your favourite web browser at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>


Attachment: page2_decompiled_v0.9.1.txt
Description: Text document

Attachment: page2_swfdump_v0.9.1.txt
Description: Text document

Attachment: page2_decompiled_v0.9.2.txt
Description: Text document

Attachment: page2_swfdump_v0.9.2.txt
Description: Text document

reply via email to

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