PdfCompression refactoring