HTMLPDFer

Just released HTMLPDFer which converts HTML to PDF via a Web API. Free and Open Source!
http://htmlpdfer.com

HTMLPDFer is a Xojo Console App using Aloe Express + wkHTMLtoPDF to easily convert HTML into PDF.

Awesome, I will have a try later this day. It seems to be exactly what we currently need.

We’ll be releasing an update to support HTML headers and footers this week! Our logo is just a base64 image in the new HTMLHeader. :slight_smile:

awesome!

can we have the code for doing the table??

I understand that is done by wkhtmltopdf

i can see in the video, that Hal add in some code for the css that do the table.
the sample project does not include the table css code

i have been using wkhtmltopdf for ages in my application…

got it working…

Great work Hal!
I have the exact same solution in a product I released three year ago. I should have open-sourced it…

[quote=381906:@Jeremie Leroy]Great work Hal!
I have the exact same solution in a product I released three year ago. I should have open-sourced it…[/quote]

great idea… jeremie… what do yours do???

At XDC lets see if we can get it to work with BKS Shorts. I can’t imagine it being very hard.

It’s exactly the same (wkhtmltopdf) but not bundled in a console app and without Aloe Express.

How does this all work with GPL? Using it would mean that you’d have to open source the software that’s using it, no? Meaning, if we made it part of Shorts we’d surely have to open source Shorts. But, if we provided an example of how to use wkhtmltopdf would we have to open source Shorts then? The GPL scares the heck out of me most days.

[quote=381897:@Richard Duke]i can see in the video, that Hal add in some code for the css that do the table.
the sample project does not include the table css code

i have been using wkhtmltopdf for ages in my application…[/quote]

I got that css from https://www.w3schools.com/html/html_tables.asp

[code]
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

tr:nth-child(even) {
background-color: #dddddd;
}
[/code]

just found this
https://groups.google.com/forum/#!searchin/wkhtmltopdf-general/license|sort:date/wkhtmltopdf-general/e-wn-J4i6S8/0FXfmKYYCQAJ

https://groups.google.com/forum/#!searchin/wkhtmltopdf-general/license|sort:date/wkhtmltopdf-general/QXoyGWueqvE/1LG0hYOGOxUJ

[quote=381928:@Hal Gumbert]table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

tr:nth-child(even) {
background-color: #dddddd;
}[/quote]

thanks Hal… with try that out later.

Just updated HTMLPDFer to handle HTML Headers and Footers.

Now comes with three web and FileMaker demos:

  • Header and Footer with Base64 Header Image
  • Text Header and Footer
  • No Header

http://htmlpdfer.com/