Fix handling for transparenty pdfs