Skip to content

[FEATURE REQUEST] Add markup language for PdfMake. #2923

@ihsansfd

Description

@ihsansfd

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? 🙏

@liborm85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions