Solution
HTML files can be opened directly into Microsoft Word. This will ensure that the formatting does not change.
By using the code below, you can temporarily open the HTML file with Microsoft Word and make use of the export to PDF feature.
After the export has been completed, LabVIEW will close Microsoft Word.