sorry if my english is not good. I have a project that uses angular to read pdf files and display them as flipbooks. I am using ngx-extended-pdf-viewer with turnjs library. However, they can hardly work together. Please help me improve that. I read the pdf file in angular as below:
component.html
<ngx-extended-pdf-viewer height="80vh" width="100%" zoom="100%"
[src]="src"
[useBrowserLocale]="true"
[spread]="'off'"
(pdfLoaded)="pdfLoadedEvent($event)">
</ngx-extended-pdf-viewer>
component.ts
public pdfLoadedEvent(event: PdfLoadedEvent): void {
$("#viewer").turn().turn('page',2);
$("#previous, #next").click(function()
{
$("#viewer").turn($(this).text());
});
}
public src = '../../../../assets/pdf/text.pdf'
I was able to read the pdf file, I can also use turnjs on angular to create a flipbook, however when using both at the same time it doesn't work.