开发者

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

  1. CGPDFDocument, or
  2. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