Office document to pdf

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

0
Score 50.0%
Description:

Convert ms-office document or OpenOffice document to pdf

eg. right-click on test.doc , 'convert to pdf', test.pdf will be at /home directory.
You should be able to select multi file to convert.

in case not working;
1. my soffice is at /usr/lib/openoffice/program/soffice, modify for yours.
2. my psprint.conf shows
[pdf converter]
Printer=SGENPRT/PDF converter
make sure yours is also "PDF converter".
Last changelog:

14 years ago

03-05-2005
1. add service type for html; Interestingly, it use title as filename for the pdf.
2. add service type for txt; this need file extension of .txt and give a nice formatted of pdf file.
3. you should be able to add other services ( I have not try myself) like autocad interchange file .dxf, computer grafic metafile .cgm, photoshop .psd, text file .csv, fax file .tiff, rich text format .rtf,ocr type file .pgm & .pbm

kriko

14 years ago

This is what I really needed. But, how can I convert .odt (openoffice documents) files to pdf. Is there a way to edit the .desktop file to support rhis and how?

Report

miguel2

14 years ago

For *.odt files use:
application/vnd.oasis.opendocument.text

OpenDocument MIME types are:
application/vnd.oasis.opendocument.text,
application/vnd.oasis.opendocument.text-master,
application/vnd.oasis.opendocument.image,
application/vnd.oasis.opendocument.database,
application/vnd.oasis.opendocument.formula,
application/vnd.oasis.opendocument.chart,
application/vnd.oasis.opendocument.graphics,
application/vnd.oasis.opendocument.presentation,
application/vnd.oasis.opendocument.spreadsheet

Details on OpenDocument MIME types: http://en.wikipedia.org/wiki/OpenDocument#File_types

Report

kriko

14 years ago

Thanks!

Report

oggi

14 years ago

Hello,

thanks for this nifty piece of software, it would be very useful however it does not work for me. The command is printing instead of converting the file to a pdf. (might be useful as well ,-) )

I copied it to .kde/.../konqueror/servicemenus and checked the soffice which is located in the same path as yours.

But in psprint.conf no [PDF converter] entry could be found, shall I add it manually or shall I run OO Administration? Which command should I add for pdf device?

any advice is highly appreciated, thanks, Oggi

Report

C

tanm

14 years ago

Before you can use this service menu , make sure you could print or convert your document to pdf on your openoffice.
To set up;
Open 'Openoffice.org Printer Setup' from K menu ( or /usr/bin/oopadmin)
> click on New Pinter...
> under 'Choose a device type' dialog, pick 'Connect a PDF converter'. > click 'Next'
> Under 'Choose a driver' dialog, pick 'The default driver' . > click 'Next'
Enter command
/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="(OUTFILE)" -
> click 'Next'
> Under 'Choose a name' dialog
PDF converter
>Finish

You should check if you could print a test page in pdf from OO.
Hope this help
tanm

Report

oggi

14 years ago

thanks, now it's working - great work!

Report

phxguy

14 years ago

I second this. I get the same response. I even Added

[PDF converter]
Printer=SGENPRT/PDF converter

to my psprint.conf file and it still printed to my regular printer.

Perhaps someone who has this working can share thier psprint.conf file for reference

Report

xvicx

14 years ago

verry handy, cool, thank you.

wish to see on day a pdf to doc, sxw

Report

kaplun

14 years ago

Exactly what I needed!

Report

14 years ago

03-05-2005
1. add service type for html; Interestingly, it use title as filename for the pdf.
2. add service type for txt; this need file extension of .txt and give a nice formatted of pdf file.
3. you should be able to add other services ( I have not try myself) like autocad interchange file .dxf, computer grafic metafile .cgm, photoshop .psd, text file .csv, fax file .tiff, rich text format .rtf,ocr type file .pgm & .pbm

12345678910
product-maker Base: 4 x 5.0 Ratings
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
updated May 03 2005
added Apr 29 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags addon