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
Context
We are adding signatures to our PDFs by embedding a signed image into a text field using pdf-lib.
Problem Description
Although we successfully set the image in the text field, ng2-pdf-viewer does not display it. However, when we retrieve the PDF data using:
this.pdfViewer.pdfViewer.pdfDocument.getData()
and download it as a blob, the signature image appears correctly when opened in an external viewer.
code to signthe pdf:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Versions
Angular: 15.1.3
ng2-pdf-viewer: 9.1.0
Context
We are adding signatures to our PDFs by embedding a signed image into a text field using pdf-lib.
Problem Description
Although we successfully set the image in the text field, ng2-pdf-viewer does not display it. However, when we retrieve the PDF data using:
this.pdfViewer.pdfViewer.pdfDocument.getData()
and download it as a blob, the signature image appears correctly when opened in an external viewer.
code to signthe pdf:
<-- this returns a Promise of Uint8Array
gets called like this:
this.reportDataUInt8 = await this.careSignService.signPdf(event.dataUrl, this.pdfDoc);
the correct file gets created like this:
Are we doing something wrong or is this a bug of ng2-pdf-viewer?
The text was updated successfully, but these errors were encountered: