I embed pdf files (hosted on S3) in modules using google docs iframe in my rails application. Here is the code:
$modalBody.append( "<iframe src='https://docs.google.com/viewer?url=<%= @url %>&embedded=true' width='100%' height='800'></iframe>" );
The problem is that sometimes (apparently random) pdf files are displayed in black and white, even if the original download was in color. The only hint I have is that pdf files that appear as black and white usually have a very small color in them (for example, the one below). Any idea what is going on?
Aws
link AWS pdf

Google Docs
Google Docs link (you can get this by connecting the AWS link to Google Docs Viewer )

ruby-on-rails pdf amazon-s3 amazon-web-services
Josh
source share