Platform: Lazarus 1.8.4 FPC 3.0.4 OS: Windows Server 2016 (All updates)
Goal:
I want my users to be able to click a button and in the background an existing .html template file is silently converted to a .pdf file. I will do StringReplace() on the html file just before the conversion to .pdf. I can assign the name of the .pdf programmatically, I don't want to involve the user during the conversion. I also wd like to use the built-in .Pdf printer in the OS. Sometimes it's called "Microsoft Print to PDF" and other times it's named "Print to PDF"
Questions:
Is there a way to do this using only Lazarus and the OS?
Is there a way to do this using a browser, like IE or Brave or Chrome?
(I don't want to use the CEF4 libraries. They're huge and using them is cumbersome.
Please include code snippets to help me out.
Remember that I don't want the user to be involved in clicking things in a dialog box to make choices about what to name the file etc.
If none of the above, then, is there a commercial component that does this? I already have a licensed commercial copy of QuickPDF installed, but that deals with viewing and manipulating .Pdfs, not converting .html to .Pdf.
Thanks in advance for any help you can provide.