Sign inSign up

eugendun/pypdfcat

By eugendun

•Updated almost 9 years ago

Concatenates multiple PDF files into a single PDF file

Image
0

905

eugendun/pypdfcat repository overview

Notice all PDF files should be in the same directory and this directory should be available to containers.

Either use the Docker container directly docker run -it --rm -v /path/to/my/data/folder:/data eugendun/pypdfcat file1.pdf file2.pdf file3.pdf

A new PDF file should be created with name same as the first passed PDF file and the suffix "cat.": cat.file1.pdf

If you are using PowerShell you can add a new function to your PowerShell profile with the following command. @"

function pdfcat { $cwd = $PWD.Path.Replace("", "/")

for(`$i=0; `$i -lt `$args.Count; `$i++){
    `$args[`$i] = `$args[`$i].Replace("\","/")
}

& docker run -it --rm -v `${cwd}:/data eugendun/pypdfcat `$args

} "@ | Out-File -Append -FilePath $profile -Encoding utf8;. $profile

Simply copy and paste it into your PowerShell terminal, change your location to the desired folder and write: pdfcat .\file1.pdf .\file2.pdf .\file3.pdf

Tag summary

Content type

Image

Digest

Size

30.1 MB

Last updated

almost 9 years ago

docker pull eugendun/pypdfcat