Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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

by jedikaiti (Hermit)
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.


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

Replies are listed 'Best First'.
Re^3: Seeking Comments & Feedback on Word/PDF project
by Marshall (Abbot) 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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://829263]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-06-18 01:00 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (107 votes). Check out past polls.