ps2pdf also takes pdf as input, not only ps
Bug #316943 reported by
Jakob Unterwurzacher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Debian) |
Fix Released
|
Unknown
|
|||
bash-completion (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
ps2pdf will, despite it's name, happily process pdfs (i use it all the time this way to compress pdfs to reasonable sizes). But the tab completion will only show up .ps files, which is annoying.
The attached patch fixes this.
Changed in bash-completion: | |
importance: | Undecided → Low |
status: | Incomplete → Triaged |
Changed in bash-completion: | |
status: | Unknown → New |
Changed in bash-completion (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
BUG
Hi Jakob,
Thanks for reporting this bug and also finding a patch. I did attempt to use ps2pdf to compress a PDF and found that when used on Ubuntu's shipped example content, i did indeed make the file size smaller. However, when i ran it against a PDF generated from firefox print-to-file (PDF), i found it actually made the resulting PDF larger. The other bug that this introduces, ps2pdf's default behaviour is to save the resulting filename, changing the file extension from *.ps to *.pdf. However, without changes to ps2pdf it will save the resulting output to *.pdf.pdf which is less than optimal IMO.
Using another tool, such as pdftk with the compress option did make the resulting PDF smaller. This makes me wonder if using ps2pdf in the situation you described is generally optimal for all users.
Suggestions welcome!