I use google doc to show embedded PDF on my site. It uses iframe like this:
<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fwww.emathhelp.net%2Fpdf%2F1%2F1331155133.pdf&embedded=true" width="800" height="500" style="border: none;"></iframe>
I wonder how Google will index content of PDF?
Will in Google search appear site with embedded PDF or direct PDF link? And how this will affect my ranking?
I want the page, not direct PDF link to appear in search results. If above method does not work, is there some turnaround?
Thank you.
you are trying to leverage your ranking for some specific texts (keywords) that are inside your pdf files and you want to prevent it from being indexed and make it invisible, the answer is pretty clear: you can not or Google do not allow you to do this.
as a solution, i suggest you to put your pdf files in a path and mark the path as disallow in your robots.txt file.
Then you should use something like a database and write some codes (based on what platform you use) to get your pdf texts while you are uploading your pdf file. then use something like this viewer :
http://mozilla.github.com/pdf.js/web/viewer.html
when the page with specific pdf loads, your application will put grabbed texts from database and puts it inside a noscript tag. remember to optimize your page’s meta tags based on your pdf file