Export Libreoffice and Office documents to PDF Original

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
6.7
Description:

You need Libreoffice installed to make this service menu works. Supported formats: .odt, .ods, .odp, .doc, .xls, .ppt, .docx, .xlsx, .pptx.

Edit: added .txt files as input

Cherkah

1 month ago

plz, it is possible to add feature convert .txt?
it is possible cause i did it but with this output:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
convert .../Competence_transverse.txt -> .../Competence_transverse.pdf using filter : writer_pdf_Export

regards

Report

Cherkah

1 month ago

forgot to mention the exec: soffice --headless --convert-to pdf MYFIL.txt

Report

C

alex-l

1 month ago

I think you'll have better luck using pandoc for this

Report

Cherkah

1 month ago

???
i would just to know what is the statement which corresponds for text file (.text/plain) in the "MimeType" section. e.g application/vnd.oasis.opendocument.text

When i use
soffice --headless --convert-to pdf MYFILE.txt
i have the related pdf file.
but i must use terminal for that. thus your app could do it easily

Report

C

alex-l

1 month ago

Sorry it was not clear, just append "text/plain;" to the MimeType line in the .desktop file. I just tested it on KDE Neon and it works as expected. If for some reason your system doesn't map .txt to text/plain check File Association in System Settings. What's your problem exactly? The entry doesn't appear at all in the menu? Does it appear but the PDF file is not produced?

Report

C

alex-l

1 month ago

I updated the .desktop file if it can help

Report

Cherkah

1 month ago

yes the The entry doesn't appear at all in the menu. i'm investigate and will tell you what is wrong. thank

Report

Cherkah

1 month ago

ok ,cool alex, works nicely. thx ;)

Report

4

qazcetelic

3 months ago

4 It doesn't work, it seems to require another piece of software. Could you include it in the description?
https://imgur.com/a/7utnUme

Report

C

alex-l

3 months ago

"soffice" is the command to launch Libreoffice. Maybe you installed Libreoffice with an alternative way to repo like Snap or Flatpak and so you can't launch it with "soffice" in the command line?

Report

12345678910
15
product-maker qazcetelic Jan 02 2021 4 soso
It doesn't work, it seems to require another piece of software. Could you include it in the description? https://imgur.com/a/7utnUme
product-maker glutanimate Sep 19 2017 9 excellent
product-maker ubo Apr 11 2017 9 excellent
product-maker aldy Mar 16 2017 9 excellent
product-maker BergoglioCristiano Mar 15 2017 9 excellent
product-maker aram Mar 15 2017 9 excellent
Be the first to comment
m0ji
Oct 04 2020
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
Creative Commons Attribution
version
updated Mar 04 2021
added Mar 14 2017
downloads 24h
3
mediaviews 24h 0
pageviews 24h 1
System Tags addon cc-by