I have a angular code like this,
GenarateReportPDF() {
var ProjectID = localStorage.getItem('ProjectID');
this._reportService.getReportPDF()
.subscribe(
response => {
var blob = new Blob([blob], {type: 'application/pdf'});
var filename = 'file.pdf';
filesaver. saveAs(blob, filename);
},
error => {
console.error(Error: ${error.message});
}
)
}
ReportPDF(): Observable<any> { var ProjectID = localStorage.getItem('ProjectID');
return this._http.get("localhost/api/Report/GetReportPDF" +ProjectID,
{ responseType: ResponseContentType.Blob })
.map(res => res.blob())
}
Nicole Manaloto
Indie Game Developer
You might wanna have a look on ZetPDF, this is an SDK for .net. Tho I am not sure that this will help you but there is no harm in trying to look into it and it might help you as well for your future concerns.