ComPDFKit Web SDK
    Preparing search index...

    Function addCustomStamps

    • Adds custom stamps to the front of the custom stamp list; the list is remembered by the browser.

      Parameters

      • images: string | string[]

        A PNG data URL or an array of them.

      Returns void

      const canvas = document.createElement('canvas');
      canvas.width = 200;
      canvas.height = 60;
      const context = canvas.getContext('2d');
      context.fillStyle = '#d32f2f';
      context.font = 'bold 36px sans-serif';
      context.fillText('PAID', 50, 45);
      instance.UI.addCustomStamps(canvas.toDataURL('image/png'));