---
title: 'Build a React.js Canva Clone PDF Editor Using PDF-LIB & pdfjs-dist Library in Browser Using TypeScript'
source: 'https://youtube.com/watch?v=uR6gdHLCSbI'
video_id: 'uR6gdHLCSbI'
date: 2026-07-28
duration_sec: 302
---

# Build a React.js Canva Clone PDF Editor Using PDF-LIB & pdfjs-dist Library in Browser Using TypeScript

> Source: [Build a React.js Canva Clone PDF Editor Using PDF-LIB & pdfjs-dist Library in Browser Using TypeScript](https://youtube.com/watch?v=uR6gdHLCSbI)

## Summary

This video demonstrates a Canva-like PDF editor built with ReactJS, TypeScript, and libraries like PDF-LIB and pdfjs-dist. The creator showcases the application's features including PDF viewing, text and image annotation, and export, emphasizing that the source code is available for purchase.

### Key Points

- **Project Overview** [00:03] — A Canva clone PDF editor developed in ReactJS, running as a single-page app in the browser. Allows PDF viewing, editing, highlighting, and annotation.
- **Source Code Availability** [00:48] — Source code is offered for purchase, with a link in the description. It includes TypeScript files and is structured for easy modification and feature addition.
- **Text Annotation** [01:15] — Users can add text, adjust font size, change color using a color picker, and place text anywhere on the PDF pages.
- **Image Insertion** [02:13] — Images can be inserted into PDF pages with control over width, height, and placement.
- **Export PDF** [02:42] — Changes (text, highlights, annotations, images) are saved and exported as a downloadable PDF file.
- **Technology Stack** [03:08] — Uses fabricjs, pdf-lib (JavaScript PDF generation), pdfjs-dist (PDF rendering), and React latest version. Easy to run locally and deploy.

### Conclusion

The video presents a functional React-based PDF editor with annotation capabilities, but focuses more on promoting the purchased source code rather than providing a building tutorial.

## Transcript

in this video, I'll show you a Canva clone PDF editor application that I developed in ReactJS. I'm just showing you the demo right here. So it directly executes uh in the browser. It's a single page ReactJS application. Canva
clone PDF editor. So we are running it on local host as you can see. So right here you will select your PDF file. It has this advanced editor where you can edit, highlight, annotate your PDF files. Once you select your PDF file, it
will render out. It will view, you can read your PDF files directly. So it is having total number of pages, previous page, next page. Then we have this nice little advanced editor. It's entirely developed in ReactJS. I've given the
source code. You can directly purchase it. The link is given in the you will get actually all the source code from Google drive automatically. This is a directory structure. Each and every file is divided into its
appropriate uh TypeScript file here. So once you get the source code, you will able to modify this and add additional features as well. So now I'm just running it on local host. As you can see, we have started this project npm
run start. So once the project has started. So this is you can uh actually use these features just click the pencil icon and right here you will be able to
first of all navigate. So you can go to the next page like this So you can go to the next page like this using these buttons and then if you want to add some text you basically you can add this. As you
can see, we are adding some text right here. We can just place it accordingly. And we can even change the phone size as well. Just select it and just change the phone size
using the color picker. Change the color of the text. And then again like this. So you can see how easy it is.
accordingly. Same goes with images if you want to add image in the second page. So this is the insert image button. So right here you will select your image wherever you need to place this image.
You can change control the width, height, placement accordingly. After that uh then we have this button of export PDF exporting the changes automatically the output file will be downloaded. So all the changes
that you have done such as adding the text, highlighting, annotating everything is saved. You can see the image is also added. This is a complete project that I developed in ReactJS. If you are interested guys it's a Canva
clone PDF editor static single page application which directly runs in the browser. So the link is given in the description. So I basically used some third party libraries for which is
fabricjs. We have also used pdf lib pdfjs.ist version. As you can see this is the package.json file. So
package.json file. So pdf lib is a javascript pdf generation library. The pdfjs.dist artist is once again a very famous PDF related library in JavaScript and after all we are also
in JavaScript and after all we are also using React the latest version fabric it's very easy to run this locally and also you can deploy this build out this project and build out to a real domain name as well it's very easy to deploy
this as well so once you get the source code you will be able to modify this source code and also add additional features is on top of of this project. So the application is quite simple. You basically
out your PDF file where you can read all the pages. You have all these basic controls out there. You can navigate to the next page
we can even change the background color as well.
So here you can just need to first of all select the phone sites ability to insert images. So I've shown you the full demo. If you're interested the link is given in the description you can directly purchase it.
