فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(print): suppress document title and enforce zero print page margin
davoodmehraban89 committed
Oct 14, 2026 at 10:52 UTC
e7f0fa7602b816a85757c51402d2c83452b5e3e8
1 file changed
+8
-2
src/utils/InvoicePrint.js
+8
-2
@@ -565,15 +565,21 @@ class InvoicePrintImpl {
565
<html lang="fa" dir="rtl">
566
<head>
567
<meta charset="UTF-8" />
568
- <title>چاپ فاکتور</title>
568
+ <!-- Keep the print document title empty: some print engines otherwise
569
+ repeat it as a browser-generated page header. -->
570
+ <title></title>
571
<!-- Offline-first printing: use bundled/system fonts, no external network dependency. -->
572
<style>
573
/* Zero page margins prevent Chromium/WebView2 from reserving
574
the browser-generated date, document title and page-number
575
header/footer area. The invoice itself already has padding. */
576
+ /* Browser header/footer suppression: Chromium only omits its
577
+ generated title/date/URL/page number when the print margin
578
+ area is zero. Physical printer margins may still apply. */
579
@page {
580
size: ${pageCss};
576
- margin: 0;
581
+ margin: 0 !important;
582
+ padding: 0;
583
}
584
585
* { box-sizing: border-box; margin: 0; padding: 0; }