I have been trying to implement pdf generation in html5 (native in the long term).
Currently I’m trying to use openfl-alivePDF, however this doesn’t seem to work, even using the example supplied, it compiles, but when it runs the browser console reports an error in the code…
TypeError: $iterator(…) is not a function, which occurs at var _ = $iterator(it)(); in the following code…
Lambda.count = function(it,pred) {
var n = 0;
if(pred == null) {
var _ = $iterator(it)();
while(_.hasNext()) {
var _1 = _.next();
++n;
}
} else {
var x = $iterator(it)();
while(x.hasNext()) {
var x1 = x.next();
if(pred(x1)) {
++n;
}
}
}
Has this method of pdf generation been successfully implemented by anybody, or is there an alternative that could be used?
Thanks