Microsoft Office InfoPath 2007 extended the reach of
InfoPath forms by offering the ability to fill out forms through a web browser
without requiring the InfoPath client application to be installed on the users'
computers. Such forms are called web-based forms and are created using
browser-enabled form templates that are published to a SharePoint server
running InfoPath Forms Services.
The Portable Document Format (PDF) is a popular and widely
used format for sharing, displaying, and printing documents. There is a free
add-in available, 2007
Microsoft Office Add-in: Microsoft Save as PDF, which integrates with the
InfoPath client application to allow users to export a view from a form to PDF.
You can also use the InfoPath 2007 object model to programmatically export the
current view of a form to PDF. However, both these options are not available
for web-based forms. This article presents a technique that will enable you to
convert web-based forms to PDF and allow users to display, save, and print
web-based forms as PDF documents.