Socket
Book a DemoInstallSign in
Socket

pdfs2pdf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfs2pdf

0.2.5
bundlerRubygems
Version published
Maintainers
1
Created
Source

pdfs2pdf

Gem Version Dependency Status Code Climate

Combine multiple PDF files into a single pdf file with combine table of centent using Ghostscript.

What it does?

Says you have the follow pdf files

./test/fixtures/samples/demo1_xxx.rb.xhtml.pdf
./test/fixtures/samples/demo2_xxx.rb.xhtml.pdf
./test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml.pdf
./test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf

Which have the following content:

  • File: ./test/fixtures/samples/demo1_xxx.rb.xhtml.pdf

  • File: ./test/fixtures/samples/demo2_xxx.rb.xhtml.pdf

  • File: ./test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml.pdf

  • File: ./test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf

When you run the following command:

gem install pdfs2pdf
cd ./test/fixtures/samples
pdfs2pdf --recursive

Will produce the result like the following

  • File: pdfs2pdf_samples.pdf (excepted screenshot)

Requirements

Mandatory Requirement

Ghostscript

  • Please follow the instruction here for installation from source.

  • Alternatively, for Ubuntu you can try sudo apt-get install ghostscript and under OSX you can use Homebrew.

Usage

gem install pdfs2pdf

Usage/Synopsis:

Usage:
  pdfs2pdf

Options:
  -b, [--base-dir=BASE_DIR]            # Base directory
                                       # Default: . (current directory)
  -r, [--recursive], [--no-recursive]  # Search for files recursively
                                       # Default: true
  -v, [--version], [--no-version]      # Display version information

Combine multiple pdfs into one file with bookmarks

To combine multiple pdfs just try something like

cd ./test/fixtures/samples
pdfs2pdf -r

This will merge all the pdf files from test/fixtures/samples and generate the pdfs2pdf_samples.pdf.

Contributing

  • Fork it ( http://github.com/agilecreativity/pdfs2pdf/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 15 Mar 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.