November Happy Hour will be moved to Thursday December 5th.

XForm or pagetype to create PDF

Vote:
 

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?

#150573
Jun 22, 2016 17:00
Vote:
 

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 :)

#150574
Jun 22, 2016 18:49
Vote:
 

Hi Elisabeth,

How about a regular MVC view with validation and everything, and ViewAsPdf when the user wants to print / export the form: https://github.com/webgio/Rotativa/

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

#150582
Edited, Jun 22, 2016 22:16
Vote:
 

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 html2pdfrocket.com

#150586
Jun 23, 2016 7:59
Vote:
 

Here's also a blog post on creating a PDF channel for Episerver: http://joelabrahamsson.com/building-a-pdf-channel-for-episerver-7/

It's from 2012 though

#150587
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.