Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Saving Documents created a 0 bytes pdf

More
11 years 6 months ago #8584 by clavarreda
This is more a question than a complain.

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
More
11 years 6 months ago - 11 years 6 months ago #8596 by radaee
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.
Last edit: 11 years 6 months ago by radaee.
Time to create page: 0.393 seconds
Powered by Kunena Forum