Fix of pdf not loading on android (issue 5427)