57 minutes ago · Tech · hide · 0 comments

This can sound stupid, but I’ve only recently learned how to insert PDF files on a web page; see, I’m from the generation that suffered the dreaded Adobe Acrobat thing, and also ActiveX controls, and if you don’t know what these are, well, ask your grandpa but don’t make him cry too much. So say you have a PDF you’d like to insert on a page; here’s the HTML you need: <embed src="https://deprogrammaticaipsum.com/pdf/issue-083-php.pdf" width="100%" height="900px" > And the result, unsurprisingly, appears at the bottom of this page (but only if you’re reading this page on a web browser, of course; if you’re reading this on a PDF, well, you don’t need a PDF inside a PDF, although I wouldn’t be surprised you can do that, too). You won’t be surprised to learn that you can also style the embed with some CSS, like I’ve done in this website, precisely: embed { box-shadow: 0px 0px 6px rgba(0, 0, 0, 1); border-radius: 5px; margin-bottom: 16px; } See that nice rounded corners and that drop…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.