There are a few possible solutions.
Option 1
The first thing to do is publish the results to your web browser. Which is very quick, and has a what I consider an important step in that you get to check the results are as you expect them. Many a time when I publish the results it becomes very obvious that I’ve forgotten a step or I’ve forgotten to set the publishing order to for the fleets, then use the Print to PDFin the browser this is very quick. You could print them to a DropBox or pCloud folder with predefined file names which have been shared with the person who wants them for the publishing this way once you print to PDF you have nothing else to do except notify them somehow they are updated. You could of course then email them but that is another process for the busy scorer so if it was me I would want to avoid this manual email step.
Note Chrome browser has built in print to PDF and with Windows 10 there is a Microsoft Print to PDF as well, I use the Chrome browsers print to PDF which works well
Option 2
This is an interesting one.
Use WKHTMLtoPDF to convert the HTML to PDF You can download this from https://wkhtmltopdf.org/
Then create a one line batch file with these contents (adjust if yours is located elsewhere)
“C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe” %1 SWout.pdf
I saved this file to C:\Users\Public\Documents\Sailwave\Extras\SWPDF.bat
Then publish as normal but to an installed application
For the Application give the name of the SWPDF.bat we created earlier
When you click publish, a PDF SWout.pdf is created (sample attached)
WKHTMLtoPDF is available for 32 and 64 bit windows as well as Mac and Linux
There is also a Python module which uses this called PDFKit.
Python can also send emails with attachments with only a few lines of code so if the application is a Python script you could very easily publish and email a PDF fully automatically. I would advise using the preview button to check the results first and then click publish if you are happy
If anyone needs any help with this let me know.
I think this is quite cool anyone else?
Jon
Sender notified by
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality4&)
···
Jon Eskdale
03333 443377
07530 112233