LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-22-2002, 05:41 PM   #1
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Rep: Reputation: 15
Question PDF files in OpenOffice 1.01


Hello again!

Does somebody know how to configure slacware 8.1
in order to create PDF-documents from OpenOffice.
I have installed the ghostscript-package, and according to
the manual for openoffice (below) I just have to point to
ghostscript.
I have tried but it doesnt work . .

Connecting a PostScript for PDF Converter
If a PostScript for PDF converter such as Ghostscript or Adobe Acrobat Distiller(tm) is installed on your computer, you can quickly create PDF documents in OpenOffice.org. 1. Click New Printer. This opens the Add Printer dialog. 2. Select Connect a PDF converter. Click Next. 3. Choose whether to use the default driver, the Acrobat Distiller driver or another driver. Click Next. If you are not using the default driver or the Acrobat Distiller driver, select the appropriate driver and click Next. 4. In the next dialog, enter a command line with which to communicate with the PostScript->PDF Converter. Moreover, enter the directory where the PDF files created should be saved. If you do not provide this directory, the user's home directory will be used. In the command line of each created PDF document "(TMP)" is replaced by a temporary file and "(OUTFILE)" by the target file, the name of which is created from the document name. If "(TMP)" occurs in the command line, the Postscript code is transmitted in a file, otherwise via standard input (i.e., as a pipe). If Ghostscript or Adobe Acrobat Distiller is in the search path, you can use one of the predefined command lines. Click Next. 5. Assign a name to your new PDF converter. Click Finish. You can now create PDF documents by printing to the converter that has just been created.
 
Old 09-22-2002, 08:09 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
It is difficult to say for sure, but text you entered I would think is intended for MS Windows.

I use OpenOffice.Org 1.0.1, and to create a PDF I do the following.

Create or load the document desired.
Select File->Print
Select the "Generic Printer" and configure the properties.
Select the "Print to File" option.
Enter the desired location and name. I do NOT enter the PDF extension.
Leave the File type as Postscript. (I could not get the PDF file output to load with Acrobat reader. But it might not be setup though.)
Print the document.
From a console prompt in the directory you used. Enter the command "ps2pdf in_filename out_filename.pdf"
The output file is now Acrobat PDF.

The program ps2pdf will convert most any postscript level 1 or level 2 file into a PDF wrapper.

This post really has nothing to do with Slackware though. It is more General Linux and OpenOffice application.
 
Old 09-27-2002, 02:36 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
I had a relatively easy getting the PDF converter to work (once I got OOo to install correctly). You really should download OOo 1.0.1, it's get some good fixes. . . But, it shouldn't matter for this:

Once you've got OOo installed correctly, there should be a directory
someplace like /usr/local/OpenOffice.org1.0.1
Under that directory, there is a file called spadmin. This is your printer
administration program. run that (as root -- make sure you have DISPLAY
set correctly).
Choose New Printer. . .
Choose Connect a PDF converter
Next >>
The default driver
Next >>

There is probably a default command line listed. Choose that, but make sure the path to your gs is correct.

Next >>
Name your PDF connection
Finish.

Set the properties of your new PDF converter. . .


Good luck,
Moses
 
Old 09-27-2002, 02:48 AM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
gs is in /usr/bin/gs for a default Slackware 8.1 install. . .
This is the command line I use:

/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="(OUTFILE)" -

(you need the " - " to tell gs to read the standard input, which is where OOo outputs its postscript)

You could also use ps2pdf (c.f. Excalibur) as your commandline, both work
for me (at least with a quick glance at the result).

/usr/bin/ps2pdf - "(OUTFILE)"


Cheers,
Moses
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i want pdf 2 openoffice or doc AL MOSLEM Linux - Software 4 03-26-2008 12:04 AM
OpenOffice.org and PDF aznboi12321 Linux - General 1 03-05-2005 08:54 PM
OpenOffice exporting really huge PDF filesizes? R00ts Linux - Software 1 11-08-2004 05:05 AM
How do I unpack pdf.pdf files corbis_demon Linux - General 5 10-29-2004 09:12 PM
.DOC -> PDF using OpenOffice.org error qwijibow Linux - Newbie 2 08-21-2003 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration