Try our conversational search powered by Generative AI!

XForm or pagetype to create PDF


I would like a form or a pagetype that the editors can edit in EPiServer when needed and the customer can fill in either online with field validations or choose to download it as a PDF. If the customer downloads it all the field validations from the HTML form should be intact so that the customer can be helped when filling it at home.

Can this be done with EPiServer? Is there already such a type or feature that I can use?

Jun 22, 2016 17:00

Probably require custom code for that. 

Suggestion is to get back to customer and check if they can consider an easier solution with online form (new form addon recommended) and combined with a more generic pdf.

Creating a custom pdf on the fly including validation will probably cost more in the end than its worth. Only my spontaneous reflection...would be fun to code though :)

Jun 22, 2016 18:49

Hi Elisabeth,

How about a regular MVC view with validation and everything, and ViewAsPdf when the user wants to print / export the form:

This won't make the PDF editable (with all the validation rules), but it could be a cheap alternative :)

Edited, Jun 22, 2016 22:16

Rotativa works pretty good for most sites, but last time I checked, it does not work on Azure websites due to restrictions to executing external processes. If that is the case, a cloud soultion is an easy alternative, such as

Jun 23, 2016 7:59

Here's also a blog post on creating a PDF channel for Episerver:

It's from 2012 though

Jun 23, 2016 8:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.