Veeva Web2PDF allows you to easily create PDFs of websites for review. With a document lifecycle state user action, Web2PDF can send an email with a PDF of your website to users. To do this, you need to:
- Verify that the Staging URL, Website Protection Username, Website Protection Password, Members Area Username, and Members Area Password document fields exist on the document type you want to use with Web2PDF.
- Create a web action for Web2PDF.
- Create a user action so users can trigger the web action.
Verifying Document Fields
Before using Veeva Web2PDF in your Vault, the document type you want to use with Web2PDF (such as Promotional Piece > Web) must have the following fields. If not, you’ll need to create new document fields.
- Staging URL or equivalent field; this defines the web address for the site Web2PDF will convert. The web action’s URL includes a token for this field to pull in the web address.
- Optional: Website Protection Username and Website Protection Password fields; these fields are necessary if any of the websites you wish to convert require login credentials before the site loads. IF you need to create these fields, use the following settings:
- Website Protection Username: Type = Text, Maximum Length = 255
- Website Protection Password: Type = Text, Maximum Length = 100
- Optional: Members Area Username and Members Area Password fields; these fields are necessary if any of the websites you wish to convert have a login page protecting certain areas. If you need to create these fields, use the following settings:
- Members Area Username: Type = Text, Maximum Length = 255
- Members Area Password: Type = Text, Maximum Length = 100
- Optional: Device and Orientation fields; you can use these fields to specify which device and orientation you wish to generate a PDF for. If you need to create these fields, use the following settings:
- Device: Type = Picklist
- Orientation: Type = Picklist
You may need to create these picklists. Use the following values when creating the picklists:
- Device: Desktop, Smartphone, Tablet
- Orientation: Portrait, Landscape
Notes
- The web action URL includes
${User.email__v}
. This token points to the email address for the user who triggers the Web2PDF action. It is not a document field. - We recommend configuring the Device picklist document field to be multi-select so that your users can generate combined device PDFs.
Web Action
Note: PromoMats Vaults created after V14 have a Web2PDF web action by default.
Before configuring a user action, you need to create a Web2PDF web action. The following shows the necessary information for your web action.
- Document
- Field: Type
- This web action only works with documents.
https://www.veevaweb2pdf.com/crawl/crawlStartGet?url=${Document.staging_url__vs}&emailTo=${User.email__v}
- Field: URL
- Use this URL if none of your websites require login credentials.
Document.staging_url__vs
defines the URL for the website Web2PDF will convert, and emailTo points to the email address for the user who triggered this action. https://www.veevaweb2pdf.com/crawl/crawlStartGet?url=${Document.staging_url__vs}&emailTo=${User.email__v}&username=${Document.staging_username__c}&password=${Document.staging_password__c}
- Field: URL
- Use this URL if any of your websites require login credentials, captured in the
Document.staging_username__c
andDocument.staging_password__c tokens
. https://www.veevaweb2pdf.com/crawl/crawlStartGet?url=${Document.staging_url__vs}&emailTo=${User.email__v}&device=${Document.device__c}&orientation=${Document.orientation__c}
- Field: URL
- Use this URL if your website does not require login credentials, but you want to specify a device (
Document.device__c
) and an orientation (Document.orientation__c
) for Web2PDF to use when converting the website. https://www.veevaweb2pdf.com/crawl/crawlStartGet?url=${Document.staging_url__vs}&emailTo=${User.email__v}&memberUsername=${Document.members_area_username__c}&memberPassword=${Document.members_area_password__c}
- Field: URL
- Use this URL if any of your websites require Members Only area credentials, captured in the
Document.members_area_username__c
andDocument.members_area_password__c tokens
. https://www.veevaweb2pdf.com/crawl/crawlStartGeturl=${Document.staging_url__vs}&emailTo=${User.email__v}&username=${Document.staging_username__c}&password=${Document.staging_password__c}&device=${Document.device__c}&orientation=${Document.orientation__c}
- Field: URL
- Use this URL if your website require login credentials, and you want to specify a device (
Document.device__c
) and an orientation (Document.orientation__c
) for Web2PDF to use when converting the website. https://www.veevaweb2pdf.com/crawl/crawlStartGet?url=${Document.staging_url__vs}&emailTo=${User.email__v}&username=${Document.staging_username__c}&password=${Document.staging_password__c}}&memberUsername=${Document.members_area_username__c}&memberPassword=${Document.members_area_password__c}&device=${Document.device__c}&orientation=${Document.orientation__c}
- Field: URL
- Use this URL if your website requires password protection and a Members Only area, and you want to specify a device (
Document.device__c
) and an orientation (Document.orientation__c
) for Web2PDF to use when converting the website. https://www.veevaweb2pdf.com/crawl/crawlStartGet?url=${Document.staging_url_c}&emailTo=${User.emailv}&device=${Document.staging_devicec}&pageVisitedLimit=1&orientation=${Document.staging_orientation_c}
- Field: URL
- Use this URL if you want Web2PDF to convert only the landing page (
pageVisitedLimit=1
) of the website staging URL.
Notes
Veeva Web2PDF uses the TruWeb 3 engine by default. This is the recommended engine. If you experience issues with this engine, you can use the v2 engine by appending &engine=2
to the end of the staging URL.
User Action
You can add one or more user actions with the Web2PDF web action to any document lifecycle states you want to generate PDFs from. We recommend that you make the user action conditional, so that it only appears for documents that are websites with the URL included.
- Staging URL is not blank.
- Document type equals [the document type you plan to use with Web2PDF]. For example, Document type equals Promotional Piece > Web.