PDF generator for EPiServer pages

 

Hi,

We're having the functionality that you could download the pdf generated automatically from Product pages HTML in EPiServer.

We've used RotivaToPDF tool but it's having some issues like mess up the layout and slow in performance when generating PDF.

Does anyone have good references for PDF generate webservice - EPiServer Addons or implementing Convert HTML to PDF webservice. 

Many thanks.

#177213 Apr 05, 2017 13:38
  • Member since: 2004
     

    We use this service for creating PDF: https://www.html2pdfrocket.com/

    Simple API and not very expensive.

    #177214 Apr 05, 2017 14:06
  • Member since: 2014
     

    This is not a WebService but I can recomend this one.

    https://www.nuget.org/packages/TuesPechkin/

    It's a .NET wrapper for wkhtmltopdf which in turn uses QT Webkit to render a page before converting it to a PDF.

    This is the converter configuration I'm using and I haven't had any performance issues.

      public static IConverter Converter =
            new ThreadSafeConverter(
                new RemotingToolset<PdfToolset>(
                    new Win64EmbeddedDeployment(
                        new TempFolderDeployment())));

    #177217 Apr 05, 2017 14:54
  •  

    Great thanks Erik & Peter!

    I will give a try to see what is best suitable for us.

    Regards

    #177256 Apr 06, 2017 10:49
  • Member since: 2009
     

    Not sure if this is important to you, but if I recall correctly, TuesPechkin does not work if your site is hosted in Azure. 

    #177261 Apr 06, 2017 12:00
  • Member since: 2014
     

    Per is correct about TuesPechkin (wkhtmltopdf) not being Azure Websites compatible.

    wkhtmltopdf uses Window's GDI APIs which currently don't work on Azure Websites.

    If your site is on Azure I'd vote for https://www.html2pdfrocket.com/ as suggested by Erik.

    #177262 Apr 06, 2017 12:41
  •  

    Thanks. My site is running on Azure then I will go for https://www.html2pdfrocket.com/ service.

    #177264 Apr 06, 2017 13:38