pdfb
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

PDFB

A pdf building library for nodejs hehe.


!! DOCUMENTATION IN PROGRESS !!


TODO

  • [x] PdfBuilder
    • [x] save document
        save(options?: {
          render: true,
          savePath: ''
        })
    • [ ] Save path setters / getters
    setSavePath(path: string): string;
    getSavePath(): string;

DONE

  • [x] Section.class calculate start, end, size based of the elements inside

    • basically a way of creating a wrapper (background) that covers all elements of a section
  • [x] Page

    • Stores individual page data
    • Section[]
    • PdfBuilder.class stores a page array Page[]
  • [x] Fix padding handling inside PdfBuilder

    • Padding should affect the document start/end positions

Package Sidebar

Install

npm i pdfb

Weekly Downloads

8

Version

0.1.4

License

MIT

Unpacked Size

108 kB

Total Files

100

Last publish

Collaborators

  • px2tilc