Open PDF file from memorystream or buffer #2371
Replies: 2 comments
-
Its not an api and I am not dev but my understanding is SumatraPDF in common with any PDF reader like MuPDF will work with any acceptable FILE format if it is a named FS (file stream) object but the file must be 100% long with a fixed number of bytes in the file allocation table just like on a disk, Thus any file reader can acess the decimal adressed chunks, whether those be PNG chunks or PDF streamed objects. |
Beta Was this translation helpful? Give feedback.
-
That's not really possible on Windows. It might make sense on Android but Windows doesn't have an easy way to send memory from one process to another. If you want to open a file in Sumatra from your program, save it to disk and open that file. |
Beta Was this translation helpful? Give feedback.
-
In some cases developers try not to save a file on disk.
I know that it's possible in muPDF to open a file from memory (buffer). I'm using it in my Android application.
Is it possible in sumatraPDF to open a PDF file from memory? And How?
I didn't find any full documentation for developers.
Thanks in advacnce.
Beta Was this translation helpful? Give feedback.
All reactions