syntaxseed,
@syntaxseed@phpc.social avatar

I've been working on a plugin for a client that generates custom PDF worksheet printouts for teachers. And it's turning out SO awesome that I'm basically high on coding satisfaction today. 😁

Not bad for my first plugin!

syntaxseed,
@syntaxseed@phpc.social avatar

It's using a library called TCPDF which requires pretty old-timey HTML & very limited so.... table layouts are back baby!!

😆

But I've managed to exactly match the manually created PDFs, so I'm pretty happy with it.

PJFDF,
@PJFDF@masto.pt avatar

@syntaxseed me on the other hand also created some PDFs out of PHP, this one will show pie charts from a system. It was a productive day 😻

This is a dummy pdf with test data.

syntaxseed,
@syntaxseed@phpc.social avatar

@PJFDF Ooo nice!!

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed nice! I would imagine pdf generation would be tricky as a plug as you would need to make sure whatever external lib is installed and working.

bhhaskin,
@bhhaskin@bitsofsimplicity.com avatar

@syntaxseed oooo what library? Last time I did pdf generation is was a real nightmare.

syntaxseed,
@syntaxseed@phpc.social avatar

@bhhaskin

https://tcpdf.org/

Has a bit of a learning curve & poor docs... but it's working nicely.

syntaxseed,
@syntaxseed@phpc.social avatar

@bhhaskin Using a PHP library!

And it's only going to be installed on our own sites so we control the environment.

davidbisset,
@davidbisset@phpc.social avatar

@syntaxseed can't wait to see or hear more. Rock it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • wordpress
  • DreamBathrooms
  • thenastyranch
  • ngwrru68w68
  • magazineikmin
  • khanakhh
  • rosin
  • mdbf
  • Youngstown
  • slotface
  • everett
  • cisconetworking
  • kavyap
  • tacticalgear
  • InstantRegret
  • JUstTest
  • Durango
  • osvaldo12
  • ethstaker
  • modclub
  • GTA5RPClips
  • Leos
  • cubers
  • tester
  • normalnudes
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines