I am trying to get some of the control sets offered by OpenLayers into a project exported using QGIS2WEB. I am looking to use the export to Pdf function and have successfully created a test page using it. However I do not know how to integrate the function/script into the qgis2web project. Eventually I would also like to also add the draw feature control
I would recommend you place your extra code in the output file
resources/qgis2web.js. That is the file where
ol.Map is instantiated. You should therefore be able to match that up with the example page you cite.