Henry,
Thank you very much! Have it working.
FYI - I had to chnage the last line of code to:
downloadPDF("<a title="Link https//docraptorcom/docs" href="https://docraptor.com/docs%22" rel="nofollow" target="_blank">https://docraptor.com/docs"</a>, data);
That semicolon in there was throwing an error.
Question - had any success attaching the prodcued pdf back to a record in salesfroce (easily/automatically)?
Thank you,
Daniel