Fast Incremental Saving to a StorageFile in Windows Store apps

117 views
Skip to first unread message

Tomas Hofmann

unread,
Dec 11, 2013, 7:31:56 PM12/11/13
to pdfne...@googlegroups.com
Q: I open a PDFDoc from a StorageFile (new PDFDoc(StorageFile file, string path)), edit it with an annotation, and then try to save it. If the file is big, it can take more than a minute. How can I make saving faster.


A: In our latest Release (6.1.1.21853) we improved our saving performance. Now, If you have opened the document using an IRandomAccessStream (with Read and Write permissions) you can call PDFDoc.SaveAsync(pdftron.SDF.SDFDocSaveOptions.e_incremental) and it will perform an incremental save to the stream you opened the doc with. This should give you very fast saving.
If you opened using a path or any other way, this save function will not work. (Note, for fast saving to paths, simply use the same path as when you opened).

The function PDFDoc.SaveAsync(file, pdftron.SDF.SDFDocSaveOptions.e_incremental) should really only be used when performing a SaveAs type operation. Though after this function has been called, you can use PDFDoc.SaveAsync(pdftron.SDF.SDFDocSaveOptions.e_incremental) and it will save incrementally to the file you picked when you saved.

Reply all
Reply to author
Forward
0 new messages