Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 Documents

by 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

  • Comment on Using Perl and Win32::OLE to Convert XML/XSLT Opened in Internet Explorer to PDF Documents

Replies are listed 'Best First'.
Re: Using Perl and Win32::OLE to Convert XML/XSLT Opened in Internet Explorer to PDF Documents
by Anonymous Monk on Feb 22, 2014 at 19:33 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1075835]
Approved by hdb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found