Yo! Check out Scribd’s embed API if you’re cool with third-party tools. It’s not pure HTML/CSS, but it solves all the weird scrolling issues and looks slick.
For custom previews, you could generate a thumbnail of the first page using a tool like PDFThumbnails.com and then load the full PDF on click.
Not the *purest* solution, but hey, it works!
For custom previews, you could generate a thumbnail of the first page using a tool like PDFThumbnails.com and then load the full PDF on click.
Not the *purest* solution, but hey, it works!
