I'm trying to convert some Word .doc files to Adobe .pdf. In the process we're also changing the naming conventions so foo.doc might become bar.pdf as well as storing the new filename and path in a database.
We're not a Windows shop and don't have Word. So all the fancy stuff you might be able to do with the Win32::OLE modules isn't possible.
What I envisoned so far with the script is this:
1) Crawl specific directories
2) Pick out the .doc file
3) query the DB to figure out the new file name
4) convert the .doc file to .pdf
5) move the .pdf to the correct location
6) delete the old .doc file
7) update the DB with the new info
8) loop back to the start
With perl, I can do all except 4) convert the .doc file to .pdf. So first thing I did was check cpan.org. I didn't seem to find anything dealing with .doc to .pdf conversion. I found the PDF and PDF::API2 modules (I've used them before and I'm not thrilled to see them again). Everything I could find regarding Word seemed to be related to the Win32::OLE modules.
So any suggestions for converting .doc to .pdf on Linux?
In reply to Convert .doc to .pdf by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |