import { Component, ViewEncapsulation } from '@angular/core'; import { EpdfPanel, EpdfPdfViewer, type ViewerConfig } from '@embedpdf/viewer-angular'; const welcome = 'https://www.embedpdf.com/pdfs/welcome.pdf'; @Component({ selector: 'demo-root', imports: [EpdfPdfViewer, EpdfPanel], styleUrl: './notes.css', encapsulation: ViewEncapsulation.None, template: ` `, }) export class App { readonly welcome = welcome; readonly config: ViewerConfig = { layout: (layout) => layout .addPanel('notes', { side: 'end', title: 'Notes', icon: 'book', width: { initial: 320, min: 240, max: 480 }, }) .add('panel:notes', { to: 'main', section: 'end' }), }; }