[Bug 241544] Re: pdf2ps creates empty output

2008-06-24 Thread Till Kamppeter
StefanS42376868, if you want the usage of Ghostscript tools getting
standardized and the man pages improved, feel free to report an upstream
bug/feature request on http://bugs.ghostscript.com/.

-- 
pdf2ps creates empty output
https://bugs.launchpad.net/bugs/241544
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 241544] Re: pdf2ps creates empty output

2008-06-24 Thread JM Williams
I see the non-standard behaviour of the ghostscript tools as quite
troublesome, because they are likely to be used in conjunction with
tools such as those provided by psutils, which behave as standard Unix
text processing utilities.  This can lead to awkward pipelines such as
the following, which is given in two equivalent forms, and which
rearranges the pages of a document to produce a booklet for double-sided
printing:

pdf2ps example.pdf - | psbook | psnup -n 2 | ps2pdf - example-booklet.pdf
pdf2ps - -  example.pdf | psbook | psnup -n 2 | ps2pdf - -  
example-booklet.pdf

The first form is shorter, but the second requires less rewriting when
one adds or removes sections at the ends of the pipeline.

Altering the way that the ghostscript tools deal with command-line
arguments may be desirable, but it is not a trivial change, because it
may break existing scripts, and only trivial changes should be Wishlist
items in Launchpad (see https://wiki.ubuntu.com/Bugs/Importance).
Making the tools just slightly more verbose might be considered trivial,
but it would still be better done upstream.  The tools could specify the
output file, in a similar manner to wget, when they have created the
filename implicitly.  For example:

Output: Report_a_bug_about_Ubuntu.ps

As it happens, the tools such as pdf2ps are shell-script wrappers around
an executable, and so are easily tweaked.  An example patch for pdf2ps
is attached.

** Attachment added: Patch for pdf2ps to echo output filename when not user 
specified
   
http://launchpadlibrarian.net/15572891/pdf2ps-echo-output-filename-when-not-user-specified.patch

-- 
pdf2ps creates empty output
https://bugs.launchpad.net/bugs/241544
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 241544] Re: pdf2ps creates empty output

2008-06-23 Thread StefanS42376868
Thanks a lot, that does it!

But as you mentioned, the documentation is misleading. Of course I had read 
man pdf2ps before I submitted the problem report, but I expected that a 
missing output argument would automatically be substituted by stdout.
Maybe you can add a hint in the man page?

-- 
pdf2ps creates empty output
https://bugs.launchpad.net/bugs/241544
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 241544] Re: pdf2ps creates empty output

2008-06-22 Thread JM Williams
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
pdf2ps PDF/Report_a_bug_about_Ubuntu.pdf -  test.ps

I am marking this bug as Invalid because “the report describes the
software’s normal behaviour” (https://help.launchpad.net/BugStatuses).
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!

** Changed in: ghostscript (Ubuntu)
   Status: New = Invalid

-- 
pdf2ps creates empty output
https://bugs.launchpad.net/bugs/241544
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs