add viewspdf support