Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Using Perl and Win32::OLE to Convert XML/XSLT Opened in Internet Explorer to PDF Documentsby Jim (Curate) |
on Feb 22, 2014 at 16:15 UTC ( [id://1075835]=perlquestion: print w/replies, xml ) | Need Help?? |
Jim has asked for the wisdom of the Perl Monks concerning the following question: On my Microsoft Windows computer, XML files (.xml) are associated with Internet Explorer. Windows will, by default, open an XML document in Internet Explorer and render it nicely using its associated XSLT stylesheet. On the same computer, I have Adobe Acrobat Pro installed. I can easily convert the XML document opened in Internet Explorer by clicking the Convert button and selecting "Convert Web Page to PDF..." The resultant PDF document is exactly what I want. Now I need to do this same XML/XSLT-to-PDF conversion using Internet Explorer for hundreds of files. I'd like to automate the task using Perl and OLE Automation via Win32::OLE. I've done similar work in the past to convert RTF and Word documents to PDF documents using Win32::OLE. Now, I'm struggling getting starting wielding Internet Explorer with it. One difficulty I'm having is searching the web for useful resources and helpful tips—particularly the magic OLE incantations I must intone. Web search results for keywords that I think will return what I need tend instead to drown me in a sea of unrelated and unhelpful pages. There's just too much noisy stuff on the interwebs about IE, OLE, XML and PDF. Can you please point me to resources either on PerlMonks or elsewhere that will help me get started? Any offer of guidance is greatly appreciated. Thanks! Jim
Back to
Seekers of Perl Wisdom
|
|