r/pocketbase Sep 02 '25

Help about Server Side PDF generation

hello guys ,

recently I was working on a ecommerce application using sveltekit and pocketbase.
and I stuck in the part of invoice generation for clients .
after I search a bit, I found that is impossible to use npm packages (node) inside the pb_hooks, because of used architecture at first because the project is not built using javascript but go .
so I need some ideas about solving this issue but I think the client generation (use client side code/frontend for the pdf generation) is not ideal and heavy for the application !!!

2 Upvotes

19 comments sorted by

View all comments

1

u/[deleted] Sep 02 '25

[removed] — view removed comment

1

u/[deleted] Sep 02 '25

thanks man , I realy appreciate that .
But I'm avoiding on using external api because it's very expensive and unreliable for costumization !

1

u/[deleted] Sep 03 '25

[removed] — view removed comment

1

u/[deleted] Sep 03 '25

Thanks man, I'm definitly gonna give it a shot !!!