From 7b785c335dd2d68ca7383bca9cb9dd0c70874f7e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 21 Aug 2020 00:26:37 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e4dd0137..6e73088c 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -4,6 +4,16 @@ REPORTING +COMMERCIAL OPTIONS +=-=-=-=-=-=-=-=-=- + +Look at stimulsoft again, see email, it appears I can buy a single developer and just distribute it with ayanova at will no extra royalties etc + + + + +ROLLING MY OWN +=-=-=-=-=-=-=-=- DESIGN Users will be able to design report templates inside AyaNova (unless it doesn't seperate as a bundle and bloats too much then maybe as an external app) @@ -23,7 +33,12 @@ JSReport renders at server and returns result to client, the API docs show prett Note that the api docs also give some ideas as to how I should structure my api HTML -> PDF + JSREPORT has a comparison table of various html to pdf tools here: + https://jsreport.net/learn/pdf-recipes + + Headless Chrome + FAST SPEED (according to jsreport docs) jsreport uses headless chrome by default which has built in pdf from html ability. they use a NODE library Puppeteer for it, but there is a c# wrapper for .net core linux windows mac: https://github.com/hardkoded/puppeteer-sharp some kind of example that may be relevant: https://github.com/kblok/netconfar-puppeteer-sharp-demo/blob/master/hacking-the-browser-api/Controllers/MediumController.cs#L13 @@ -39,12 +54,31 @@ HTML -> PDF These things kind of turned me off this a bit, it's not plug and play and simple WeasyPrint - https://github.com/Kozea/WeasyPrint + SLOWEST SPEED + https://github.com/Kozea/WeasyPrint based on python, does it's own rendering doesn't rely on a web browser engine like the rest + free, recommended by wkhtmltopdf author as an alternative + May be slow, slower than the other options likely, has some installation steps that are a bit convoluted but ironically only for windows as it's included in package managers + Very good support for modern css3 PAGE properties apparently + WRAPPER + https://github.com/balbarak/WeasyPrint-netcore/blob/master/src/Balbarak.WeasyPrint/WeasyPrintClient.cs wkhtmltopdf + MEDIUM SPEED https://wkhtmltopdf.org/downloads.html - Well used, old but likely enough for our purposes + Well used, old based on older webkit so doesn't support css3 but likely enough for our purposes + has an easy installer for all platforms + free + Has warnings about how unsanitized html can take down a server or own it somehow + WRAPPERS + https://github.com/carloscds/HtmlToPDFCore/tree/master/HtmlToPDFCore This one looks cool, all platforms supported includes binary possibly? + https://blog.elmah.io/generate-a-pdf-from-asp-net-core-for-free/ + + +HTML -> DOCX + This is a possiblity that needs to be researched, instead of pdf go docx which is in theory multi platform and openable on other devices? Not sure + https://github.com/EricWhiteDev/Open-Xml-PowerTools + TEMPLATE ENGINE Handlebars by default for jsreport which is easy peasy to work with