templates - Populating a PDF with Cocoa -
i developing app osx performs multiple actions, , should offer alternative export info pdf.
the generated pdf should have complex style: vector elements borders , backgrounds, optional image, custom font types, , maybe paragraph formatting.
i have experience on controlling adobe indesign app inject info template, , export pdf file, in case need embed functionality in app, client doesn't need else.
i need way have kind of templates, in can inject info app, possibility of repeating design elements of template. imagine invoice , has fields need populated once, client name , address; there other elements need repeated each product listed in invoice.
i've been doing research on subject , i've found info on cocoa drawing , quartz, require code templates within app, , it'd nice have them separately, importable info app. (that's because i'm designer , i'd offer custom template designs users of app).
perhaps 1 approach using html/css render (in app or remotely) , convert pdf? conversion within app or php... 2 options maintain elements vectorial? that's not crucial, it's matter of file size.
is there way / cocoa library working in similar way of have in mind? i'm not experienced programmer in cocoa, in fact i'm quite new it, i've done many things in lots of other oop languages.
sorry long question, wanted clear project.
thank you!
you can generate reasonably complex template driven pdfs in cocoa app using pdfpagebuilder framework. there decent demo app included indicates range of features supported.
text can accurately positioned , styling options include font name, size, colour , paragraph justification. images can inserted.
there back upwards enumerating objects , simple boolean conditional expressions.
https://github.com/thesaurussoftware/pdfpagebuilder
cocoa templates pdf
No comments:
Post a Comment