Hacker News new | past | comments | ask | show | jobs | submit login

Better yet, embed the PDF in an inline iframe so text can be copied, highlighted, etc.



A downloadable version of the doc is linked directly above the image. That does the job nicely, since it allows you to immediately edit.


newer browsers can actually just embed PDFs natively[0] in an iFrame, but there are more fault-tolerant ways to do it that provide a better ux.

Cool note, Google Drive provides an embed code for PDFs[1] which I've found to be useful.

Filestack also provides a great API for viewing PDFs in apps/browsers[2] that I use all the time.

0- https://pdfobject.com/static/

1- https://alicekeeler.com/2016/06/05/google-drive-embed-pdf/

2- https://www.filestack.com/docs/concepts/transform/#document-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: