Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement background & multibackground commands #10

Open
tspr opened this issue Jun 12, 2015 · 4 comments
Open

implement background & multibackground commands #10

tspr opened this issue Jun 12, 2015 · 4 comments

Comments

@tspr
Copy link

tspr commented Jun 12, 2015

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

@vog
Copy link
Member

vog commented Jun 17, 2015

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
Copy link
Author

tspr commented Jun 18, 2015

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 [email protected]:

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
Copy link
Member

vog commented Jun 18, 2015

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
Copy link
Author

tspr commented Jun 18, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants