Hello guys,


I want to preview a pdf file into my web application.

The pdf data came from RESTful as Base64. I converted the data to binary and tried using the "Web Preview" plugin (from here). Unfortunately, this plugin isn't working for me.


There is a simple way to preview pdf into a web application?


Thanks!!!

  

Hi,

Did you look into this post? To see if it's the same problem. Because the version that I attached there is working for me.

Regards,

Marcelo

You could create a structure of file type (that is inside the webpreviewer library) that have the filename, filetype and content and then fill a variable of file type with database fields such as binary content, filename and filetype, and then use the web previewer webblock with this variable as weblock input, and then I think it will work.

Solution

Marcelo Ferreira wrote:

Hi,

Did you look into this post? To see if it's the same problem. Because the version that I attached there is working for me.

Regards,

Marcelo

I downloaded your example and it works fine. The file type should have set the "Mime Type" - "application/pdf".


Thank you very much!


Solution