Bug 68840 - PDF printing with ghostscript: (OUTFILE) is no longer replaced by the intended file name
Summary: PDF printing with ghostscript: (OUTFILE) is no longer replaced by the intende...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
3.6.5.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-09-02 10:45 UTC by Stefan
Modified: 2018-10-31 12:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
dialog window "Choose a command line" (38.59 KB, image/jpeg)
2015-01-23 14:39 UTC, Stefan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2013-09-02 10:45:40 UTC
1. Configure PDF exporter using "(OUTFILE)", e.g.

/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/prepress -sOutputFile="(OUTFILE)" -

1. Open a file
2. File/Print/PDF Exporter/Print

You will not find the output in a file named $basename.pdf but named "(OUTFILE)".
Comment 1 Robinson Tryon (qubit) 2014-11-20 12:09:27 UTC
(In reply to Stefan from comment #0)
> 1. Configure PDF exporter using "(OUTFILE)", e.g.
> ... 
> 1. Open a file
> 2. File/Print/PDF Exporter/Print

Hi Stefan,
How are you invoking LibreOffice in this example?

LibreOffice 3.6 is now EOL. Please try to reproduce the problem with a modern build of LibreOffice:
https://www.libreoffice.org/download/

If you're experiencing the same problems with a new version of LibreOffice, please leave a comment and change the Status back to 'UNCONFIRMED'.
Thanks!

Status -> NEEDINFO
Comment 2 Stefan 2014-11-20 13:29:38 UTC
(In reply to Robinson Tryon (qubit) from comment #1)
> (In reply to Stefan from comment #0)
> > 1. Configure PDF exporter using "(OUTFILE)", e.g.
> > ... 
> > 1. Open a file
> > 2. File/Print/PDF Exporter/Print
> 
> Hi Stefan,
> How are you invoking LibreOffice in this example?

By typing the absolute pathname 

   $installbase/libreoffice.36/program/soffice

into a console window an pressing the Enter key.

> LibreOffice 3.6 is now EOL. Please try to reproduce the problem with a
> modern build of LibreOffice:
> https://www.libreoffice.org/download/

I have now downloaded LibreOffice_4.2.7_Linux_x86-64_rpm.tar.gz and installed
it with

   ./install RPMS /tmp/libreoffice.42

> If you're experiencing the same problems with a new version of LibreOffice,
> please leave a comment and change the Status back to 'UNCONFIRMED'.

1. The file generated is still named "(OUTFILE)"
2. I could not find it in the user's home directory, but here instead:

    /tmp/libreoffice.42/opt/libreoffice4.2/program/(OUTFILE)
Comment 3 Robinson Tryon (qubit) 2015-01-22 09:38:39 UTC
(In reply to Stefan from comment #0)
> 1. Configure PDF exporter using "(OUTFILE)", e.g.

Stefan:
- Is there a particular reason you're not using File -> Export as PDF?

> /usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.3
> -dPDFSETTINGS=/prepress -sOutputFile="(OUTFILE)" -

- Does the configuration of gs as described work correctly with other programs?

Status -> NEEDINFO
Comment 4 Stefan 2015-01-22 12:25:24 UTC
(In reply to Robinson Tryon (qubit) from comment #3)
> (In reply to Stefan from comment #0)
> > 1. Configure PDF exporter using "(OUTFILE)", e.g.
> 
> Stefan:
> - Is there a particular reason you're not using File -> Export as PDF?

Yes there is, I need PDF Version 1.3 and subsetted Type 1 fonts. So
I would have to postprocess an exported PDF anyway.

> > /usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.3
> > -dPDFSETTINGS=/prepress -sOutputFile="(OUTFILE)" -
> 
> - Does the configuration of gs as described work correctly with other
> programs?

It worked in OpenOffice at least up to Version 2.4.
Comment 5 Robinson Tryon (qubit) 2015-01-22 19:41:45 UTC
(In reply to Stefan from comment #4)
> Yes there is, I need PDF Version 1.3 and subsetted Type 1 fonts. So
> I would have to postprocess an exported PDF anyway.

Okay, good to know.

> > > /usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.3
> > > -dPDFSETTINGS=/prepress -sOutputFile="(OUTFILE)" -
> > 
> > - Does the configuration of gs as described work correctly with other
> > programs?
> 
> It worked in OpenOffice at least up to Version 2.4.

Keywords -> regression

(unclear if it's our regression or gs's regression)

Has this ever worked with LibreOffice builds? Does this currently work with other programs such as gedit?
Comment 6 Stefan 2015-01-22 19:58:24 UTC
(In reply to Robinson Tryon (qubit) from comment #5)
> > It worked in OpenOffice at least up to Version 2.4.
> 
> Keywords -> regression

It also works in OpenOffice 3.0.0

> (unclear if it's our regression or gs's regression)

I am using the same ghostscript for all tests mentioned here. Without a change there can is no opportunity for a regression.

> Has this ever worked with LibreOffice builds?

Yes. This one works:

LibreOffice 3.3.2 
OOO330m19 (Build:202)
tag libreoffice-3.3.2.2
Comment 7 Robinson Tryon (qubit) 2015-01-22 20:21:44 UTC
TESTING with Ubuntu 14.04 + ghostscript 9.10
(In reply to Stefan from comment #6)
> > Has this ever worked with LibreOffice builds?
> 
> Yes. This one works:
> LibreOffice 3.3.2 
> OOO330m19 (Build:202)
> tag libreoffice-3.3.2.2

(In reply to Stefan from comment #0)
> 1. Configure PDF exporter using "(OUTFILE)", e.g.
> 
> /usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.3
> -dPDFSETTINGS=/prepress -sOutputFile="(OUTFILE)" -

Okay, running that in a terminal

> 1. Open a file

I'm using attachment 112639 [details] (testandroidview.odt) and opening it in LO 3.3.0.4.

> 2. File/Print/PDF Exporter/Print

File -> Print

I don't see any printer named 'PDF Exporter' or an option with that name, testing with both LO 3.3.0.4 and 4.4.0.2. 

NOREPRO, as I can't complete the repro steps.

Stefan: How can I get the 'PDF Exporter' to show up in LO printer list?
Comment 8 Stefan 2015-01-22 20:39:48 UTC
(In reply to Robinson Tryon (qubit) from comment #7)
> > 2. File/Print/PDF Exporter/Print
> 
> File -> Print
> 
> I don't see any printer named 'PDF Exporter' or an option with that name,
> testing with both LO 3.3.0.4 and 4.4.0.2. 

A PDF Converter has to be installed beforehand. This can be done with the
"spadmin" program. Choose "New Printer" and then "Connect a PDF converter", check
"The default driver" and then paste the command line I have given in this bug
report in the next spadmin-dialog. Then click "next" and "finish".

Restart Libreoffice to find the PDF converter in the printer list.
Comment 9 Stefan 2015-01-23 14:39:01 UTC
Created attachment 112721 [details]
dialog window "Choose a command line"
Comment 10 Stefan 2015-01-23 14:42:14 UTC
(In reply to Robinson Tryon (qubit) from comment #7)
> (In reply to Stefan from comment #0)
> > 1. Configure PDF exporter using "(OUTFILE)", e.g.
> > 
> > /usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.3
> > -dPDFSETTINGS=/prepress -sOutputFile="(OUTFILE)" -
> 
> Okay, running that in a terminal

Sorry for the confusion. The correct naming is "PDF converter" not "exporter". And this Command line ist not intended to be run in a terminal but to be used
as input in the input field of the dialog "Choose a command line" in the "Add Printer" window of the "spadmin" program.

Is there any further information which would be useful for you?
Comment 11 Robinson Tryon (qubit) 2015-01-23 19:50:37 UTC
(In reply to Stefan from comment #10)
> Sorry for the confusion. The correct naming is "PDF converter" not
> "exporter". And this Command line ist not intended to be run in a terminal
> but to be used
> as input in the input field of the dialog "Choose a command line" in the
> "Add Printer" window of the "spadmin" program.

Ah, okay. Now I have a clearer picture of what you're trying to do.

AFAIK, as of v4.3 the spadmin program has been removed in lieu of the system printing tools:
https://wiki.documentfoundation.org/ReleaseNotes/4.3#CUPS.2C_fax_machines_and_spadmin

cc: Caolan
Comment 12 Caolán McNamara 2015-01-27 10:35:25 UTC
Yeah, the custom printer stuff is gone we just use cups now like everything else. e.g. for faxes use fax4CUPS/hylafax and for custom filtering of the print output CUPS-PDF or some other generic app-independent solution (try searching for"cups virtual pdf printer") is indicated
Comment 13 Epson PrinterError 2018-10-31 12:00:28 UTC Comment hidden (spam)