Skip to content

Simple Ruby script to download manga and merge the images into a single pdf file. Available with both CLI and GUI.

Notifications You must be signed in to change notification settings

PinGunter/manga2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manga2pdf

Simple script to download and merge manga images into a single pdf file.

Uses Ruby and Selenium.

Works with manga from Manganato. Eg: https://readmanganato.com/manga-kb961736/chapter-1.2

Requirements

  • Ruby 2.7
  • make
  • ImageMagick and libmagickwand-dev
  • firefox-geckodriver
  • The gems in the Gemfile

You may get a "security policy" ImageMagick error. In this case add to etc/ImageMagick-6/policy.xml the following line just before </policymap>:

<policy domain="coder" rights="read | write" pattern="PDF" />

Usage

CLI Version

Launch the script like this:

ruby manga2pdf.rb -u <url> [-d] [-l 10] -o name
  • -u is for the url
  • -d is to create individual directories for each volume.
  • -l is to limit the number of chapters downloaded. The number after -l is the number of chapters to download.
  • -o provides the output filename. By default is "manga.pdf"
GUI Version

Just run

ruby manga2pdf-gui.rb

And follow the GUI.

Screenshots

CLI

GUI

About

Simple Ruby script to download manga and merge the images into a single pdf file. Available with both CLI and GUI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages