Fix of pdf not loading on android (issue 5427)

Fix for pdf on android not visible

Fix for pdf on android not visible
Use 3 param method for converting r,g,b into css string.

This avoids creation of temporary arrays to pass them into the util
method. Also using "arguments" is more expensive then passing in 3
parameters.
Add a (linked) test case for bug 1064894

This should have been part of PR 5284.
Merge pull request #5528 from Snuffleupagus/test-bug-1064894

Add a (linked) test case for bug 1064894
Merge pull request #5448 from thejdeep/androidfix

Added try/catch #5427
Merge pull request #5449 from CodingFabian/preferParamsOverArguments

Use 3 param method for converting r,g,b into css string.