Skip to content

Commit

Permalink
ppdFilterPSToPS(): Fixed reverse output order
Browse files Browse the repository at this point in the history
With PPD files for PostScript printers or for (proprietary) driver
filters requiring PostScript input (for example Brother) and where the
printer which stacks the printed paper face-up and therefpre needs
reverse output order for correct stacking ("*DefaultOutputOrder:
Reverse" in PPD) there was no output at all. ppdFilterPSToPS() turned
the PostScript input file into empty, zero-bytes output.

The empty output is due to a wrong function being used for the
output. This was most probably introduced with the conversion of the
pstops CUPS filter to the ppdFilterPSToPS() filter function. At too
many places the regular puts()/printf() got replaced by
doc_puts()/doc_printf() where actually just a fputs()/fprintf() to
outputfd had been needed.

This is corrected now and we get correct output for these PPD files
again.

Fixes #20: #20
  • Loading branch information
tillkamppeter committed May 30, 2023
1 parent e219098 commit 2afb353
Showing 1 changed file with 185 additions and 183 deletions.

0 comments on commit 2afb353

Please sign in to comment.