
Office document to pdf
Source (link to git-repo or to original if based on someone elses unmodified work):
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".
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
Ratings & Comments
9 Comments
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?
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
Thanks!
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
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
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
thanks, now it's working - great work!
verry handy, cool, thank you. wish to see on day a pdf to doc, sxw
Exactly what I needed!