I did a first attempt to use Keisuke Miyako’s plugin wkhtmltopdf, but probably
am doing something wrong:
I’m on OSX Ventura, 4D 18.6. With the example code I made a test method with my
own simple html testpage:
<!doctype html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="Styles.css">
<title>My first test</title>
</head>
<body>
<header><button>Home</button>Just testing</header>
<p class=KopregelSong ID=001_0113>Header</p>
<p class=TekstsongKlein>Just one line</p>
<footer>
<button> button </button>
</footer>
</body>
</html>
In the 4D example code I changed $options.grayscale:=False and $options.zoom:=1
As a result I get a PDF file which is 1.8 Mb, containing 2.304 empty pages, not
really what I expected. When I remove the <button> elements in the html, I get
a PDF with a text-only badly formatted page.
I’m problably missing a point in using the plugin and/or the example code?
Regards, Marius Veenker
> Op 3 nov. 2019, om 23:05 heeft Keisuke Miyako via 4D_Tech
> <[email protected]> het volgende geschreven:
>
> example of calling wkhtmltopdf from 4D
>
> https://github.com/miyako/4d-component-wkhtmltopdf/
>
> 2019/11/04 1:45、Dani Beaubien via 4D_Tech
> <[email protected]<mailto:[email protected]>>のメール:
> I use wkhtmltopdf, It is cross platform and works very well.
>
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************