Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Element Classes & IDs #297

Open
yamenzk opened this issue Jun 21, 2024 · 2 comments
Open

Feature Request: Element Classes & IDs #297

yamenzk opened this issue Jun 21, 2024 · 2 comments

Comments

@yamenzk
Copy link

yamenzk commented Jun 21, 2024

Hello,
It would be nice to have an option to assign classes &/ id to every Print Designer element (Text/Table/Rectangle/Image).
We can use those classes to apply custom CSS which can be added as an HTML Block through Jinja (in Custom Data).

Usage;

  • Assigning a font, to an element, that is not available in print designer font list. Particularly useful for language specific Google Fonts (Arabic, Thai, etc..)
  • More control over CSS & ability to use CSS properties that are not yet available in Print Designer (Padding, single border radius, shadows, gradients, etc...)
  • Ability to target and style elements dynamically using Javascript when printing via browser or rendering PDF through Chrome Headless (See Small Feature Request: Full Page View &/ Chrome Headless #296)
@maharshivpatel
Copy link
Collaborator

@yamenzk js is disabled for security purpose. not all css is supported by wkhtmltopdf. we can add classes.

@BaaridunNasr
Copy link

@maharshivpatel
Is there any reason we use wkhtmltopdf? I hear https://weasyprint.org/ is quite good. I dont know about different in css support but when I hear about wkhtmltopdf, all I hear are issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants