Merge PDF

Nautilus Scripts

Source:

Score 56%
Description:

Uses the pdftk to merge selected files in nautilus.

Place the script under ~/.gnome2/nautilus-scripts/

To use it, simply select at least two pdf files an choose > Scripts > Merge PDF

HELP: Can someone point me in the right direction onto correct the bug mentioned in the changelog?
Last changelog:

9 years ago

Version 1.02:
- FIXED: Processing white spaces in input files path;
- BUG: Still doesn't work if output directory has white spaces

Version 1.01:
- Added output file save dialog, through zenity

BenBUK

9 years ago

To fix it you need to add quoted spaces round $szSavePath:

... cat output "\"$szSavePath\""

You can also avoid the problem by using a bash arrayfor the PDFs. This means that you can get rid of the eval with is causing the trouble. I'd post an example but the forum "unformats" the code making it hard tio read!

Report

Leolik

9 years ago

I try your metod, but it not work for my 'Desktop' directory... in my localization this directory named - 'Рабочий стол'

Report

vinca

9 years ago

in your code, ad a single quote to the sample filename path, ie if you had %d%f in your code you'd put

'%d%f'

instead of

%d%f

try it, i may be wrong tho.

Report

Leolik

9 years ago

if in filename path has spaces - this script not work.

for example path:
/home/leolik/test folder/111

Report

C

diogosousa

9 years ago

I'll correct that asap. Thanks for the heads up

Report

apple78

4 years ago

what a nice resuorce.but I prefer to useC# pdf merge control in my daily work, for I have to do such a job with Visaul Studio 2005.

http://www.rasteredge.com/how-to/csharp-imaging/pdf-merge/

Report

9 years ago

Version 1.02:
- FIXED: Processing white spaces in input files path;
- BUG: Still doesn't work if output directory has white spaces

Version 1.01:
- Added output file save dialog, through zenity

product-maker I4C Feb 19 2013

product-maker 12 18

File (click to download) Version Description Packagetype Downloads Date Filesize DL OCS-Install
Details
license
version
1.02
updated Jul 30 2008
added Jun 22 2008
downloads today
0
page views today 3
System Tags addon