Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dir2Pdf

A simple module to turn a folder images into a Pdf file, following the order of the images.

How to use?

Install :

npm i dir2pdf 

yarn add dir2pdf

Declaration:

  const dir2pdf = require('dir2pdf')

  dir2pdf('images/', 'file.pdf')

Sorts files in the directory naturally, so it will follow a numerical order, not like a string.

{ "01.jpg", "02.jpg", "010.jpg", ... }

This module was inspired by the repository:

I made some changes to get the result I wanted.

About

A simple module to turn a folder into a pdf file

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages