Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Custom TextSpans #28

Open
Jamie0 opened this issue Apr 13, 2022 · 1 comment
Open

Custom TextSpans #28

Jamie0 opened this issue Apr 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Jamie0
Copy link

Jamie0 commented Apr 13, 2022

It would be useful to be able to specify custom TextSpans (perhaps either as contents of a Paragraph object, or in a new obj_type). This would allow for mixing and matching of fonts/styles in inline text and make wasm-pdf much more flexible for generating text-based documents.

In our particular use case, we would like to be able to generate a PDF from user-supplied rich text, but wasm-pdf only currently supports bold and hyperlink styles inline. Converting from HTML to a JSON object is straightforward enough in modern browsers

@jussiniinikoski jussiniinikoski added the enhancement New feature or request label Apr 13, 2022
@jussiniinikoski
Copy link
Owner

Thanks for the idea! I'll need to look into this later...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants