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

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...

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

Replies are listed 'Best First'.
Re^4: Seeking Comments & Feedback on Word/PDF project
by jedikaiti (Hermit) on Mar 18, 2010 at 15:23 UTC

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

    Kaiti