Question

I have a requirement to produce PDF's for one my .Net web applications currently hosted on Appharbor.

Traditionally, I would simply install latex on the machine, and create PDF's on the fly with pdflatex. This requirement is to display sections in HTML to end users, but also have a downloadable PDF - so it's slightly different.

I have found several (free) external HTML to PDF converters which may be applicable in this instance. However, I haven't found any libraries allowing me to do this purely programatically.

What advice would you give if I plan to continue using Appharbor?

Should I set up a seperate EC2 (or similar) instance to run such an application from? Or is there a better alternative?

Was it helpful?

Solution

I'd recommend using something like DocRaptor. Note that you can probably continue with your current scheme if you place the relevant pdflatex executable (and it doesn't require the entire Latex runtime) alongside the code you push to AppHarbor. AppHarbor will also be introducing background workers, which might be a good fit for this sort of work.

OTHER TIPS

Note that if you're trying to use Rotativa or using wkhtmltopdf with routes obtained from HttpContext you'll need to use this workaround:

http://support.appharbor.com/kb/getting-started/workaround-for-generating-absolute-urls-without-port-number

or install the premotion fix from Nuget:

https://github.com/trilobyte/Premotion-AspNet-AppHarbor-Integration

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top