Convert InfoPath to PDF

⌘K

This activity allows user to Convert InfoPath to PDF and save to document library.

SharePoint Designer phrase

convert_infopath_to_pdf_1
Parameters

Input parameters

ParameterDescriptionExample
SourceSiteURLThe URL of a source SharePoint site. If the value field is empty,current site will be usedhttps://contoso/SiteUrl; https://contoso/Sites/SiteUrl;[%Workflow Context:Current Site URL%]/subSite
SourceListThe list where the InfoPath form is. The value could be list name, GUID or list URL (the web site relative URL). If the value field is empty,current list will be usedDocuments[%Workflow Context: List ID %]/Lists/ Documents
SourceItemThe URL of the InfoPath form to be converted. You can use absolute URL as well as web site relative URL. Or you canto specify the list item ID.[%Variable:ItemID%][%Current Item: Encoded Absolute URL%]/Source Documents/report.xml https://contoso/LibraryName/DocumentName.xml
DestinationSiteURLThe URL of a destination SharePoint site. If the value field is empty,current site will be usedhttps://contoso/SiteUrl; https://contoso/Sites/SiteUrl;[%Workflow Context:Current Site URL%]/subSite
DestinationListThe list where the PDF file will be created. The value could be list name, GUID or list URL (the web siterelative URL).Documents[%Workflow Context: List ID %]/Lists/ Documents
ViewNameSpecify the view name of InfoPath form that you want to convertmyView [%Variable:ViewName %]
Example
convert_infopath_to_pdf_2

Installation and Usage

To start using “Convert InfoPath to PDF” action, you should install Virto Converting App from the setup package. Please do the following prerequisites for correct working process.

  1. Virto Converting App must be installed on some server in your network. Microsoft InfoPath must be also installed on this server.
  1. Virto Converting App must be run under account which has access to your SharePoint Central admin and SharePoint itself. Ideally this account must be present in farm administrators group in Central Admin (Security\Manage farm administrators group).
  1. Please make sure that you are able to run Microsoft InfoPath under the account on the server, open any InfoPath form locally and save it as PDF.
  2. This account must have “Log on as service” permissions to avoid closing Virto Converting App when you log off from the server.
  3. To add “Log on as a service” permissions on domain controller:
  1. Run Start > Control Panel > Administrative Tools > Local Security Policy
  2. Select Local Policies > User Rights Assignment > Log on as a service
  3. Click Add User or Group, and then add the appropriate account to the list of accounts that possess the Log on as a service right.
  4. Configure connection of Virto Converting App to Central Admin according to described steps and start the app.

Normally, .NET Framework is already installed on a server or workstation. It can be obtained via Windows Update if necessary. InfoPath comes as a part of Microsoft Office Professional Plus 2013. Make sure you have this version of Microsoft Office, and that InfoPath is deployed. Make sure InfoPath is ready to work.

Unzip the installation “Virto.SharePoint.Activities.Setup” archive and locate the “Virto.ConvertingApp”

folder. Find setup.exe file there and run it.

convert_infopath_to_pdf_3

Click the “Install” button. The application starts immediately after installing.

convert_infopath_to_pdf_4

In the beginning you should configure it. Click on the “Settings” link. Fill form and click the “Apply”

button.

convert_infopath_to_pdf_5

Then you can start application. To start the app, you should click on “Start” button. Make sure that status is “online” and there are no errors in the “Current trace information” textbox. You can hide the app in the tray. To do it click on “Minimize” button.

convert_infopath_to_pdf_6

The application can be uninstalled via Add/Remove Programs.

How can we help?