I'm getting blob PDF from API. the PDF contains some pages, and I want to convert every page to image. the result I'm hoping is I get the list of image. And then I want to display that image in HTML.
i already tried many ways, the latest code i try is
let thisIsMyPDF = new Blob([data.body], {type: 'application/pdf'});
console.log(blob);
and
const imagePath = this.sanitizer.bypassSecurityTrustResourceUrl('data:image/jpg;base64,'
+ data.body);
let objectURL = 'data:application/pdf;base64,' + data.body;
this.image = this.sanitizer.bypassSecurityTrustUrl(objectURL);
display image
<img id="image1" class="bi x0 y0 w1 h1" alt=""
[src]="image"/>
its easy to find image to PDF library, or HTML to PDF library. But its hard to find PDF to image library.
Is it possible?