How to use Resource File on file viewer plugin?

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.

Cheers.

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:

"/AppName/Documents/text.pdf"

"AppName/Documents/text.pdf"

"/Documents/text.pdf"

"Documents/text.pdf"

"Documents\text.pdf"

Resources.text_pdf.URL


nothing work... :(