-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
I'm planning to do some research on how to create markup language that can be used to define document definition, instead from using object in javascript. The idea is similar to the markup language used in Jasper PDF (Java).
This is needed for my project because I need to render PDF for both backend and frontend: in the backend, user can download the PDF. In frontend, user can preview the PDF. Currently, the backend API returns serialized of the doc definition's javascript object. Then the frontend we'll deserialize it again (using eval) then pass to the pdfmake generator.
I will make the research on the best markup language for it, and implement the lexer, parser, and transformer accordingly then create the PR.
Since this is quite a heavy project, I want to clarify first: to do you have any concern of this feature? 🙏