compatible for gcc 4.1.2
support for pdf