Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
Stuart has added support for Flexpaper to SWF Tool.
CCK Fields could be mapped to output it via Flexpaper.
Just missing an automatic File conversion of PDF or Word documents.
Here I want to start a thread for documentation on "How to convert PDF's or Office Files to an SWF for Flexpaper".
First I have found http://www.swftools.org
But no instruction or test at the moment.
More ???
Comment | File | Size | Author |
---|---|---|---|
#22 | Options Custom Command | 101.27 KB | knalstaaf |
Comments
Comment #1
bennos CreditAttribution: bennos commentedOK rename it.
I have Media Mover installed. MM has an harvesting function, which can retrieve files from a node or a cck field, convert it and write it back.
Here is short instruction.
Need ist Media Mover and the Media Mover custom command module.
Install www.swftools.org. You need to compile it. On configure look at the output. There could be some libaries missing like freetype or libjpeg. Without the libs, the module will be compiled, but pdf2swf is deactivated.
Make sure that all needed stuff ist installed.
Typically a PDF file is stored as node attachment or in a cck file field.
Both will work.
Upload and install the Media mover modules mentioned above.
the submodules with ffmpeg wrapper is not needed here.
After install of MM, you must add a configuration.
Go to admin/build/media_mover/add
You will a lot of setctions.
Informations about the Config
HARVEST CONFIGURATION
Process CONFIGURATION
Storage Configuration
Complete Configuration
1. Add some informations and choose the action for harvest a file from a cck field or a drupal upload.
2. Processing actions is "Custom Command".
3. choose an action to write the file back and save the config.
you config is now saved, but will not work.
We need to edit the config.
Now you will find some more options to choos the content type and the cck fields for ther harvesting action.
Specify the extension to only "PDF pdf"
also we must add now a custom command.
this should be something like
pdf2swf Paper3.pdf -o Paper3.swf -T 9 -f
replace the filename with provided tokens. List of tokens is available.
Last step.
Configure the write back action to same place or another place.
Should work now. try a test.
this is the first version, could be more structured.
Comment #2
sdgandy CreditAttribution: sdgandy commentedThanks a lot, this is what I've been looking for :D
Comment #3
bennos CreditAttribution: bennos commentednice to hear, that it helped. If you have problems. please report it back.
There could be another way to convert Pdf's. I think this could also be done via rules.
Rules Version 1.1 has a new form events plugin. Think this can also do this, but haven't tried it.
I my mind the way is
1. Content is going to be saved.
2. Field has pdf
3. ....
Rules does not support a command line instruction. Only PHP is accepted. A little bit code is needed.
Comment #4
Vasu CreditAttribution: Vasu commentedsubscribing
Comment #5
Yuki CreditAttribution: Yuki commentedsubscribing
Comment #6
grandchamp_g CreditAttribution: grandchamp_g commentedIs it at all possible for you to do a video cast of how you configured this? For some reason I'm getting nothing. Thanks.
Comment #7
macieq CreditAttribution: macieq commentedsubscribing
Comment #8
robert.redl@easytouch.cc CreditAttribution: robert.redl@easytouch.cc commentedsubscribing
http://flexpaper.devaldi.com/
sudo apt-get install swftools
pdf2swf filename.pdf
implement conversion as drupal module with php or trigger on linux server on file upload and then autoconvert it with bash script or mono and c#
Comment #9
ha_le CreditAttribution: ha_le commentedAnyone have tried this on a Windows machine? I've got my pdf2swf installed and added to PATH. Tried with cmd it works find out of the console. But MM doesn't seem to successfully invoke the program? my config is pdf2swf [harvest_file] -o [output_file]
Comment #10
vimalramaka CreditAttribution: vimalramaka commentedsubscribe
Comment #11
claymanz CreditAttribution: claymanz commentedsubscribe.
Comment #12
chinesechef CreditAttribution: chinesechef commentedsubscribed.
Comment #13
chinesechef CreditAttribution: chinesechef commentedCould you export the configuration as text?
Comment #14
chrixlee CreditAttribution: chrixlee commentedHi There,
1 Month ago, I was required to convert a batch of PDFs to animated Flash (better with Page-flip). I've browsed and listed some PDF to Flash sites, hope this would help any of you.
http://www.pdf-to-flash-magazine.com
Offers free online conversion and offline software which is my favorite. Multiple choices can be satisfied. It is such an innovative conversion tool for creating page flipping reading experiences.
http://www.issuu.com
Terrific online converter with large quantity of users, features in sharing documents (more like magazines 2 me). Multiple formats support: PPT/Word/PDF to Flash
http://www.page-flip.com
Can be the most professional converter with higher credit rating. However the cost is higher. The license fee for per user is €40, and this is for 3 months
not lifetime.
http://www.swftools.org/
An open source software. To be frank, the conversion effect is not as good as the former. May it meet the needs of flash/web developer.
That's all I got
Comment #15
chromix CreditAttribution: chromix commentedI've exported a configuration that works for me.
The export follows:
Comment #16
kmasterzone CreditAttribution: kmasterzone commentedHi, I'm very much new to drupal up-till now I've created 'CCK file field called "Attachment" in the node type "Text"' rest of it, how to do it I cannot understand, please help.
Actually what I want to do is:
1) take a pdf and convert it to page-wise swfs with naming conventions as 00001.swf, 00002.swf and so on.
2) next I want I'll parse the output directory and make a xml out of it, so that I can feed that to my Flex WebApp.
Link: http://demo.techmastiff.com/eMagazine/
In the above link the fetched xml is static. To which I want to make it dynamic.
Thanks.
Kunal Bhatia
Comment #17
udvranto CreditAttribution: udvranto commentedsubscribing
Comment #18
asb CreditAttribution: asb commentedFascinating approach to display PDF files. Has someone managed to get this working on a public site? How does it look like?
Comment #19
delta CreditAttribution: delta commentedsubscribing
Comment #20
bipink8 CreditAttribution: bipink8 commentedHi,
I wanted to display the pdf or other office files(uploaded through CCK field) in my webpages only.please help about this.
thanks in advance,
Bipin
Comment #21
knalstaaf CreditAttribution: knalstaaf commentedI'm stuck here.
The option mentionned in step 2 provides two more options:
What do we have to fill out there?
Comment #22
knalstaaf CreditAttribution: knalstaaf commentedIs the explanation of #1 still up to date? Maybe some functions weren't provided back then. I'm stuck in the steps mentionned above. Attached there's a screen of the options I'm getting (and of which I have no idea what to fill out).
The storage configuration provides the same options as (shown in) complete configuration.
Do you mean installing the SWFtools module in your Drupal site, of installing it on your (Apache) server? I can't find any reference concerning freetype or libjpeg either, where should these files should be put? This all sounds really technical tbh. Video podcasts save lives indeed.
Comment #23
DriveRovers CreditAttribution: DriveRovers commentedYou can also use another pdf flippingbook maker to convert you pdf to swf, it is easy to use. you can download a free trail first to try.
Comment #24
asb CreditAttribution: asb commented#23 is advertising spam. The referenced software is closed source and commercial, costs $97.00 and is only availabe for Windows 7. Additionally, this kind of crap is totally irrelevant for the issue "Convert automatically a PDF to SWF and use Flexpaper to display".
Comment #25
Jegan2668 CreditAttribution: Jegan2668 commentedHi,
I am facing one major issue. I am trying to download Media Mover module from http://drupal.org/project/media_mover. But there is no 6.x version. How can i implement.