public postCachePdf(pdf:Blob) : HttpObservable<any> {
return this.http.post("ScanDocument", "PostStoredPdf", pdf);
}public async Task<JObject> PostStoredPdf(HttpRequestMessage request)
{
var filesReadToProvider = await request.Content.ReadAsMultipartAsync();
foreach (var stream in filesReadToProvider.Contents)
{
var fileBytes = await stream.ReadAsByteArrayAsync();
...
}
}[HttpPost]
[SkipTransactionScopeFilter]
public async Task<JObject> PostStoredPdf(HttpRequestMessage request)
{
...
}// .NET 4.5.1 +
new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)public int GetPdfPageCount(byte[] aDocument)
{
MemoryStream ms = new MemoryStream(aDocument);
ms.Position = 0;
Aspose.Pdf.Facades.PdfViewer viewer = new Aspose.Pdf.Facades.PdfViewer();
viewer.BindPdf(ms);
return viewer.PageCount;
}Blob
createObjectURL
TIFF.js
Canvas
Iframe
Get PDF URL
Upload + Get temp URL
Browse
Load
Caman