protect against xpdf's internal state changes in bitmaps and transparency groups