m-click / mcpdf

Mcpdf is an alternative to PDFtk with fixed unicode issues, so you can write Łódź into your forms.
GNU Affero General Public License v3.0
44 stars 10 forks source link

implement background & multibackground commands #10

Open tspr opened 9 years ago

tspr commented 9 years ago

both commands are very much needed commands for classic office usage - virtual version of printing on letterhead paper

vog commented 9 years ago

For reference, and to increase the chance that volunteers will be found:

Could you provide the exact PDFtk commands you'd like to be able to run with Mcpdf?

tspr commented 9 years ago

Volker,

Say, i have a backgrounds pdf file (my letterhead with first page, following page in letterhead pdf

Then i used to use

pdftk -in myletter.pdf  multibackground letterhead.pdf -output  outfile.pdf

Since the claim is to replace pdftk with java - jar mcpdf, the rest will stay the same

by the way:

create a file /bin/mcpdf:

content:

!/bin/bash

java -jar /path/to/mcpdf-0-x-y.jar "$@"

cheers

Thomas

Am 18.06.2015 um 01:54 schrieb Volker Grabsch notifications@github.com:

For reference, and to increase the chance that volunteers will be found:

Could you provide the exact PDFtk commands you'd like to be able to run with Mcpdf?

Reply to this email directly or view it on GitHub.

vog commented 9 years ago

Thanks for specifying the command. Hope that volunteers will be found.

Regarding your second proposal, it would be great if you could create a pull request for README.org. (However, note that the path should be ~/bin/mcpdf for user installation and /usr/local/bin/mcpdf for system-wide installation. Also, for portability the shbang line should be #!/bin/sh. Or, if you insist on using Bash, use #!/usr/bin/env bash as Bash is not always installed to /bin on all Unix systems.)

tspr commented 9 years ago

Volker,

Thanks for specifying the command. Hope that volunteers will be found.

Regarding your second proposal, it would be great if you could create a pull request for README.org.

?!? "I�m a printer of little brains�� There�s a lot of things on my plate, one of them being to have to learn about all that pull request whatnot. Ain�t gonna happen soon, i�m afraid. So, do go ahead and make it yours, i googled it up anyhow, so i shan�t claim any more cleverness than being able to google it up properly.

(However, note that the path should be ~/bin/mcpdf for user installation and /usr/local/bin/mcpdf for system-wide installation. Also, for portability the shbang line should be #!/bin/sh. Or, if you insist on using Bash, use #!/usr/bin/env bash as Bash is not always installed to /bin on all Unix systems.)

right, /bin/sh it is. (just remebered the wrong shebang typing the mails by heart) i actually put the jar in its own directory in /opt/mcpdf, and linked around a little, to be able to update without fiddling too much in /bin, but that�s just me.

best regards

Thomas