import { Component } from '@angular/core'; import { EpdfPdfViewer, type ViewerConfig } from '@cloudpdf/viewer-angular'; const welcome = { grant: 'shr_gvpJcG1ULUMon19C0D1wODSY' }; @Component({ selector: 'demo-root', imports: [EpdfPdfViewer], template: ``, }) export class App { readonly welcome = welcome; readonly config: ViewerConfig = { theme: { accent: '#7c3aed' }, features: { measurement: true, forms: false }, icons: { send: ['M10 14L21 3', 'M21 3l-6.5 18a.5.5 0 0 1-1 0L10 14l-7-3.5a.5.5 0 0 1 0-1L21 3z'], }, commands: [ { id: 'acme:send', label: 'Send for signature', icon: 'send', run: () => alert('Sent for signature'), }, ], layout: (layout) => layout.add('acme:send', { to: 'main', section: 'end' }), }; }