Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harvest-profit-pdf

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harvest-profit-pdf

Generates PDFs for Harvest Profit

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source
Harvest Profit

Build Status

Installation

To add this, simply run:

npm install harvest-profit-pdf

Or

yarn add harvest-profit-pdf

Usage

Like most Harvest Profit NPM packages, you can just include the pieces you need, and let your webpack tree shaking ignore unused code paths.

import {
  HarvestProfitPDFHeader,
  HarvestProfitPDFFooter,
  PDFBuilder,
} from 'harvest-profit-pdf';
import saveAs from 'save-as';

export default function generate() {
  const builder = new PDFBuilder({
    header: new HarvestProfitPDFHeader(2017),
    footer: new HarvestProfitPDFFooter({
      message: 'Something here'
    }),
    margins: {
      bottom: -30,
      left: 30,
      right: 30,
      top: 30
    },
    subHeadingFontColor: '#555555',
    subHeadingFontSize: 10,
    includePageNumber: true,
    title: 'Harvest Profit Is Awesome'
  });

  builder.generateBlob().then((blob) => {
    saveAs(blob, 'Test.pdf');
  });
}

FAQs

Package last updated on 11 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc