pdf2ps creates empty output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghostscript (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ghostscript
If I try to convert a valid PDF file, which I have previously created by printing to "PDF" printer in Ubuntu 8.04, to postscript via pdf2ps I will always get an empty file (without any warnings or errors):
$ pdf2ps PDF/Report_
$ ls -l test.ps
-rw-r--r-- 1 stefan stefan 0 2008-06-20 08:05 test.ps
I am using the latest version of ghostscript with Ubuntu 8.04:
$ apt-cache showpkg ghostscript
Package: ghostscript
Versions:
8.61.dfsg.
Description Language:
[...]
I think you will find the file ~/Report_ a_bug_about_ Ubuntu. ps containing the output you wanted.
pdf2ps’s man page gives usage as:
pdf2ps [ options ] input.pdf [output.ps]
What it doesn’t mention is that if output.ps is not specified, input.ps will be automatically created in the current directory. If you want to use standard output, you need to specify “-”.
So, a couple of rephrasings that would work are:
pdf2ps PDF/Report_ a_bug_about_ Ubuntu. pdf test.ps a_bug_about_ Ubuntu. pdf - > test.ps
pdf2ps PDF/Report_
I am marking this bug as Invalid because “the report describes the software’s normal behaviour” (https:/ /help.launchpad .net/BugStatuse s). Of course, please revert the status if I have misdiagnosed the symptom.
However, I agree that the usage of pdf2ps and the other ghostscript programs is confusing, and would like it to be standardised, so if you want to create a feature specification or similar, I for one would second it!