How to use Resource File on file viewer plugin?

I'm using this plugin(file viewer plugin) to view pdf file for example. Its work if i using the url

but the problem is i wanna use the pdf that i store on data --> resource

and use the runtime path of tc.pdf as the filepath input parameter for file viewer plugin

but the plugin not working. My question is how to use resource file correctly?

Hello reynald.

Did you set the Deploy Action and Target Directory properties in the resource?
The Target Directory is optional, but the Deploy Action must be set to Deploy to Target Directory, or your resource will not be available publicly.


I'm having the same problem.
I'm doing the same as reynald but I already put the deploy action: Deploy to Target Directory

(target directory: Documents)

archive: text.pdf

I tried to put:







nothing work... :(