#How do I send a PDF file from the main process to the renderer process?
22 messages · Page 1 of 1 (latest)
what is renderer.worker.js?
It's some file in the pdfjs library
then its problem with pdfjs?
I think it throws an error because no valid promise was sent
error say file not found
Yeah, it can't load the file, and then maybe it still tries to perform some actions on the invalid file
I'm not sure
Are you aware of a way to store files of any kind in the main process such that they are accessible from the renderer?
I'd really like to get around sending files with ipc
You can?
Ah
i dont think sending pdf file via ipc is a good way
So preload a function that gets a file from the disk using a file path?
preload is a file that have access to nodejs api
Cool