Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Converting RTF documents to PDF format

by mlh2003 (Scribe)
on Feb 14, 2005 at 13:47 UTC ( #430782=note: print w/replies, xml ) Need Help??

in reply to Re: Converting RTF documents to PDF format
in thread Converting RTF documents to PDF format

Thank you jplindstrom.

I was thinking more along the lines of being able to set up an application where a user can click on a document (Word format for instance) on their computer to upload it to the server. After uploading, convert it to PDF on the server (in an automated fashion so I don't have to manually go through the uploaded files each day and convert them to PDF).

  • Comment on Re^2: Converting RTF documents to PDF format

Replies are listed 'Best First'.
Re^3: Converting RTF documents to PDF format
by Corion (Pope) on Feb 14, 2005 at 13:50 UTC

    In theory, the suite of programs can do that, and in theory, these programs are also automatable. I say in theory because these programs need to be scripted either in their own, weird StarBASIC programming language or through an object model that is weird and unusable even for the standards of Java Object Model Designers. It would be a project producing many thanks if somebody made the filters of OOo into stand-alone converter programs, but the OOo build process is rather unapproachable.

      I've had OK luck using the Python automation stuff that's available. It interfaces with the same whacked out object model as the Java stuff, but it wasn't too hard to get it to convert an .sxc spreadsheet into an Excel file with some luck and experimenting. Granted it's still not Perl, but it's not hard to pick up enough *shudder* Python to get something working.

        I did look at the Object Model, and if you ever had a look at the Microsoft Office Object Model, you know that using the object model is akin to having no templating system when you want to output text - all text in OOo must be created programmatically, and cursor placement as well - where the MSOffice model gives you collections to manipulate a document, OOo only allows you document creation but no (convenient) modification methods. Of course, this problem stems from the fact that OOo is basically StarOffice, which was written by Sun in Java, and not oriented at the (existing, and even then well-working) MS Office object model. If one were to write an office suite, copying the MS Office object model is the best way.

Re^3: Converting RTF documents to PDF format
by dragonchild (Archbishop) on Feb 14, 2005 at 14:05 UTC
    Although is hard to work with, if you're putting together a static task, then I think you should look at that option. Then, if you're really nice, you could wrap that task in a Perl module and upload it to CPAN. :-)

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430782]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2021-10-17 20:39 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (72 votes). Check out past polls.