image2pdf Original

Dolphin Service Menus converter dolphin image kde pdf

Source (link to git-repo or to original if based on someone elses unmodified work): https://www.opencode.net/dahoc/image2pdf

5
7 .8
Description:

Converts images to pdfs with one click.
You can select many images that either will be converted to one single pdf file or alternatively each image results in a separate pdf (see screenshots).

See https://www.opencode.net/dahoc/image2pdf/blob/master/README.md for Readme and troubleshooting,
https://www.opencode.net/dahoc/image2pdf/blob/master/INSTALLATION.md for installation instructions,
https://www.opencode.net/dahoc/image2pdf/blob/master/CHANGELOG.md for Changelog.

Installation for KDE5/Plasma:
Home installation:
- place the .desktop file in ~/.local/share/kservices5/ServiceMenus/
System-wide installation:
- place the .desktop file in /usr/share/kservices5/ServiceMenus/

[quote]sudo cp image2pdf.desktop /usr/share/kservices5/ServiceMenus/[/quote]

If you have trouble getting ServiceMenus to work in Dolphin after upgrade to KDE5/Plasma, following option worked for me:
[quote]sudo cp /usr/share/kde4/servicetypes/konqpopupmenuplugin.desktop /usr/share/kservicetypes5/[/quote]

For KDE5, running [quote]kbuildsycoca5[/quote] should then make the ServiceMenu immediately available.


Installation for KDE4:
Home installation:
- place the .desktop file in $(kde4-config --localprefix)/share/kde4/services/ServiceMenus/

System-wide installation:
- place the .desktop file in $(kde4-config --prefix)/share/kde4/services/ServiceMenus/

It may take some moments for KDE4 to update the service menus after the file has been copied.


You have to have the imagemagick (http://www.imagemagick.org) package installed because this script depends on the convert command.


Enjoy!
Last changelog:

v1.1 2 months ago

- added error messages to "export to single pdf" thanks to robertoldham
- added troubleshooting for missing ImageMagick permissions
- added source code to VCS

donbcilly

1 month ago

10 Works perfectly even for multiple images to single PDF. On neon 5.19 (18.04 base).
I did not have to touch imagemagick permissions either.

Report

donbcilly

1 month ago

Just one little thing. Dialog popup says:
"$count image(s) into single pdf '$targetFileName' converted!"
which is "German" construction :·)
Maybe it should say
$count image(s) converted to single pdf '$targetFileName'
;·)

Report

C

DaHoC

1 month ago

Indeed, that was very German :-)
Thank you for bringing this up, I fixed it: "Converted $count image(s) into '$targetFileName'"

Report

9

cryen

3 months ago

9 9 excellent
Just what I needed!
The "export to single pdf" option is not working but it's not that I needed it, separate files are good enough. :)

Report

robertoldham

11 months ago

ImageMagic-6 on Ubuntu 18.04 now does not grant permission to edit PDF files through convert by default. I updated the Exec to check the result of the convert and display an error telling the user that might be the cause if convert fails. Here it is:

Exec=a="'%F'"; namewithoutext="${a%.*}"; namewithextpdf="$namewithoutext.pdf"; count=0; for f in %F; do fdir=$(dirname "$f"); count=`expr $count + 1`; done; cd "$fdir"; newname=$(kdialog --getsavefilename "$fdir" "*.pdf |PDF files"); if [ $? -eq 0 ]; then result=$(convert %F "$newname" 2>&1); if [ $? -eq 0 ]; then kdialog --title "image2pdf" --passivepopup "$count image(s) into single pdf '$newname' converted!"; else kdialog --title "Conversion Failure" --msgbox "The conversion failed, probably because you have not configured permissions for ImageMagic in /etc/ImageMagic-6/policy.xml."; fi; else echo "Aborted"; fi;

Report

C

DaHoC

2 months ago

Thank you!
I adapted the script to display the underlying Imagemagick message in case of error, and added a troubleshooting section to the new repository Readme for the lacking policy permission issue

Report

Montblanc

4 years ago

After placing it in
~/.local/share/kservices5/ServiceMenus/
or
/usr/share/kservices5/ServiceMenus/

Dolphin is still not showing the Service Menu. Is there anything you can do about it?

Report

C

DaHoC

4 years ago

Thank you for your message.
I am also using Kubuntu 15.10 and Dolphin also showed no ServiceMenus for me.
I updated the description with instructions on how to install in KDE5/Plasma and a fix for Dolphin to show ServiceMenus which worked for me.

Report

Montblanc

4 years ago

It works as a charm!

I also forgot it depends on imagemagick, so after installing that and following your instructions I could finally use my beloved service that's been making my life easy since 2010 (®) :)

