frappe / print_designer

Visual print designer for Frappe / ERPNext
GNU Affero General Public License v3.0
213 stars 116 forks source link

Feature Request: Element Classes & IDs #297

Open yamenzk opened 3 months ago

yamenzk commented 3 months ago

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;

maharshivpatel commented 3 months ago

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

BaaridunNasr commented 3 months ago

@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.