
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
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!
v1.1 7 months ago
- added error messages to "export to single pdf" thanks to robertoldham
- added troubleshooting for missing ImageMagick permissions
- added source code to VCS
v1.1 7 months ago
- added error messages to "export to single pdf" thanks to robertoldham
- added troubleshooting for missing ImageMagick permissions
- added source code to VCS
10 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
donbcilly
7 months ago
I did not have to touch imagemagick permissions either.
Report
donbcilly
7 months ago
"$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
DaHoC
7 months ago
Thank you for bringing this up, I fixed it: "Converted $count image(s) into '$targetFileName'"
Report
cryen
8 months ago
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
1 year ago
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
DaHoC
7 months ago
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
5 years ago
~/.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
DaHoC
5 years ago
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
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
8 years ago
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
DaHoC
8 years ago
Report
Blizzz
8 years ago
EDIT: forget it, my fault, works perfectly.
Report
JustFoxy
9 years ago
Name=Convert image(s) to separate pdf
Name[ru]=Конвертировать в отдельные pdf
Name=Convert image(s) into single pdf
Name[ru]=Конвертировать в единый pdf
Report
JustFoxy
9 years ago
Name=Convert image(s) to separate pdf
Name[it]=Конвертировать в отдельные pdf
Name=Convert image(s) into single pdf
Name[ru]=Конвертировать в единый pdf
Report
molostoff
10 years ago
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
10 years ago
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
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
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
DaHoC
10 years ago
Report
garions
10 years ago
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
DaHoC
10 years ago
Report