Changes made for QPDF

- Compatible for API 16 and above