there was a edge case where when print format beta was set to default which never ran code which sets the size for container that holds format.
fixed that by make iframe height to 100vh minus navbar and heading on load of beta print format
* chore: warn if wkhtmltopdf is invalid
wkhtmltopdf ( with patched qt ) is required to generate pdfs properly.
when user clicks on PDF, pdf will be generated and downloaded.
however, on print preview page warning will be shown.
* chore: refactor based on review comments
* chore: return False incase of exception
* chore: refactor and better naming
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
Replaced Print Format Builder Beta link in print-view to Print Designer.
if App is installed it opens Print Designer, if not it opens Frappe Cloud Marketplace Link.
- feat: Allow script injection into header/footer.html to allow manipulation of styles using page numbers/args received by wkhtmltopdf
- misc: also validate letterhead scripts
- Include scripts in printview as well as pdf
- Add helper instructions & re-arrange fields
* fix: Only allow standard print format modification in migrate
AFAIK only valid use case is fixtures and there too it should avoid
"standard".
* chore: typo
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
---------
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
* reafctor: force ipv4 localhost
Replacing "localhost" with "127.0.0.1" in the codebase; sometimes the name localhost force-resolves to ipv6
* revert: leave localhost usage in oauth tests
Change not required.
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
* added function to calculate letterspacing based on espresso
* added mixin to add font-size, font-weight and letter-spacing
* letter spacing is based on size and weight
* changed letter spacing on major places
* misc: minor kanban style fixes and changed border radius for .page-card
- Remove check for developer mode, it's not even valid as we dont allow
setting default print format like this
- Set in custom doctype if custom doctype else prop setter.
- query meta instead of doctype.
[skip ci]