If you want parts of your page printed directly, I strongly suggest you consider using @print media queries to hide the irrelevant bits and then simply call window.print() in the current page. With this you will let the browser print the best version of the page it can without passing it through an additional tool (PDF export).
The KB article you have found pertains to Telerik Reporting, which is a server-side tool. The actual code is in the code-behind:
which is added to the PDF generated by Telerik Reporting.
Such a feature is not present in the Kendo Drawing API, the major reason being that its generates a base64 string that is passed through the browser FileAPI or a blob to generate a file. You can try adding a <script> block with this content at the end of the PDF, but I cannot guarantee it will work. The way the PDF is provided in both cases is extremely different:
- with the KB and Telerik Reporting a file is streamed to a hidden iframe where the script may be executed, because the browser has already downloaded the file
Telerik by Progress