parallax / jsPDF

Client-side JavaScript PDF generation for everyone.
https://parall.ax/products/jspdf
MIT License
28.69k stars 4.62k forks source link

Modernize Source Code Examples #2930

Open HackbrettXXX opened 3 years ago

HackbrettXXX commented 3 years ago

JsPDF has a lot of code examples that haven't been looked at for quite some time and some of them are outdated.

Have a look at the examples and modernize them:

Bonus: Add small examples for the three major UI frameworks: VueJs, Angular, and React. Setup the initial applications with @vue/cli, create-react-app, and @angular/cli then add jsPDF.

SoldierCorp commented 3 years ago

Hi,

I would like to help, can you assign it to me please?

HackbrettXXX commented 3 years ago

Sure. Thanks!

SoldierCorp commented 3 years ago

Hi @HackbrettXXX

Before I submit my PR, could you please read the Update for the event please https://hacktoberfest.digitalocean.com/hacktoberfest-update

HackbrettXXX commented 3 years ago

@SoldierCorp Thanks for notifying us. Unfortunately, I don't have the permissions to add the Hacktoberfest topic to the repo but I've already reached out to @MrRio. Stay tuned.

listopadiya commented 3 years ago

Looks like it is already added:

HackbrettXXX commented 3 years ago

Ah, my bad, didn't check it myself :D

dhairyagada commented 3 years ago

Hi @HackbrettXXX , I wish to add an angular based example, however can you tell me what all things are to be shown in the example?

HackbrettXXX commented 3 years ago

@dhairyagada For starters, show how to import jsPDF and create a very simple PDF file, e.g. with one line of text. Maybe on button click etc. Additional things would be:

@SoldierCorp any news?

SoldierCorp commented 3 years ago

Hi @HackbrettXXX

Sorry, I just started reviewing this task. It was a crazy month releasing some projects.

I have a question, I've been updating some of them (3 .html files that contain examples) but there are a lot of files in different folders and some of them are purely js and no HTML to test so I'm not sure if I am in the right direction also, what is the url in production the users visit to check these examples?

Sorry for the delay.

HackbrettXXX commented 3 years ago

@SoldierCorp You mean the JS files in the examples/js folder? They are used by the toplevel index.html which can be seen here: http://raw.githack.com/MrRio/jsPDF/master/. This would also be the "production" URL.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.