I need to print content from document that is saved in ARIS Document Storage to ARIS report.

I know how to do that from document that I have in the same folder where is the report script, but I have document in ADS that is linked to model attribute (Document Link 1). 

Here is example of code that print content of document that is in the same folder as report script. 

    var fileDocument = Context.getFile("document.docx", Constants.LOCATION_SCRIPT)
    var objectInsert = Context.getOutputObject("temp.doc", fileDocument)
    oOutput.InsertDocument(objectInsert, false, false)

Can I adapt this code to print document from ADS or there is another way to do that?

Best regards,