Fixed PDF conversion issues