ioos / compliance-checker-web

Web-based front-end for the IOOS Compliance Checker project
https://compliance.ioos.us
MIT License
5 stars 10 forks source link

output options #21

Open MathewBiddle opened 8 years ago

MathewBiddle commented 8 years ago

Would it be possible for the web compliance checker to output in pdf, as an option? I've been doing this by printing the page to a pdf, but for some reason the color formatting doesn't come through. This makes it difficult for another party to review the recorded output I've provided.

Also, in the Corrective Actions section there is a column for Priority. While I can deduce the a priority of one equates to high, it would be nice for this to be defined somewhere.

lukecampbell commented 8 years ago

I'm not certain but I suspect it would be a fair amount of work to output to PDF. I generally try to shy away from PDFs, they aren't machine readable and after writing a parser to read water levels for GLOS from a Army Corps published pdf, I encourage everyone to keep to machine-readable formats.

benjwadams commented 6 years ago

Second issue has been addressed by latest version.

PDF is a pretty huge spec with lots of quirks, and while it might be possible to go from HTML output to PDF with certain utilities, I've often found that there are inconsistencies when converting various styling elements in the original documents. However, compliance checker recently had a design overhaul, and part of the changes would fairly easily allow LaTeX tables to be generated, (see https://pypi.org/project/tabulate/) so if this is of interest, perhaps create an issue on the main compliance checker repo.

MathewBiddle commented 6 years ago

I don't think the pdf output is necessary. I was hoping it could be an easy addition to simplify my correspondence with data providers, but it sounds like it's more difficult than expected. Now that there is an API (https://github.com/ioos/compliance-checker-web/wiki/API), providing json output, it should be easy to write my own formatter, if needed. Thanks for looking into this though!

benjwadams commented 1 year ago

This is an old issue, but through utilities such as Pandoc, it'd be possible to transform the HTML output to PDF.