Skip to content

Commit

Permalink
Merge pull request #1 from shahmeet999/shahmeet999-patch-1
Browse files Browse the repository at this point in the history
Support the E-signature in rendering the PDF
  • Loading branch information
shahmeet999 committed Dec 28, 2022
2 parents 40df987 + 620f057 commit 0dda739
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.MD
Expand Up @@ -298,6 +298,32 @@ public IActionResult GetMyPdf()
}
```
## E-Signature Support
Original issue -> PDF.JS is not able to load the signature in the pdf if that is done via the any **E-Signature** tool.
Resolution of the issue -> To support this feature need to comment/remove the below code from pdf.worker.js file and file path i.e. lib\pdfjs\build\pdf.worker.js
**Original issue code**
```javascript
if (data.fieldType === 'Sig') {
data.fieldValue = null;

_this3.setFlags(_util.AnnotationFlag.HIDDEN);
}
```
**Resoultion code**
```javascript
if (data.fieldType === 'Sig') {
data.fieldValue = null;

_this3.setFlags(_util.AnnotationFlag.HIDDEN); //remove or comment this line
}
```
## Stack Overflow Support
Have a question? Ask questions and find answers on Stack overflow.
Expand All @@ -308,4 +334,4 @@ AngularJS [angular-pdfjs-viewer](https://github.com/legalthings/angular-pdfjs-vi
## License
**Apache V2 License - https://www.apache.org/licenses/LICENSE-2.0
**Apache V2 License - https://www.apache.org/licenses/LICENSE-2.0

0 comments on commit 0dda739

Please sign in to comment.