Transfer already parsed PDF document to a js worker #1640
Unanswered
riccardodivirgilio
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I would like to know if there is some trick to transfer a parsed pdf document (or just a page) to a JS worker. data needs to be cloned in order to do it, and if I attempt to do it would fail. is there a way to manually transfer pdf data (needs to be a nested structure with js primitives such as object, array, int, etc...) and reconstruct the pdf on the other side?
thanks
i see the pdf doc has context and catalog, not sure what they are by reading the docs, but they look like the underling parsed data, could one deconstruct and reconstruct the document using only such data?
I'm trying to parallelize my pdf building pipeline, one way to do it in the browser would be to transfer already parsed pdf to web workers so that they can work with an already parsed document instead of downloading and parsing every time.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions