Re: [groff] Groff & tbl as a report generator

2018-07-30 Thread Blake McBride
The following code does what I need: https://github.com/kiss-web/Kiss/blob/master/src/main/java/org/kissweb/Groff.java On Tue, Jul 24, 2018 at 12:26 PM Blake McBride wrote: > A few years ago I thought of a really, really good use for groff and tbl. > Thought I'd share. > > I write (web-based) b

Re: [groff] Groff & tbl as a report generator

2018-07-29 Thread Larry Kollar
Blake McBride wrote: > Thanks. I've seen a tool or two that converts HTML to PDF in the past but > I immediately shied away from them for the following reasons. > > 1. I figured HTML was just too loosey-goosey with the layout. I wanted > better control. > > 2. I figured HTML didn't deal with

Re: [groff] Groff & tbl as a report generator

2018-07-25 Thread Mike Bianchi
Blake McBride wrote: > : > Then, a few years ago, I thought of generating groff/tbl input > instead and then calling those tools to generate the final PDF output. On Wed, Jul 25, 2018 at 09:47:49AM +1000, Robert Thorsby wrote: > : > Using shell scripts heavily reliant on awk which are

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread Robert Thorsby
On 25/07/18 04:57:13, James K. Lowden wrote: On Tue, 24 Jul 2018 12:26:57 -0500 Blake McBride wrote: > Then, a few years ago, I thought of generating groff/tbl input > instead and then calling those tools to generate the final PDF output. You're not the only one. https://github.com/jklowde

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread John Gardner
*> Thanks! I think for what I am doing, groff/tbl is a simpler solution.* Oh I wasn't suggesting wkhtmltopdf as any alternative to groff (hell, I prefer *roff over anything else for preparing PDF documents). Merely as a good tool for decent HTML to PDF conversion (because there's a lot of crappy

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread Blake McBride
Thanks! I think for what I am doing, groff/tbl is a simpler solution. On Tue, Jul 24, 2018 at 4:45 PM John Gardner wrote: > Use wkhtmltopdf if you need a graphics-intensive output (such as > background images, colour fills and client logos embedded beside each table > record). This was the form

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread Damian McGuckin
I used *roff ages ago for creating invoices and accounting reports driven by a timesheeting/debtors system which was built over an SQL database. It worked really well. groff pulled in Postscript templates which contained logos and colored stuff for nice looking pages. Regards - Damian Pa

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread John Gardner
Use wkhtmltopdf if you need a graphics-intensive output (such as background images, colour fills and client logos embedded beside each table record). This was the format an agency I worked at required be churned out fast, and it had to match what was presented by the webapp. Thankfully the HTML/CSS

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread James K. Lowden
On Tue, 24 Jul 2018 12:26:57 -0500 Blake McBride wrote: > Then, a few years ago, I thought of generating groff/tbl input > instead and then calling those tools to generate the final PDF output. You're not the only one. https://github.com/jklowden/sqlrpt I wrote it last year to make my use of S

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread Blake McBride
Thanks. I've seen a tool or two that converts HTML to PDF in the past but I immediately shied away from them for the following reasons. 1. I figured HTML was just too loosey-goosey with the layout. I wanted better control. 2. I figured HTML didn't deal with paging and repeating page headers, c

Re: [groff] Groff & tbl as a report generator

2018-07-24 Thread John Gardner
Hi Blake, great to hear! Always nice to hear another Troff success story. =) I know the feeling about finding decent PDF converters. The best one I know of is wkhtmltopdf , which uses WebKit's rendering engine to convert an HTML/CSS-enriched webpage into a correctly-laye

[groff] Groff & tbl as a report generator

2018-07-24 Thread Blake McBride
A few years ago I thought of a really, really good use for groff and tbl. Thought I'd share. I write (web-based) business applications. Often I have to generate reports which largely mean PDF files. In the past, I used some open-source PDF generation utilities. They worked, but what a nightmare