I'm using the 3rd party software EO.Pdf to generate a view as a pdf document. The software requires you to register a filter to the GlobalFilters by calling the method EO.Pdf.Mvc.MVCToPDF.RegisterFilter(typeof(GlobalFilters));documentation
I insert this code in a the Initialize method of a component, and register the component in my composer.
This works as it should, BUT, it messes with Umbraco Forms. I get an Object reference not set to an instance of an object error when posting an Umbraco Forms form which comes from EO.Pdf.
It could be a bug in EO.Pdf or Umbraco Forms, but I want to make sure I'm registering the filter correctly first.
How to register a global filter in Umbraco 8?
Hi!
I'm using the 3rd party software EO.Pdf to generate a view as a pdf document. The software requires you to register a filter to the GlobalFilters by calling the method
EO.Pdf.Mvc.MVCToPDF.RegisterFilter(typeof(GlobalFilters));
documentationI insert this code in a the Initialize method of a component, and register the component in my composer.
This works as it should, BUT, it messes with Umbraco Forms. I get an
Object reference not set to an instance of an object
error when posting an Umbraco Forms form which comes from EO.Pdf.It could be a bug in EO.Pdf or Umbraco Forms, but I want to make sure I'm registering the filter correctly first.
Can anyone help on the matter? Thanks!
Full stack trace:
is working on a reply...