PDF conversion fixes