mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Display widget signature
- but don't validate them for now; - Firefox will display a bar to warn that the signature validation is not supported (see https://bugzilla.mozilla.org/show_bug.cgi?id=854315) - almost all (all ?) pdf readers display signatures; - validation is done in edge but for now it's behind a pref.
This commit is contained in:
parent
6ddc297170
commit
5875ebb1ca
10 changed files with 58 additions and 19 deletions
|
@ -77,6 +77,7 @@ describe("document", function () {
|
|||
const pdfDocument = getDocument(null);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: false,
|
||||
hasXfa: false,
|
||||
hasFields: false,
|
||||
});
|
||||
|
@ -90,6 +91,7 @@ describe("document", function () {
|
|||
let pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: false,
|
||||
hasXfa: false,
|
||||
hasFields: false,
|
||||
});
|
||||
|
@ -98,6 +100,7 @@ describe("document", function () {
|
|||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: false,
|
||||
hasXfa: true,
|
||||
hasFields: false,
|
||||
});
|
||||
|
@ -106,6 +109,7 @@ describe("document", function () {
|
|||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: false,
|
||||
hasXfa: false,
|
||||
hasFields: false,
|
||||
});
|
||||
|
@ -114,6 +118,7 @@ describe("document", function () {
|
|||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: false,
|
||||
hasXfa: true,
|
||||
hasFields: false,
|
||||
});
|
||||
|
@ -127,6 +132,7 @@ describe("document", function () {
|
|||
let pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: false,
|
||||
hasXfa: false,
|
||||
hasFields: false,
|
||||
});
|
||||
|
@ -135,6 +141,7 @@ describe("document", function () {
|
|||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: true,
|
||||
hasSignatures: false,
|
||||
hasXfa: false,
|
||||
hasFields: true,
|
||||
});
|
||||
|
@ -146,6 +153,7 @@ describe("document", function () {
|
|||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: true,
|
||||
hasSignatures: false,
|
||||
hasXfa: false,
|
||||
hasFields: true,
|
||||
});
|
||||
|
@ -169,6 +177,7 @@ describe("document", function () {
|
|||
pdfDocument = getDocument(acroForm, xref);
|
||||
expect(pdfDocument.formInfo).toEqual({
|
||||
hasAcroForm: false,
|
||||
hasSignatures: true,
|
||||
hasXfa: false,
|
||||
hasFields: true,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue