Paid affiliate advertisement

File Upload Module that converts Word to PDF

mclemmens - January 30, 2007 - 17:04

Dear Community,

I am looking to hire a developer who can create a module that can extend the CCK File Upload utility and/or file attachment module. Upon upload of a .doc file, the module would convert the file to PDF and store only the PDF file on the site. It's similar to how the attachment system works currently, except it should display a .PDF file as if the user had just uploaded a PDF file instead of a DOC.

I hope to fund this development and would also like to see the module made available to the public through this site after it is completed. (Because I think it would really be a big bonus for Drupal.)

Please let me know if you are interested, and have experience programming similar utilities. PDF conversion is a tricky thing, and this solution would need to work well. Experience developing Drupal modules is a plus. Expedience is also a plus. I prefer to pay via PayPal in two phases, (1) after getting to try a live working prototype and (2) after the module is installed on my own server and functioning without any big bugs.

>> dp development (no spaces) at digital deployment dot-com.

Warm Regards,
Mac

platform?

pwolanin - January 30, 2007 - 17:21

Are you looking for a platform-independent module/tool, or one that might only run on certain platforms (e.g. linux)

linux

mclemmens - January 30, 2007 - 17:40

as long as it works on linux in a shared hosting environment, that would be fine. (Standard LAMP platform)

Putting this thread on my radar

tostinni - February 27, 2007 - 00:53

Just adding this in my to-watch list ;)

i am also looking for such a

vinegar5 - April 7, 2007 - 05:15

i am also looking for such a module, though I haven't any money

Interesting ... I have seen this working

mparikh - April 8, 2007 - 07:39

nehalmehta has shown that how to do this. (I believe that he was doing this for some resume related job). Perhaps he will be kind enough to put this up.

We have this stuff

nehalmehta - April 8, 2007 - 22:27

I do indeed have this working. However we are really swamped with work. I will need to make this very generic (cannot be shared as-is due to confidentiality agreements). I should have this documented (btw works for both Windows and Linux) in the next three weeks or so

Nehal Mehta

Resume site

Scorpiodragonk - May 12, 2007 - 01:27

I am now webmaster of a resume site and want to use Drupal for it. The users of course use .doc files but we need them to convert automatically to Text for drupal insertion upon upload. Any help would be appreciated.

Greg

www.krynen.com
www.PurpleDragonGifts.com - Mythos and Beyond

bounty, perhaps?

pwolanin - May 12, 2007 - 14:24

Perhaps offering a bounty for a publicly available module would encourage nehalmehta to get this done?

We (openMalo) apologize for

nehalmehta - May 14, 2007 - 07:13

We (openMalo) apologize for the late response. The truth of the matter is that we are
drowning in drupal work. We have so much stuff working and yet have no time
to document. I would be happy to provide two hour of my time -- pro bono --
to real needs in this thread; if that will suffice. Trust me; the
documentation takes a lot longer. I tried producing a video on this;
but even that was taking too long.
Bounties are unlikely to help. The per hour costs of doing this and the amount of time needed to make this work makes it financially not feasible. We
would be happy to do this without any bounty; if we had the time.
Greg : Please PM me on this.

commit a project?

pwolanin - May 14, 2007 - 12:20

Can you commit the code as a new module here? Even if do it without making any releases (so no "public") downloaded, it would provide the basis for others to collaborate. Or, commit it to a sandbox in CVS and post a link to it.

Or just comment what tools

tostinni - May 14, 2007 - 14:47

Or just comment what tools you used ?
The problem isn't (I think) building a module, but getting the right conversion tools.
I was investigating a little but couldn't find a suitable tool...

We use open office tool to

nehalmehta - May 16, 2007 - 22:39

We use open office tool to do this conversion.. open office has command line conversion tool for this..we configure this with cron jobs of Drupal...fidelity of the conversion from doc to pdf is pretty good from resume perspective..

Can you give a little more details ?

tostinni - May 17, 2007 - 21:35

OOo was the best solution I could found but there's so many thread on OOo forums regarding command line conversion that I didn't take the time to test them, do you have a simple command line to achieve this ?
Will this work also for xls documents ? In excel you can define the printed area, so under windows, pdf converter catch it and display it nicely.

Regarding OOo per se, I was reluctant because it seems like using a bazooka to kill a mosquito :D but as I couldn't find any other tool, I was choiceless.
Any comment on setting up OOo for servers ? I imagine there's some options to install a stripped out version and also to use command line only (to use SSH...).

Thanks a lot for your comments.

more details

nehalmehta - May 18, 2007 - 16:57

Ahh.. Now you are begining to see why this is difficult to document (even though it is easy to accomplish) I am sorry to give these fragments of knowledge in titbits. However ask away and I will try to answer.

Yes; there is a command line interface to do this. You write a macro to accomplish this in the wonderful Basic dialect of oOO. Then call the macro. Either google or look at the following site: http://www.oooforum.org/forum/viewtopic.phtml?t=3772.

Now, as per the requirements of orginal post, if you want to save the pdf version of the file instead
of the doc version of the file, you will need to something different than what we are doing. But in a nutshell, we create a copy of the file in PDF (jnstead of doing the replacement). This is done through cron jobs (however the functionality can be easily modified to do inline replacement of doc files).

In yet another implementation (it seems that Drupal is popular for resume sites), we have this conversion as a utility (that occupies a whole virtual server with 178 MB RAM; yes a complete overkill). This can be done very easily on modern linux distros (suse, rhat);particularly with Xen and/or UML. We used expect to ssh in with public encryprtion.

There are other choices of conversions; if you have money to spare. However for free, you cannot beat this solution. (Of course, whether this is free is debatable).

Haven't tried for xls documents. All of the use cases (remember we are dealing with resumes) had to do with word documents.

we are intrested towork with your company in drupal integartion

softscripts - April 9, 2007 - 16:00

hi

we been working on drupal projects you can contact me ,we can discuss and start working

srinununna@gmail.com

aim softscripts
msn softscripts

skype softscripts

yahoo softscripts_01@yahoo.com

also interested

sampelo - May 4, 2007 - 17:08

in this.

thank you for sharing your code

Has there been any progress

chrism2671 - June 10, 2008 - 12:42

Has there been any progress on this for a packaged version of this functionality?

Maybe a CCK field type for 'document' that accepts any standard doctype but always returns a PDF?

Cheers,
Chris.

 
 

Drupal is a registered trademark of Dries Buytaert.