Skip to content

PdfViewer: When creating a signature field the background color is ignored. #147

Closed
@SergenN

Description

@SergenN

When creating a signature field by creating a custom drawing object the backgroundColor field is ignored while the settings in signatureIndicatorSettings work fine. It would be great for aesthetic purposes that the background color field is not ignored for signature fields.

https://stackblitz.com/edit/angular-wf5rwu-gt6gvb?file=app.component.ts

I'm setting the drawtool like this:

addSignatureField(isInitial = false) {
    (this.pdfviewerControl.drawingObject as any) = {
      formFieldAnnotationType: 'SignatureField',
      name: 'Signature',
      color: '#bd0e0e',
      backgroundColor: 'rgba(000,000,000, .3)',
      isRequired: false,
      isPrint: true,
      tooltip: 'Test tooltip',
      font: {
        isItalic: false,
        isBold: false,
        isStrikeout: false,
        isUnderline: false,
      },
      isInitialField: isInitial,
      signatureIndicatorSettings: {
        text: 'Test indicator text',
        backgroundColor: 'rgba(000,000,000, .3)',
        color: '#bd0e0e',
      },
    };
    this.pdfviewerControl.tool = 'DrawTool';
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions