servicemenu-pdf 0.4 for KDE4
Posted August 24th, 2010 by Giuseppe BenignoHere are various KDE service menus for PDF documents
- DjVu menu <- from 0.4
– Convert pdf document to DjVu file.
You can choose DPI and other options (monochrome, no-metadata, no-hyperlinks)
Depend on pdf2djvu (http://code.google.com/p/pdf2djvu/)
- Ghostscript menu
– Optimize pdf document <- from 0.2b2
With ghostscript you can optimizer your document (images too, resize dimension in Byte)
– Convert pdf document to png images in a subdirectory <- from 0.3
You can choose DPI and color (full, 256,16,gray tones, black and white, transparency).
– Convert pdf document to jpeg images in a subdirectory <- from 0.3
You can choose DPI and color (full colors or gray tones).
– Convert pdf document to fax images in a subdirectory <- from 0.3
You can choose fax format (faxg3, faxg32d or faxg4).
Depend on Ghostscript (http://pages.cs.wisc.edu/~ghost/index.htm).
- Convert to PostScript <- from 0.3
– There are various options and suboptions
Depend only on pdftops (poppler-utils).
- pdfinfo menu
Depend only on pdfinfo (poppler-utils).
- Convert to booklet <- from 0.2b
You can canvert any pdf document to booklet.
ie if you convert a document with pager numerated in 1,2,3,4,5,6,7,8 you have a booklet with 8,1,2,7,6,3,4,6,5
You can choose pages per booklet, save in one big file or many booklets, read orientation: left to right or right to left.
Depend on pdftk (http://www.accesspdf.com/pdftk).
Depend on pdfnup (pdfjam http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/).
- pdftk service menu (for generic linux) or pydftk service menu (for ArcLinux):
– Join selected PDF (alphabetic order)
– Add another pdf to selected file
– Rotate <- from 0.1
— left <- from 0.1
— right <- from 0.1
— overturn <- from 0.1
– Extract pages
– Extraxt all even pages
– Extract all odd pages
– Burst PDF pages
– Remove pages <- from 0.3
– Repair
– Watermark pages of a PDF file
– Stamp <- from 0.1
– Lock (give master password, give user password, select permissions)
– Unlock (with master password)
– Attach arbitrary file (not PDF only, but documents audio image movie too)
(For now, you can view attached files with Acrobat Reader only)
– Extract all attached files (one or more)
(Acrobat Reader not required for this)
– Uncompress PDF files (Remove PDF page stream compression)
(These are only useful when you want to edit PDF code in a text editor like vim or emacs)
– Compress PDF files (Restore page stream compression)
– Document information
Depend only on pdftk (http://www.accesspdf.com/pdftk) (for generic linux).
Depend only on pydftk script (included) (for ArcLinux).
- pdfjam service menu (pdfnup):
– 2 pages per sheet
– 4 pages per sheet
– 6 pages per sheet
– 8 pages per sheet
– Custom pages per sheet
(It’s possible to choose if you want framed or no-framed)
Depend only on pdfnup (pdfjam http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/).
- poppler-utils service menu (pdfimages, pdftohtml,pdftoppm, pdftotext):
– Convert an PDF document to HTML page
– Convert an PDF document to one or more images
– Extract images from PDF documents
– Convert PDF document to text
Depend only on poppler-utils.
Changelog
servicemenu-pdf for KDE
Version 0.4 (codename: Frosini alternative ![]()
Split package in two: for generic linux and for Arch Linux
- In the package for Arch Linux removed use of pdftk and added binary pydftk, script pydftk_kmenu.sh and file pydftk.desktop (tnx to Felix Mauch)
- Package for generic linux use pdftk and have pdftk_kmenu.sh and pdftk.desktop, same previous versions.
Added djvu support (djvu.desktop and pdf2djvu_kmenu.sh)
- Convert at 300 DPI
- Convert at 600 DPI
- Custom resolution
- Advanced options (monochrome, no-metadata, no-hyperlinks)
Added initial support for managing more selected files (at this time is only for DjVu menu)
- now the save dialog window appared only if the destination file exist already.
- it’s possible to choose if overwrite all destination files or no.
- when you select more file, the options window appared only the first time and applied for all selected files.
Added German translation tnx to Felix Mauch <felix_mauch(at)web.de>
Added Spanish translation (only menu) tnx to Pilli <elpilli(at)gmail.com>
Changed some icons
Version 0.3.5
Adapted for knewstuff2 with http://www.kde-apps.org/content/show.php/Service+Menu+Manager?content=94996
Added Galician translation (only menu) (tnx to kax)
Version 0.3.4
Fixed little typo bug in ghostscript_kmenu.sh. Now you can convert pdf in gray jpeg.
Fixed little issue in deb package (control file). (tnx to Marc Mezzarobba)
Version 0.3.3
Fixed bug in pdftk_kmenu.sh. Now is possible remove first page only.
In ghostscript optimization, added various resolutions for outout document.
Added default value “20″ for option “pages for booklet” in booklet menu
Version 0.3.2
Fixed little source code in pdftobooklet menu script file.
Fixed debian package.
Changed icons of service menus and menudialog window for kde3 version.
Version 0.3.1
Added error catch: Now if you abort any operations, stop all.
Added extraction or conversion images in subdirectory for all servicemenus.
Removed all debug messages.
Version 0.3
Added “Convert to png (full colors)” menu
Added “Convert to png (256 colors)” menu
Added “Convert to png (16 colors)” menu
Added “Convert to png (gray tones)” menu
Added “Convert to png (black and white)” menu
Added “Convert to png (with transparency)” menu
Added “Convert to gray jpeg” menu
Added “Convert to color jpeg” menu
Added “Convert to faxg3″ menu
Added “Convert to faxg32d” menu
Added “Convert to faxg4″ menu
Added “Convert to PostScript” menu
Added “Remove pages” to pdftk menu
Added “Document informations” menu
Changed way for extract work directory. Now use only internal shell capabilities (no for pdftk menu). More fast.
Changed way for loading language messages. Now load only request language. More fast and less busy memory.
Better filter for pages range. Now you can use sintax as “6″ for extract from page 6 to end or use “5 – 34″ for 5 to 34. (this not for pdftk)
Changed name gs.desktop to ghostscript.desktop and gs_kmenu.sh to ghostscript_kmenu.sh
Version 0.2b2
Added new menu “Optimize images”
Now use variables for memorize values in every menu, this permit more control.
Changed function name “select” from many files. Fix conflict with some shell.
Added window message in join servicemenu when you try join one file only.
Fixed path input file. (now you can run scripts from console, no need absolute path for input file).
Changed name of pdf2booklet to pdftobooklet.
Better filter when you write pages range.
Added savefile dialog in pdftohtml.
Added savefile dialog in pdftotext.
Version 0.2b
Added new menu “Convert to booklet”
Version 0.1
Finished porting of old konq-pdf for KDE3 to KDE4
Copyright (C) 2010 Giuseppe Benigno
<giuseppe.benigno(at)egregorion.net>
Download for KDE 4.x:
servicemenu-pdf 0.4 (tar.gz)
servicemenu-pdf 0.4 (deb)
servicemenu-pdf 0.4 for arch linux (tar.gz)
Enjoy
4 Responses to “servicemenu-pdf 0.4 for KDE4”
October 26th, 2010 at 12:28 am
Thank you for this very useful service menu.
One request: the service menu works perfectly well with Dolphin but still depends on Konqueror. Is it not possible to remove this dependency from the package?
Cheers,
–
Paulo Soares
November 12th, 2010 at 4:41 am
yes, it is possible.
In the next release I put konqueror in recommends packages.
bye
March 30th, 2011 at 1:45 pm
Thanks a lot. Very useful for me -:)
There is a little error – typo in the ghostscript_kmenu.sh
In the load_language_en () section you “define” the:
…….
msg_jpg_destDir_color=”${workDir}/${baseFileName} (color jpeg)”
…….
Later in the conversion to color jpeg you use :
“${msg_jpg_destDir}” so it fails.
If you change “${msg_jpg_destDir}” to “${msg_jpg_destDir_color}” works perfect!!
Thanks again for a really helpful util.
Yiannis
May 29th, 2011 at 11:30 am
tnx Yiannis.
Leave a Reply