How to display PDF File in binary data into browser?
Question

I have done this before and used my old code as reference to replicate it, but when I try to use the same code, it doesn't seem to work.
Here is my code:

Here are the variables:

UserSelect:

IFrameHTML:

PointerEvents:

HTMLPDF:


The file that is uploaded into the database is a PDF file and retrieve it in binary data.

mvp_badge
MVP

Hi Willbye,


In which type of application are you working on? Reactive / Mobile or Traditional Web?


If you are working on Reactive / Mobile applications, you can try the HTML Document Viewer forge component, which also includes a demo on how to display the different types of document, including PDF.

If you are working on a Traditional Web application, you can use the pdfJS Viewer forge component, which also includes a demo.


Kind Regards,
João

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.