Replies: 1 comment
-
|
Please see PR #18908. |
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.
-
I would like to access the response headers if the pdf document request fails.
Currently, the
responseobject is missing in theerrorobject and it is not possible to read the response headers and get the reference and correlation id the server returns.An example of the current
errorobject (noresponseproperty).{ "message": "Missing PDF \"[object Object]\".", "name": "MissingPDFException" }Some way would be to use custom fetching using the
fetchfunction:but, that would mean that the pdf document would not be loaded via the pdfjs worker and possibly "PDFDataRangeTransport" would not be used either. It would wait for the entire pdf to be loaded into memory (think of 100MB pdfs).
I would rather use the already implemented loading.
Beta Was this translation helpful? Give feedback.
All reactions