Skip to content

Commit 0dda739

Browse files
authored
Merge pull request #1 from shahmeet999/shahmeet999-patch-1
Support the E-signature in rendering the PDF
2 parents 40df987 + 620f057 commit 0dda739

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.MD

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,32 @@ public IActionResult GetMyPdf()
298298
}
299299
```
300300
301+
## E-Signature Support
302+
Original issue -> PDF.JS is not able to load the signature in the pdf if that is done via the any **E-Signature** tool.
303+
304+
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
305+
306+
**Original issue code**
307+
308+
```javascript
309+
if (data.fieldType === 'Sig') {
310+
data.fieldValue = null;
311+
312+
_this3.setFlags(_util.AnnotationFlag.HIDDEN);
313+
}
314+
```
315+
316+
**Resoultion code**
317+
318+
```javascript
319+
if (data.fieldType === 'Sig') {
320+
data.fieldValue = null;
321+
322+
_this3.setFlags(_util.AnnotationFlag.HIDDEN); //remove or comment this line
323+
}
324+
```
325+
326+
301327
## Stack Overflow Support
302328
Have a question? Ask questions and find answers on Stack overflow.
303329
@@ -308,4 +334,4 @@ AngularJS [angular-pdfjs-viewer](https://github.com/legalthings/angular-pdfjs-vi
308334
309335
310336
## License
311-
**Apache V2 License - https://www.apache.org/licenses/LICENSE-2.0
337+
**Apache V2 License - https://www.apache.org/licenses/LICENSE-2.0

0 commit comments

Comments
 (0)