However I cannot get the pdf.cshtml file to actually load/run when the user visits say an Article page, but with pdf as the extension (or /pdf as the repo suggests).
We don't want to use a paid package because it's too expensive and would rather solve this ourselves.
Serving generated PDF/vCard from content
We are developing a site that needs PDF and vCard export of certain document types.
For PDF,
We use wkhtmltopdf and followed the instructions at https://github.com/ma1f/umbraco/blob/master/pdf.md.
However I cannot get the pdf.cshtml file to actually load/run when the user visits say an Article page, but with pdf as the extension (or /pdf as the repo suggests).
We don't want to use a paid package because it's too expensive and would rather solve this ourselves.
Any help would be super useful :)
The following is the code in the pdf.cshtml file:
is working on a reply...