Report

jorgebarroso

7 years ago

In the spanish translation, in the "[Desktop Action image2pdf]" tag (separate pdf's) could you please add (separados) at the end of the line? it's just because it can be a little confusing to use, because it's hard to difference between separate pdf or single pdf. It could be something like that:

right now: "Name[es]=Convertir archivo(s) de imagen en archivo(s) pdf"

proposed: "Name[es]=Convertir archivo(s) de imagen en archivo(s) pdf (separados)"

Report

C

DaHoC

7 years ago

Thank you!

Report

Blizzz

7 years ago

Does not seem to work with 4.9.2, at least the actions are not shown to me :(

EDIT: forget it, my fault, works perfectly.

Report

9

JustFoxy

8 years ago

Thaks a lot

Name=Convert image(s) to separate pdf
Name[ru]=Конвертировать в отдельные pdf

Name=Convert image(s) into single pdf
Name[ru]=Конвертировать в единый pdf

Report

9

JustFoxy

8 years ago

Thaks a lot

Name=Convert image(s) to separate pdf
Name[it]=Конвертировать в отдельные pdf

Name=Convert image(s) into single pdf
Name[ru]=Конвертировать в единый pdf

Report

molostoff

9 years ago

For me on 4.5.5 it reports 0 files (e.g. index of them is zero in the notify message displayed just after converting two files into one pdf).

The idea is very good, this thing is very usable and still very easy to use. I hope you correct it a bit...

Have a nice day! :)

Report

kdekda

9 years ago

Name=Convert image(s) to separate pdf
Name[it]=Converti immagini in pdf separati

Name=Convert image(s) into single pdf
Name[it]=Converti immagini in un singolo pdf



Thank you for your good work!

Report

salvamendo

10 years ago

Thx for this service menu.

In Spanish,

- Name=Convert image(s) to separate pdf
Name[es]=Convertir archivo(s) de imagen en archivo(s) pdf

- Name=Convert image(s) into single pdf
Name[es]=Convertir archivo(s) de imagen en un archivo pdf

Report

garions

10 years ago

Thx for this service menu.

Just a note: we can add in [Desktop Entry] section : TryExec=convert
If convert is not found, then the service menu is hidden.

In French,
- Name=Convert image(s) to separate pdf
Name[fr]=Convertir l'(les) image(s) au format pdf
- Name=Convert image(s) into single pdf
Name[fr]=Convertir l'(les)image(s) dans un fichier pdf unique

Report

C

DaHoC

10 years ago

I added your proposed changes, thank you!

Report

garions

10 years ago

Hello,

In my previous message, I have not seen a mistake in the translation. I have forgotten a space between "l'(les)" and "image(s)" :
Name=Convert image(s) into single pdf
Name[fr]=Convertir l'(les) image(s) dans un fichier pdf unique
Sorry... :$

Report

C

DaHoC

10 years ago

Corrected!

Report

v1.1 2 months ago

- added error messages to "export to single pdf" thanks to robertoldham
- added troubleshooting for missing ImageMagick permissions
- added source code to VCS

9 years ago

v1.0:
- Updated instructions on how to install in KDE5/Plasma
- spanish translation clarified thanks to jorgebarroso
v0.9:
- russian language support added thanks to JustFoxy
v0.8:
- fixed counting of files
v0.7:
- disabled erroneous message on user abort
v0.6:
- italian language support added thanks to kdekda
v0.5:
- french language support added thanks to garions
v0.4:
- spanish language support added thanks salvamendo
v0.3:
- mandarin language support added thanks to littlechiny
v0.2:
- initial commit

12345678910
9
product-maker cryen Jun 19 2020 9 excellent
9 excellent Just what I needed! The "export to single pdf" option is not working but it's not that I needed it, separate files are good enough. :)
product-maker JustFoxy Feb 02 2012 9 excellent
product-maker overmind88 Jan 11 2012 9 excellent
product-maker alpvonkri Jul 06 2011 9 excellent
product-maker k4misiek Feb 10 2011 9 excellent
product-maker jorssoftware Feb 09 2011 9 excellent
product-maker OdinEidolon Jan 13 2011 9 excellent
product-maker dooder Jan 12 2011 9 excellent
product-maker mixalns Jan 12 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
lei00
Nov 27 2012
alpvonkri
Jul 06 2011
molostoff
Jan 26 2011
OdinEidolon
Jan 13 2011
Montblanc
Jan 20 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.1
updated Jul 20 2020
added Jan 14 2010
downloads 24h
8
mediaviews 24h 0
pageviews 24h 10
System Tags addon