cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved]PDF2SWF installation question

gluck113
Star Contributor
Star Contributor
Hello

I am new to the Alfresco world and not everything is clear.  Smiley Very Happy
I'm trying to get working the Labs 3 version.
I followed the compiling instructions for the PDF2SWF, but nothing changes in the alfresco interface. I think I must indicate somewhere or put the compiled files in alfresco. But where?

Thanks for your help
14 REPLIES 14

gluck113
Star Contributor
Star Contributor
Alfresco is installed under Suse Enterprise 10.
I'm checking out the logs and I'll inform as soon as possible

Thanks for your help

gluck113
Star Contributor
Star Contributor
Well here's what I got. It isn't quite a surprise but confirms I need help  Smiley Surprisedops:

05:04:03,017 ERROR [org.alfresco.repo.content.transform.swf.PDFToSWFContentTransformer] Failed to start SWF2PDF transformer:
Execution result:
   os:         Linux
   command:    pdf2swf -V
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "pdf2swf": java.io.IOException: error=2, No such file or directory

But what must I create, where and what to put in it? I didn't find any documentation.

mikeh
Star Contributor
Star Contributor
All the documentation you might need is here: http://www.swftools.org/faq.html

Once you've compiled pdf2swf make sure the binary is copied somewhere on your path. To test it outside Alfresco, type "pdf2swf -V" and you should get the version information.

Thanks,
Mike

loftux
Star Contributor
Star Contributor
Try :apt-get install pdf2swf
or aptitude install pdf2swf

On ubuntu the package name would be swftools. Unfortunately the available package is to old, you still would have to download and compile as per previous instructions.

gluck113
Star Contributor
Star Contributor
Once you've compiled pdf2swf make sure the binary is copied somewhere on your path. To test it outside Alfresco, type "pdf2swf -V" and you should get the version information.

But exactly where in the path?
Because I didn't compiled pdf2swf in the alfresco directory. It compiled without errors. But it is logical I must tell somewhere to alfresco that this library exists no?

Thanks for everything!

mikeh
Star Contributor
Star Contributor
Alfresco doesn't care exactly where on the path - as long as the operating system can find it, that's enough.

Try something like /usr/bin or /usr/local/bin maybe..? Depends on your system.

Mike

mikeh
Star Contributor
Star Contributor
Hello,
Try something like /usr/bin or /usr/local/bin maybe..?
Mike
By default the path contains this directories.
Yes - that was the point. The binary should be copied to one of those directories.

Mike

mikeh
Star Contributor
Star Contributor
But if the PATH variable don t contains this directories , the system will fail to find or call any other command (even if it is a system commad).
Umm… That's why he should copy the binary to a directory that's on the path, as I said  :roll:

To be clear, there are two options:
1 - Append the pdf2swf binary folder to the PATH. It sounded like the OP wasn't particularly familiar with his O/S, so this might not be the easiest suggestion in this case (although it's the preferred one)
2 - Copy the pdf2swf binary to a directory that's already referenced on the PATH, e.g. /usr/bin or /usr/local/bin.

Mike

gluck113
Star Contributor
Star Contributor
Hi again
No I haven't fixed my problem! I tried to put the pdf2swf(which it seems is pdf2swf.1 on my computer but erased the .1) binary in the usr/bin and now I can't access the alfresco web client. There was no pdf2swf in the bin files which must be the case if I compiled right?

Maybe I should restart from the start?

Thanks