Fix of pdf not loading on android (issue 5427)

Indentation changes for android fix