I have an MemoryStream object, and how can I load this into the viewer?
public virtual void LoadDocumentFromStream(BaseDocument aDocument)
{
MemoryStream data = aDocument.Stream;
object mDataIn = data;
object mDataOut = null;
pdfControl.SetProperty("Documents.UseStreamsDirectly", "true", 0);
pdfControl.DoVerb(null, "OpenDocument", mDataIn, out mDataOut,0);
}
How to load a PDF from MemoryStream
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: How to load a PDF from MemoryStream
Please look at the "OpenDocumentFromStream" sample which is provided with PDF-XChange Viewer SDK.