New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dijix-pdf

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dijix-pdf

PDF Plugin for Dijix

latest
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

Dijix PDF

Isomorphic PDF Processing Plugin for Dijix

Requires Dijix Image to included as a plugin.

// initialise
digix.registerTypes([
  new DijixPDF({
    watermark: () => // TODO
    thumbnails: { // optional thumbnail configs
      quality: 0.7, // default
      32: {
        quality: 0.2,
        square: true // TODO
      },
      64: { quality: 0.6 },
      256: true,
      512: true,
    },
  }),
]);

// accepts file object (browser) or file path (node)
dijix.create('pdf', { src, name, fileName, ...configOverrides });

/*
name: 'Profit Report 2016',
fileName: 'accounting_report.pdf',
metaData: { ... }, // extracted pdf metadata
size: 123123123,
src: 'ipfs://<ipfs hash>', // original PDF src
mime: 'application/pdf'
pageCount: 4,
pages: [
  'ipfs://<ipfs hash>', // links to imageWithThumbnails
  'ipfs://<ipfs hash>',
  'ipfs://<ipfs hash>',
  'ipfs://<ipfs hash>',
]
*/

FAQs

Package last updated on 15 Sep 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