pdf-generator

command module
v0.0.0-...-9e2d708 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 7 Imported by: 0

README

Generate pdfs from folders of pictures

This tool has the single purpose of generating a pdf from a folder of images. Image formats supported are: webp, jpg, png

All images will be written as JPG due to weird Sony DPR-RP1 behaviour

Command line params:

Param Description
directory The directory of images, or a directory of directories of images
outputDirectory Output directory, by default will be the directory that was used as input
marginTopBottom Padding to be added to top and bottom (effective padding can be larger due to aspect ratio)
marginLeftRight Padding to be added to top and bottom (effective padding can be larger due to aspect ratio)
v Verbose mode

The tool also supports table of contents. If in a folder of images a toc.json is found it will generate a pdf according to it.

{
	"title": "Simple pdf",
	"entries": [
		{
			"name": "Chapter 1",
			"file": "chapter1"
		}, {
			"name": "Chapter 2",
			"file": "chapter2"
		}
	]
}

file is the file name where the link will be created

name is the name that will be displayed in the table of contents page

FAQ

Should I use this?

No. This was made for a very specific use case and with a particular formatting in mind.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL