add implmentation to check pdf plugin