Replies: 1 comment
-
Ad 1: I prefer to remove the Ad 2: You can achieve the this by adding your copy of pdf.js and - if necessary - pdf-viewer.js to the Ad 3: I've opened a bug ticket (#925). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just take note that I may have missed some of the things in the documentation.
Based on what I've been experiencing right now, there are few things that I think could simplify things:
file
listening under the hood, so users can make their custom logic when listening tofile
query.Let's say you want to call a external API first without going thru all the checking inside pdf.js
Because right now, the situation is let's say i have this url
http://www.test.com?file="http://some-api/pdfs/idOfPdf"
, what happens here is the url fromfile
query will undergo checking under the hood in pdf.js before being processed by your own code.(errors)="handleError($error)
Right now, in my case, even if the API call i have in my app is successful, it will return a error inside the internal checking of pdf.js.
Let's say i pass a url from the previous example:
http://www.test.com?file="http://some-api/pdfs/idOfPdf"
but i want to process this url first to attach a?token=tokenValue
query parameterWhat would happen behind the scenes is
http://some-api/pdfs/idOfPdf
will be requested by pdf.js behind the scenes even before i process this value and will return an error because it has no token yet.Beta Was this translation helpful? Give feedback.
All reactions