..use the actual code given. Note that it uses responseBody, not responseText. And it saves the binary data somewhere.
I tried the code as given (using appropriate paths and a sample PDF on our intranet) but it crashed out on trying to save the responseBody with "Array size exceeds maximum limit", probably because the file was too big for LotusScript. So you could try keeping the file as a VbScript, using Shell to call it via cscript.exe, then adding the file that it creates to a NotesRichTextItem
Feedback response number WEBB87R6T9 created by Wayne Gibbons on 07/27/2010