Is it possible to tell ghostscript to remove white backgrounds when using the pdfwrite-device?
The reason for this is that the generated PDF should be overlaid in further processing over some letterhead also given as PDF.
If the source postscript has the background already set to white then the resulting PDF would also have an explicited white background (achieved by a rect at the beginning of each page set to the complete page size set and filled with non-stroking color 'white'). Thus the generated PDF cannot be overlayed over a second letterhead-PDF. The white background would override the letterhead completely and the letterhead won't appear in the final PDF.
The application generating the postscript output with white background (e.g. some business software) is fix and cannot be changed. So the changes have to be done when processing the postscript output of this software.