![]() ![]() We'll also need to install the Typescript types for React. We'll be using Parcel and Typscript for development dependencies. Once you’ve initialized your package.json file, we'll need to install our dependencies. ![]() This command will create a package.json for you (after anwsering a few questions). We'll initialize our project by running npm init inside an empty directory. If you want to get the source code first and then follow along, download it here. This will be part 1 of a series of posts that will cover how to add features to our viewer, including zooming, rotating, and more. We’ll first walk you through setting up a simple project and then help you add a PDF Viewer using PDF.js, React, and Typescript. To get you started integrating a PDF.js viewer in your application, we’ve put together this blog post. Dropbox & Slack) and has an active community with responsive contributors. Since launching in 2011, PDF.js has been deployed in a variety of software applications (ex. PDF.js is an open-source JavaScript library that lets users view PDFs directly in a browser with no server dependencies or user plugins required. Luckily, PDF.js provides a great library for rendering PDFs inside your web application. That is why if you are developing any sort of software that deals with documents (even just displaying them), it is crucial to support PDF. If you have ever dealt with any documents, you've probably dealt with PDFs. PDF is a well- known, universal document format used by many industries for reports, contracts, blueprints, and much more. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |