ngx-pdf-editor
TypeScript icon, indicating that this package has built-in type declarations

0.1.17-legacy • Public • Published

Ngx Pdf Editor

Angular Customizable Pdf Editor

Work in progress - Documentation not ready!

Angular Lending Solution

Require Angular 12+

Install

npm install ngx-pdf-editor

Configuration

Import NgxPdfEditorService in constructor.

Add Tool to Editor

this.pdfEditorService.addTool(
      new EditorTool('text',
        'Testo',
        'text_fields',
        (event) => this.pdfEditorService.addElement<PDFTextElement>(PDFTextElement, event, undefined, undefined, true),
        PDFTextElement)
    );

Basic Tools Included

  • PDFTextElement
  • PDFImageElement
  • PDFSignatureElement

Open Editor

const config: MatDialogConfig = new MatDialogConfig();

const editorConfig: EditorConfig = {
      title: "Editor PDF",
      file: {{yourFile}} (it must be a File object)
    }
    
config.data = editorConfig;

this.matDialog.open(NgxPdfEditorComponent, config);

License

MIT

/ngx-pdf-editor/

    Package Sidebar

    Install

    npm i ngx-pdf-editor

    Weekly Downloads

    10

    Version

    0.1.17-legacy

    License

    none

    Unpacked Size

    417 kB

    Total Files

    33

    Last publish

    Collaborators

    • peppoasap
    • 123hamza
    • michelemalagnini