• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

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 http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_27624704.html

PDF File link:
http://filedb.experts-exchange.com/incoming/2012/03_w10/559143/ComputerNetworking.pdf
0
Trying_to_Learn
Asked:
Trying_to_Learn
  • 6
  • 5
1 Solution
 
dgofmanCommented:
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
0
 
dgofmanCommented:
I am out today, but can you try older version of pdf2swf
0
 
dgofmanCommented:
These options at least not creating MainTimeline.as


pdf2swf.exe ComputerNetworking.pdf -o ComputerNetworking.swf -f -T 9 -t -s storeallcharacters -s linknameurl
0
The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

 
Trying_to_LearnAuthor Commented:
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!
0
 
Trying_to_LearnAuthor Commented:
**
If yes, you can email me at ma2rafiq@uwaterloo.ca and we can discuss in detail.
0
 
dgofmanCommented:
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
0
 
dgofmanCommented:
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
0
 
Trying_to_LearnAuthor Commented:
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
0
 
Trying_to_LearnAuthor Commented:
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
0
 
dgofmanCommented:
My guess the search is not working because SWF embed font instead recognizing by characters that reason why flash cannot get a context
0
 
Trying_to_LearnAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now