We developed an app for book reading. We encrypt the books and before the pdf library read them we decrypt them and pass the decrypted path of the file to the radaee library. After the Document.Open method executes we delete the pdf file assuming that the library stores a copy in some tmp/cache dir.
The questions are
1. Does the radaee library store a copy of the pdf in some cache/tmp dir during the Document.Open execution?
2. Does the radaee library rely only on that cached/copied pdf to save the pdf during the Document.Save and Document.SaveAs execution?
3. Is there any scenario where the radaee library could produce a 0 size document on saving?
Thanks for your time
The administrator has disabled public write access.
Saving Documents created a 0 bytes pdf
2 years 6 months ago #8596
1. SDK not copy whole PDF file into memory.or storage. Document.SetCache used for some inserted objects like images, or imported page resources.
2. when saving, it save new objects(new annotation or others object) to storage.or PDFStream
3. Document.Create() and then Document.SetCache can create a new PDF file.
u can use PDFMemStream and Document.OpenStream to open a pdf file in memory, it can be saved
after saved, u can get back bytes array(PDFMemStream.get_data) and length(PDFMemStream.get_size) as result.