You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but was not able to do the same in another component in my project.
Checked my pdfjs-dist version as well even after upgrading to "2.4.456" I am still getting the same error.
Please let me know what needs to be done on this. Any help is appreciated.
Thanks
Chethan G
The text was updated successfully, but these errors were encountered:
I am trying to render Demo pdf file in my project and i am getting error as seen below :
Although, I was able to render the same pdf at App.component.ts file.
Here's the code for the same :
HTML :
`
<pdf-viewer src="C:\Angular Project\pre-flight pro\preflightpro\apps\preflight\src\assets\file.pdf"
(after-load-complete)="afterLoadComplete($event)"
(error)="onError($event)"
(on-progress)="onProgress($event)"
(page-rendered)="pageRendered($event)"
[show-borders]="true" style="display: block; width: 100vw; height: 100vh;">
TS file :
`afterLoadComplete($event){
console.log("from load complete",$event);
}
onError($event){
console.log("from error ",$event);
}
onProgress($event){
console.log("from progress complete",$event);
}
pageRendered($event){
console.log("from pageRendered complete",$event);
}`
but was not able to do the same in another component in my project.
Checked my pdfjs-dist version as well even after upgrading to "2.4.456" I am still getting the same error.
Please let me know what needs to be done on this. Any help is appreciated.
Thanks
Chethan G
The text was updated successfully, but these errors were encountered: