Stefan Steiger
Stefan Steiger
@levicki: Sadly, wkhtmltopdf uses QT-Webkit, which is an ancient version of Chrome/Chromium-Embedded. You're better off using the Chrome-Devtools protocol, using headless-chrome as server. There are several implementations for C#, see...
For printing to PDF (vb.net) ``` Imports MasterDevs.ChromeDevTools Imports MasterDevs.ChromeDevTools.Protocol.Chrome.Browser Imports MasterDevs.ChromeDevTools.Protocol.Chrome.Page Imports MasterDevs.ChromeDevTools.Protocol.Chrome.Target Namespace Portal_Convert.CdpConverter Public Class ChromiumBasedConverter Private Delegate Function UnitConversion_t(ByVal value As Double) As Double Public Shared...
Equivalent C#-Code: ``` using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Security; using System.Text; using System.Threading.Tasks; using Microsoft.VisualBasic; using MasterDevs.ChromeDevTools; using...
Sure, send me a pull-request with your contribution, and I'll merge it. Just, please, if you want me to merge it: - don't change the FontResolver - do not remove...
Required polyfills ``` // for IE8 if (!Object.getOwnPropertyNames) { Object.getOwnPropertyNames = function (obj: any): string[] { let arr = []; for (let k in obj) { if (obj.hasOwnProperty(k)) arr.push(k); }...
@anko: I get this error message if I use [spotify](http://opensource.spotify.com/cefbuilds/index.html) "**CEF source**" instead of "**Minimal Distribution**" as `/path/to/cef/release`. as the readme says: ``` cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCEF_ROOT=/path/to/cef/release /path/to/cef-pdf ninja...
Implemented it myselfs. Still needs a little polishing, but the heavy-lifting is done. https://github.com/ststeiger/cef-pdf/blob/master/src/Bmp.h https://github.com/ststeiger/cef-pdf/blob/master/src/Bmp.cpp https://github.com/ststeiger/cef-pdf/blob/master/src/RenderHandler.cpp