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
-
I would like to access the response headers if the pdf document request fails.
Currently, the
response
object is missing in theerror
object 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
error
object (noresponse
property).Some way would be to use custom fetching using the
fetch
function: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