MonoTouch: is it possible to start PDFViewers from an Stream?
would like to start the PDF-Viewers from an Stream instead of an FileLocation ()
开发者_运维知识库Is it possible (now or in the future) to feed
- CGPDFDocument, or
- QLPreviewItem
from an Stream-object?
Would like to get rid of the need to store the documents locally before viewing them...
thanks, Dilettanto
There is a solution.
First you need to create a native binding for function: CGPDFDocumentRef CGPDFDocumentCreateWithProvider ( CGDataProviderRef provider ); You can use the btouch tool to do so.
The CGDataProvider then has constructor with byte [] array, so you can create a memory stream reader to provide the byte [] data for it.
Hope this helps. @sichy
精彩评论