Adding pdf compilation