Blazor Adobe PDF Embed API Loading a pdf within a database which is stored in varbinary

New Here ,
Dec 10, 2021 Dec 10, 2021

Copy link to clipboard

Copied

Hi, I have a question about using the Adobe PDF Embed API with a pdf file that has been stored within a database in a varbinary format, I have created a Blazor project to view a pdf which worked by setting the data of an object to a data url however it didn't work with large files in some browsers as they had a data url limitation. So I found this api and the example which easily loaded the same large files in this browser however I have not been able to get it to work.

Here is the relevant code

a div with id="adobe-dc-view"

Adam2217193955hk_0-1639132009109.png

A function which is called by a button and calls upon a js function

Adam2217193955hk_3-1639132287116.png

and a js function within a .js file

Adam2217193955hk_4-1639132380552.png

The js file is refrenced in the _Host File and already has another function within it that works.

I believe the fault my lie in the js function code as I am unfamiliar in converting html scripts into a seperate file.

Would very much appreciate any help that anyone has on this matter

 

 

Views

24

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation