Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Seeking Comments & Feedback on Word/PDF project

by jedikaiti (Friar)
on Mar 17, 2010 at 20:04 UTC ( #829263=note: print w/ replies, xml ) Need Help??


in reply to Re: Seeking Comments & Feedback on Word/PDF project
in thread Seeking Comments & Feedback on Word/PDF project

When I talk about using Word, I mean using Template Toolkit to generate a few XML files that get zipped into a Word .docx file.

If I kept LaTeX, I would still have to fight it to make it look like the existing Word template (the existing scripts use an outdated format).

I also have no choice in keeping LaTeX - nobody on my team wants anything to do with it, and being the temp, even if I did want it, I couldn't keep it.

Kaiti


Comment on Re^2: Seeking Comments & Feedback on Word/PDF project
Re^3: Seeking Comments & Feedback on Word/PDF project
by Marshall (Prior) on Mar 18, 2010 at 00:24 UTC
    It appears these folks like Word, have a standard template that will set margins, and paragraph formats, fonts and all that stuff. I would be thinking along the lines of using Win32::OLE and control WinWord from Perl to insert your data into their template. The result will be a standard WinWord doc that you can direct Word to print as .pdf, XML or whatever. Trying to create a Winword doc yourself is a nightmare as will creating a .pdf that will have same look as their document format.

    I don't know complex this data/project is, but in the past I had one project where I wrote a Word macro that imported my data file, whopped on it and produced a report. The pre-processing was just enough for this Word macro to do its job. So it wasn't necessary for me to write Perl to control Word, just make a file simple enough that my Word Macro could use. Just an idea to consider...

      I'll have to look into that, thanks! That's a really good idea, and one that hadn't even occurred to me.

      Kaiti

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-04 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls