Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example scripts #274

Closed
digidigital opened this issue Oct 26, 2021 · 2 comments
Closed

Example scripts #274

digidigital opened this issue Oct 26, 2021 · 2 comments

Comments

@digidigital
Copy link

When I used FPDF for PHP (some years ago)I really liked the scripts section of the homepage since it was a good resource for extending FPDF without having to wait for a new release or to cover edge cases.

I have ported some of the original scripts 1:1 to python -> https://github.com/digidigital/Extensions-and-Scripts-for-pyFPDF-fpdf2

I see you guys are busy implementing a lot of those features in fpdf2 directly. If someone wants to pick up an idea and use the ported scripts as rough starting point - go ahead !

@Lucas-C
Copy link
Member

Lucas-C commented Oct 29, 2021

Awesome @digidigital !

I've started by adding a reference to your repo in the docs:
https://pyfpdf.github.io/fpdf2/#related

I think many features could indeed be ported to fpdf2 so that they become "native".

We could start by opening 2-3 dedicated issues to port a few first features,
so that each one can be discussed individually, with a specific PR implementing it.
What do you think @digidigital ?
I'd suggest to start with:

  1. rect(round_corners=True) (Allow to draw rectangles with round corners by introducing a new round_corners optional argument to FPDF.rect #427)
  2. star() shape (Add a new star() method to draw regular stars! #428)
  3. image(screen_only=True) (Allow to insert screen-only images that do not get printed #441)
  4. add_javascript()
  5. text with rotation/skew (New feature: FPDF.mirror() #536)

@Lucas-C
Copy link
Member

Lucas-C commented May 24, 2024

Closing this now, given that issues were created for every subject (and most of them have been implemented), and that we reference your collection of scripts in https://py-pdf.github.io/fpdf2/#related 🙂

@Lucas-C Lucas-C closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants