Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@LeMeow
Why ...
Javascript?
Oh Lord why?
And poppler is one of the few major libraries for PDF.
If u have questions feel free to ask... But Javascript seems like a very bad choice. -
Perhaps run a microservice in docker that handles pdf generation natively, instead of using library upon library
-
LeMeow64415y@IntrusionCM I have everything installed, including poppler, and it still doesn't work.
Node JS because it wasn't anything big that I wanted to get done and I thought I could get it up and running quickly; Doesn't feel that way now... -
LeMeow64415y@alexbrooklyn I just have to use existing Pdfs and edit them, found several libraries that could do that, but ran into these problems. :/
-
mt3o19145yUse docker and create microservice in real language, that has native bindings to poppler (or other real library). This is the only real solution for you if you can't "just install" what you need.
-
@LeMeow If u want help, describe your problem precisely.
The most simple jobs can be done utilizing either library or command line. -
C0D4681385yNodeJS,
wasn't something big,
doesn't work.
seriously do you even Node?
None of those statements go together. -
LeMeow64415y@IntrusionCM
So, I have an excel file as input and I have to extract data from it and fill (existing) PDF form for each record, generating n PDF forms for n records in the excel file.
I was learning and practicing Node properly and I thought that it should be possible to do this with node. I guess I was wrong and should have done more research on proper ways to do this (?). @C0D4 -
@LeMeow K.
PDF Forms are using FDF / XDFDF.
Maybe there is a Javascript library out there that can handle creation.
Otherwise - pdftk can write a form with data to a PDF file.
Most libraries I remember don't fill the form directly, instead they either extract it and replace the existing form or they simply place text commands at the formular fields positions.
First one requires a library that can handle extraction and replacement of the FDF/XFDF Part, last one is simpler - but might fail (if the receiving part simply extracts the FDF/XFDF stream there is no information ;)).
Maybe that helps pinpointing which specific library you want to use.
In PHP, it's usually FPDF (Seti / commercial) or TCPDF (Open Source). -
C0D4681385y@IntrusionCM how i love and yet hate hate FPDF.
@LeMeow there is fpdf-njs , I haven't used it, but it states it's built based on fpdf which is freaking awesome once you get over its issues and learning curve. -
@COD4 Oh yes.
PDF - fucking bazillion standards, always a surprise to open a file and not knowing if it's pandoras box or usable.
Related Rants
- Need a module to work with PDFs
- npm install
- But wait, that requires some dependencies
- And those dependencies require more dependencies
- Python not found
- Issues with env variables and wsl
*Bajillion hours later*
- poppler-qt5 not found
What the hecc is a poppler and why do I need it?
:/
rant
😕
poppler
npm
wsl
pdf
node