countable / js-fdf Goto Github PK
View Code? Open in Web Editor NEWAn FDF (Form Data Format) generator, for populating PDF forms from NodeJS
An FDF (Form Data Format) generator, for populating PDF forms from NodeJS
I´m having problems with Unicode characters that seem to be messed up.
There are some discussions about it and I´ve found guy doing a PHP FDF that seemed to address the issue...
https://github.com/mikehaertl/php-pdftk/blob/master/src/FdfFile.php
This is actually pretty useful if you want to handle PDF's through node.js servers. Ever thought about supporting complex objects? Right now if you want to support dot notation you need to do something like this:
var dataObj = {};
dataObj['user.name'] = 'Bob';
dataObj['user.signature'] = 'CEO';
var fdfContents = fdf.generate(dataObj);
And if you attempt to do anything fancier than a single level deep object it dies:
var dataObj = {};
dataObj.user.name = 'Bob';
dataObj.user.signature = 'CEO';
var fdfContents = fdf.generate(dataObj);
// ^ Dies
I bet you could do some fancy recursive functions and create a path variable that displays an object's dot notation path. Set up an identical object of one that was passed into the .generate(), and you could use that object when you input the name into the .fdf file contents.
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.