Solved

Converting PDF to SWF with video embedded

Posted on 2012-03-10
11
443 Views
Last Modified: 2012-03-21
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
Comment
Question by:Trying_to_Learn
  • 6
  • 5
11 Comments
 
LVL 29

Expert Comment

by:dgofman
Comment Utility
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
 
LVL 29

Expert Comment

by:dgofman
Comment Utility
I am out today, but can you try older version of pdf2swf
0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
Comment Utility
These options at least not creating MainTimeline.as


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

Author Closing Comment

by:Trying_to_Learn
Comment Utility
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
 

Author Comment

by:Trying_to_Learn
Comment Utility
**
If yes, you can email me at ma2rafiq@uwaterloo.ca and we can discuss in detail.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 29

Expert Comment

by:dgofman
Comment Utility
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
 
LVL 29

Expert Comment

by:dgofman
Comment Utility
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
 

Author Comment

by:Trying_to_Learn
Comment Utility
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
 

Author Comment

by:Trying_to_Learn
Comment Utility
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
 
LVL 29

Expert Comment

by:dgofman
Comment Utility
My guess the search is not working because SWF embed font instead recognizing by characters that reason why flash cannot get a context
0
 

Author Comment

by:Trying_to_Learn
Comment Utility
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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now