Link to home
Start Free TrialLog in
Avatar of Trying_to_Learn
Trying_to_LearnFlag for Canada

asked on

Converting PDF to SWF with video embedded

I need to export my PDF file (which contains videos) into a SWF file to use in my flex app.

Extension to question https://www.experts-exchange.com/questions/27624704/FP-Search-API-connect-to-SWF-File.html

PDF File link:
http://filedb.experts-exchange.com/incoming/2012/03_w10/559143/ComputerNetworking.pdf
Avatar of dgofman
dgofman
Flag of United States of America image

I think pdf2swf can work for us too. But we need to solve one issue.
The differences between FlashPaper (Paper.swf) and out new SWF files pdf2swf creating an ActionScript frame and in the contractor first line in the rfx.MainTimeline.as adding  a line Security.allowDomain("*")

That is good line for loading SWF from a web but unfortunately is not working and implemented in AIR platform.

So, we need to find a way how to omit generating  any ActionScript from pdf2swf

You can download Sothink SWF Decompiler for comparing those files
I am out today, but can you try older version of pdf2swf
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Trying_to_Learn

ASKER

That's good enough, i'll use mySWF file and just not use search in book so it's fine.

I just really want to thank you for all your assistance and help. I know you have taken out a lot of your time to help me, and many times you have gone above and beyond what so many other experts would be willing to do, and for that I really want to thank you.

I don't think I will have any more questions, so I want to say it was a pleasure working with you :)

Thank you for everything, and I might be thinking of commercialzing my product and will try to get a grant from my University to start the business. If I am successfull, I will need to outsource development and will pay for it.

Would you be interested in such an offer?

If you, you can email me at ma2rafiq@uwaterloo.ca and we can discuss in detail.

Thank you for everything :)

Could not have done it without you!
**
If yes, you can email me at ma2rafiq@uwaterloo.ca and we can discuss in detail.
The search is not working can be two problems
1) pdf2swf cannot recognize text document because you PDF version for Adobe Reader 1.7 what is latest one. In this case you need to open your document and save for older version. For example I compiled Adobe Flash Builder RDF file under C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5 what PDF version is 1.5 and it's working well

2) May be problem with fonts and pdf2swf cannot recognize.

Please can you IDesign verify what the font name use some standard one such as Arial and save as PDF version 1.5

I attached generated with same attributes SWF file what working well on search
ComputerNetworking.swf
By the way  latest version of Sothink SWF Decompiler can convert existing SWF to HTML5.
Or maybe you can find a tool for converting PDF to HTML5. That should work on mobile better than SWF
1) The version I am use for Adobe is 10.1.2 - Adobe Reader X. To save as older version, do I need to uninstall this version and install 1.5? Or is there another way to do it.

2) The font type in InDesign for the book is Times New Roman.

I have attached 2 Snapshots

1) It describes the PDF preset and mentions that it should be compatible with v1.4

2) Different export options I have from InDesign.

I can export using the compatible with 1.4v, but the question remains, after I export PDF, how will the PDF2SWF embed the video files?

1 workaround I can think of is by exporting as SWF first, this will produce all the resources folder. Then export as PDF, convert to SWF (as it wont have videos), but keep the same name for the file. So when Flex needs the resources, they will already be present from the SWF file resources.

Let me try this and update you.

Thanks
PDF-Preset.png
Export-Options.png
Ok so I tried this, and half of it worked. I converted PDF to SWF, but the video's are not working even when I changed both the names.

Video's are converted to Images.. search is working.. but doesn't highlight the text location
My guess the search is not working because SWF embed font instead recognizing by characters that reason why flash cannot get a context
that's ok.. I can show another swf file with search working.

Can you help me with moving left/right on the swipe.. I almost have it.. please see that open question

thanks