frappe / print_designer

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

Text boxes dont hold position in the PDF when stacked horizontally #271

Open PhantomKunai opened 1 month ago

PhantomKunai commented 1 month ago
  1. What I see in editor image

  2. What is see in preview and PDF image

Print format in copied form

{
  "name": "Sales Invoice - PD 2",
  "owner": "Administrator",
  "creation": "2024-05-24 10:32:58.423986",
  "modified": "2024-05-24 11:31:30.205319",
  "modified_by": "Administrator",
  "docstatus": 0,
  "idx": 0,
  "print_designer_print_format": "{\"header\":[{\"id\":\"JHUDYdEMRp\",\"type\":\"rectangle\",\"childrens\":[],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":0,\"pageX\":0,\"pageY\":0,\"width\":714.3309212589,\"height\":0,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-row\"]}],\"body\":[{\"id\":\"HJbpqJngZq\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"MXLWmilTGR\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"QhxfujRfni\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"BTzDHFwATK\",\"value\":\"Test 3\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false,\"spanRef\":null}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":229.425,\"startY\":218.614,\"pageX\":734.4253362230875,\"pageY\":537,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":0,\"pageX\":0,\"pageY\":0,\"width\":120.701,\"height\":260.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true},{\"id\":\"PExTeTXkqh\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"JFCJYyIGOu\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"DQrMmFRPAX\",\"value\":\"Test 2\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":0,\"startY\":217.614,\"pageX\":625.7006480321124,\"pageY\":535.9999694824219,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"borderWidth\":\"1px\",\"borderRadius\":\"5px\",\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":120.701,\"startY\":0,\"pageX\":120.70064803211244,\"pageY\":0,\"width\":-105.701,\"height\":260.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true},{\"id\":\"yvZScuUHWB\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"ufgaWNnGAQ\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"eCOvnkTWPH\",\"value\":\"Test 1\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":0,\"startY\":218.614,\"pageX\":520,\"pageY\":537,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingLeft\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":15,\"startY\":0,\"pageX\":15,\"pageY\":0,\"width\":699.331,\"height\":260.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":185.385826773,\"pageX\":0,\"pageY\":185.385826773,\"width\":714.3309212589,\"height\":260.18897637710006,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-row\"],\"isDynamicHeight\":true}],\"footer\":[]}",
  "print_designer_preview_img": "/private/files/print_designer-sales_invoice_-_pd_2-preview.jpg",
  "print_designer_settings": "{\"page\":{\"height\":1122.52,\"width\":793.701,\"marginTop\":18.8976377955,\"marginBottom\":7.5590551182,\"marginLeft\":56.692913386499995,\"marginRight\":22.6771653546,\"headerHeight\":185.385826773,\"footerHeight\":0,\"headerHeightWithMargin\":204.2834645685,\"footerHeightWithMargin\":7.5590551182,\"UOM\":\"mm\"},\"pdfPrintDPI\":96,\"globalStyles\":{\"staticText\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"text\",\"isDynamic\":false,\"mainRuleSelector\":\".staticText\",\"style\":{\"display\":\"inline-block\",\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflow\":\"hidden\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"mainCssRule\":{}},\"dynamicText\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"text\",\"isDynamic\":true,\"mainRuleSelector\":\".dynamicText\",\"labelRuleSelector\":\".dynamicText .label-text\",\"style\":{\"display\":\"inline-block\",\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#f0f0f0\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflow\":\"hidden\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1},\"labelStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"mainCssRule\":{},\"labelCssRule\":{}},\"rectangle\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"rectangle\",\"isDynamic\":false,\"mainRuleSelector\":\".rectangle\",\"style\":{\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"color\":\"#000000\",\"backgroundColor\":\"\",\"border\":\"1px solid black\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderWidth\":\"1px\",\"boxSizing\":\"border-box\",\"outline\":\"none\",\"borderRadius\":0,\"boxShadow\":\"none\",\"opacity\":1,\"zIndex\":0},\"mainCssRule\":{}},\"image\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"image\",\"isDynamic\":false,\"mainRuleSelector\":\".image\",\"style\":{\"display\":\"block\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"objectFit\":\"scale-down\",\"objectPosition\":\"center center\",\"backgroundSize\":\"contain\",\"backgroundPosition\":\"center center\",\"backgroundRepeat\":\"no-repeat\",\"opacity\":1},\"mainCssRule\":{}},\"barcode\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"barcode\",\"isDynamic\":false,\"mainRuleSelector\":\".barcode\",\"style\":{\"display\":\"block\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1},\"mainCssRule\":{}},\"table\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"table\",\"isDynamic\":true,\"mainRuleSelector\":\".printTable td\",\"headerRuleSelector\":\".printTable th\",\"altRuleSelector\":\".printTable tr:nth-child(even) td\",\"labelRuleSelector\":\".printTable .label-text\",\"style\":{\"fontFamily\":\"Inter\",\"fontSize\":\"10px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"1px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"10px\",\"paddingBottom\":\"10px\",\"paddingLeft\":\"10px\",\"paddingRight\":\"10px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"verticalAlign\":\"baseline\",\"opacity\":1},\"labelStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"10px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"verticalAlign\":\"baseline\",\"zIndex\":1},\"headerStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"11px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"1px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"10px\",\"paddingBottom\":\"10px\",\"paddingLeft\":\"10px\",\"paddingRight\":\"10px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"altStyle\":{},\"mainCssRule\":{},\"labelCssRule\":{},\"headerCssRule\":{},\"altCssRule\":{}}},\"currentPageSize\":\"CUSTOM\",\"isHeaderFooterAuto\":false,\"currentDoc\":\"IN-2425005\",\"textControlType\":\"dynamic\",\"currentFonts\":[\"Inter\"],\"printHeaderFonts\":{},\"printFooterFonts\":null,\"printBodyFonts\":{\"Inter\":{\"weight\":[400,600],\"italic\":[]}},\"userProvidedJinja\":\"{% set tax1= namespace(tax1=0) %}\\n{% set tax2= namespace(tax2=0) %}\\n{% set tax1val= namespace(tax1val=0) %}\\n{% set tax2val= namespace(tax2val=0) %}\\n\\n{%- if doc.taxes_and_charges  == 'Output GST In-state - AI' %}\\n    {%- for row in doc.taxes %}\\n        {%- if row.account_head  == 'Output Tax SGST - AI' %}\\n            {%- set tax1.tax1 = \\\"SGST\\\" %}\\n            {%- set tax1val.tax1val = row.get_formatted(\\\"tax_amount\\\") or \\\"0\\\" %}\\n        {%- endif %}\\n        {%- if row.account_head  == 'Output Tax CGST - AI' %}\\n            {%- set tax2.tax2 = \\\"CGST\\\" %}\\n            {%- set tax2val.tax2val = row.get_formatted(\\\"tax_amount\\\") or \\\"0\\\" %}\\n        {%- endif %}\\n    {%- endfor %}\\n    {% set send_to_jinja = {\\\"tax1\\\": tax1.tax1, \\\"tax2\\\": tax2.tax2, \\\"tax1val\\\":tax1val.tax1val, \\\"tax2val\\\":tax2val.tax2val} %}\\n{%- else %}\\n    {%- set tax1.tax1 = \\\"IGST\\\" %}\\n    {%- set tax1val.tax1val = doc.get_formatted(\\\"total_taxes_and_charges\\\") or \\\"0\\\" %}\\n    {% set send_to_jinja = {\\\"tax1\\\": tax1.tax1, \\\"tax2\\\": \\\"\\\", \\\"tax1val\\\":tax1val.tax1val, \\\"tax2val\\\":\\\"0\\\"} %}\\n{%- endif %}\\n\\n\",\"schema_version\":\"1.1.0\"}",
  "print_designer_header": "[]",
  "print_designer_footer": "[]",
  "print_designer_body": "[{\"id\":\"QhxfujRfni\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"BTzDHFwATK\",\"value\":\"Test 3\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false,\"spanRef\":null}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":229.42533622308747,\"startY\":404,\"pageX\":734.4253362230875,\"pageY\":537,\"width\":90.7086614184,\"height\":41.574803150099996,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true},{\"id\":\"JFCJYyIGOu\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"DQrMmFRPAX\",\"value\":\"Test 2\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":120.70064803211244,\"startY\":402.9999694824219,\"pageX\":625.7006480321124,\"pageY\":535.9999694824219,\"width\":90.7086614184,\"height\":41.574803150099996,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"borderWidth\":\"1px\",\"borderRadius\":\"5px\",\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true},{\"id\":\"ufgaWNnGAQ\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"eCOvnkTWPH\",\"value\":\"Test 1\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":15,\"startY\":404,\"pageX\":520,\"pageY\":537,\"width\":90.7086614184,\"height\":41.574803150099996,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingLeft\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}]",
  "print_designer": 1,
  "doc_type": "Sales Invoice",
  "module": "Accounts",
  "default_print_language": "en",
  "standard": "No",
  "print_designer_template_app": "*****hidden****",
  "custom_format": 0,
  "disabled": 0,
  "print_format_type": "Jinja",
  "raw_printing": 0,
  "margin_top": 15,
  "margin_bottom": 15,
  "margin_left": 15,
  "margin_right": 15,
  "align_labels_right": 0,
  "show_section_headings": 0,
  "line_breaks": 0,
  "absolute_value": 0,
  "font_size": 14,
  "font": "",
  "page_number": "Hide",
  "css": ":root { --scale-factor: 1px; --modal-x: 0px; --modal-y: 0px; } .staticText { display: inline-block; font-family: Inter; font-size: 14px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow: hidden; overflow-wrap: break-word; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .dynamicText { display: inline-block; font-family: Inter; font-size: 14px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow: hidden; overflow-wrap: break-word; white-space: normal; user-select: none; opacity: 1; background-color: rgb(240, 240, 240); } .dynamicText .label-text { font-family: Inter; font-size: 14px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .rectangle { padding: 0px; margin: 0px; white-space: normal; user-select: none; min-width: 0px; min-height: 0px; color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0); box-sizing: border-box; outline: none; border-radius: 0px; box-shadow: none; opacity: 1; z-index: 0; } .image { display: block; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; object-fit: scale-down; object-position: center center; background-size: contain; background-position: center center; background-repeat: no-repeat; opacity: 1; } .barcode { display: block; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; } .printTable td { font-family: Inter; font-size: 10px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 1px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 10px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow-wrap: break-word; white-space: normal; user-select: none; vertical-align: baseline; opacity: 1; } .printTable .label-text { font-family: Inter; font-size: 10px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; vertical-align: baseline; z-index: 1; } .printTable th { font-family: Inter; font-size: 11px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 1px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 10px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .printTable tr:nth-child(2n) td { } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 210.000mm; --print-container-height: 297.000mm; --print-margin-top: 0mm; --print-margin-bottom: 0.000mm; --print-margin-left: 0mm; --print-margin-right: 0.000mm; } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 210.000mm; --print-container-height: 297.000mm; --print-margin-top: 0mm; --print-margin-bottom: 0.000mm; --print-margin-left: 0mm; --print-margin-right: 0.000mm; } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 225.000mm; --print-container-height: 302.000mm; --print-margin-top: -5mm; --print-margin-bottom: 2.000mm; --print-margin-left: -15mm; --print-margin-right: 6.000mm; }@page  { size: 210mm 297mm; margin: 0mm; } @page  { size: 210mm 297mm; margin: 0mm; } @page  { size: 210mm 297mm; margin: 5mm 6mm 2mm 15mm; }",
  "print_format_builder": 0,
  "print_format_builder_beta": 0,
  "doctype": "Print Format",
  "__onload": { "print_templates": [] },
  "__last_sync_on": "2024-05-24T06:05:45.696Z"
}
PhantomKunai commented 1 month ago

I see this in 3 or more boxes, as far as my testing goes.

maharshivpatel commented 1 month ago

@PhantomKunai if you are on the local development setup, can you please test this in the develop branch?

PhantomKunai commented 1 month ago

@maharshivpatel

  1. Switching to develop and migrating image

  2. Template image

  3. Preview and PDF image

Hurray because different looking error? 😂

Print format in copied form

{
  "name": "Sales Invoice - PD 2",
  "owner": "Administrator",
  "creation": "2024-05-24 10:32:58.423986",
  "modified": "2024-05-24 13:04:39.454673",
  "modified_by": "Administrator",
  "docstatus": 0,
  "idx": 0,
  "print_designer_print_format": "{\"header\":[{\"id\":\"JHUDYdEMRp\",\"type\":\"rectangle\",\"childrens\":[],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":0,\"pageX\":0,\"pageY\":0,\"width\":714.3309212589,\"height\":0,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-row\"]}],\"body\":[{\"id\":\"HJbpqJngZq\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"MXLWmilTGR\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"QhxfujRfni\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"BTzDHFwATK\",\"value\":\"Test 3\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false,\"spanRef\":null}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":229.425,\"startY\":218.614,\"pageX\":734.4253362230875,\"pageY\":537,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":0,\"pageX\":0,\"pageY\":0,\"width\":120.701,\"height\":260.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true},{\"id\":\"PExTeTXkqh\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"JFCJYyIGOu\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"DQrMmFRPAX\",\"value\":\"Test 2\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":0,\"startY\":217.614,\"pageX\":625.7006480321124,\"pageY\":535.9999694824219,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"borderWidth\":\"1px\",\"borderRadius\":\"5px\",\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":120.701,\"startY\":0,\"pageX\":120.70064803211244,\"pageY\":0,\"width\":-105.701,\"height\":260.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true},{\"id\":\"yvZScuUHWB\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"ufgaWNnGAQ\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"eCOvnkTWPH\",\"value\":\"Test 1\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":0,\"startY\":218.614,\"pageX\":520,\"pageY\":537,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingLeft\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":15,\"startY\":0,\"pageX\":15,\"pageY\":0,\"width\":699.331,\"height\":260.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":185.385826773,\"pageX\":0,\"pageY\":185.385826773,\"width\":714.3309212589,\"height\":260.18897637710006,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-row\"],\"isDynamicHeight\":true}],\"footer\":[]}",
  "print_designer_preview_img": "/private/files/print_designer-sales_invoice_-_pd_2-preview.jpg",
  "print_designer_after_table": "[]",
  "print_designer_settings": "{\"page\":{\"height\":1122.52,\"width\":793.701,\"marginTop\":18.8976377955,\"marginBottom\":7.5590551182,\"marginLeft\":56.692913386499995,\"marginRight\":22.6771653546,\"headerHeight\":185.385826773,\"footerHeight\":0,\"headerHeightWithMargin\":204.2834645685,\"footerHeightWithMargin\":7.5590551182,\"UOM\":\"mm\"},\"pdfPrintDPI\":96,\"globalStyles\":{\"staticText\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"text\",\"isDynamic\":false,\"mainRuleSelector\":\".staticText\",\"style\":{\"display\":\"inline-block\",\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflow\":\"hidden\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"mainCssRule\":{}},\"dynamicText\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"text\",\"isDynamic\":true,\"mainRuleSelector\":\".dynamicText\",\"labelRuleSelector\":\".dynamicText .label-text\",\"style\":{\"display\":\"inline-block\",\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#f0f0f0\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflow\":\"hidden\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1},\"labelStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"mainCssRule\":{},\"labelCssRule\":{}},\"rectangle\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"rectangle\",\"isDynamic\":false,\"mainRuleSelector\":\".rectangle\",\"style\":{\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"color\":\"#000000\",\"backgroundColor\":\"\",\"border\":\"1px solid black\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderWidth\":\"1px\",\"boxSizing\":\"border-box\",\"outline\":\"none\",\"borderRadius\":0,\"boxShadow\":\"none\",\"opacity\":1,\"zIndex\":0},\"mainCssRule\":{}},\"image\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"image\",\"isDynamic\":false,\"mainRuleSelector\":\".image\",\"style\":{\"display\":\"block\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"objectFit\":\"scale-down\",\"objectPosition\":\"center center\",\"backgroundSize\":\"contain\",\"backgroundPosition\":\"center center\",\"backgroundRepeat\":\"no-repeat\",\"opacity\":1},\"mainCssRule\":{}},\"barcode\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"barcode\",\"isDynamic\":false,\"mainRuleSelector\":\".barcode\",\"style\":{\"display\":\"block\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1},\"mainCssRule\":{}},\"table\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"table\",\"isDynamic\":true,\"mainRuleSelector\":\".printTable td\",\"headerRuleSelector\":\".printTable th\",\"altRuleSelector\":\".printTable tr:nth-child(even) td\",\"labelRuleSelector\":\".printTable .label-text\",\"style\":{\"fontFamily\":\"Inter\",\"fontSize\":\"10px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"1px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"10px\",\"paddingBottom\":\"10px\",\"paddingLeft\":\"10px\",\"paddingRight\":\"10px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"verticalAlign\":\"baseline\",\"opacity\":1},\"labelStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"10px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"verticalAlign\":\"baseline\",\"zIndex\":1},\"headerStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"11px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"1px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"10px\",\"paddingBottom\":\"10px\",\"paddingLeft\":\"10px\",\"paddingRight\":\"10px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"altStyle\":{},\"mainCssRule\":{},\"labelCssRule\":{},\"headerCssRule\":{},\"altCssRule\":{}}},\"currentPageSize\":\"CUSTOM\",\"isHeaderFooterAuto\":false,\"currentDoc\":\"IN-2425005\",\"textControlType\":\"dynamic\",\"currentFonts\":[\"Inter\"],\"printHeaderFonts\":{},\"printFooterFonts\":null,\"printBodyFonts\":{\"Inter\":{\"weight\":[400,600],\"italic\":[]}},\"userProvidedJinja\":\"{% set tax1= namespace(tax1=0) %}\\n{% set tax2= namespace(tax2=0) %}\\n{% set tax1val= namespace(tax1val=0) %}\\n{% set tax2val= namespace(tax2val=0) %}\\n\\n{%- if doc.taxes_and_charges  == 'Output GST In-state - AI' %}\\n    {%- for row in doc.taxes %}\\n        {%- if row.account_head  == 'Output Tax SGST - AI' %}\\n            {%- set tax1.tax1 = \\\"SGST\\\" %}\\n            {%- set tax1val.tax1val = row.get_formatted(\\\"tax_amount\\\") or \\\"0\\\" %}\\n        {%- endif %}\\n        {%- if row.account_head  == 'Output Tax CGST - AI' %}\\n            {%- set tax2.tax2 = \\\"CGST\\\" %}\\n            {%- set tax2val.tax2val = row.get_formatted(\\\"tax_amount\\\") or \\\"0\\\" %}\\n        {%- endif %}\\n    {%- endfor %}\\n    {% set send_to_jinja = {\\\"tax1\\\": tax1.tax1, \\\"tax2\\\": tax2.tax2, \\\"tax1val\\\":tax1val.tax1val, \\\"tax2val\\\":tax2val.tax2val} %}\\n{%- else %}\\n    {%- set tax1.tax1 = \\\"IGST\\\" %}\\n    {%- set tax1val.tax1val = doc.get_formatted(\\\"total_taxes_and_charges\\\") or \\\"0\\\" %}\\n    {% set send_to_jinja = {\\\"tax1\\\": tax1.tax1, \\\"tax2\\\": \\\"\\\", \\\"tax1val\\\":tax1val.tax1val, \\\"tax2val\\\":\\\"0\\\"} %}\\n{%- endif %}\\n\\n\",\"schema_version\":\"1.1.0\"}",
  "print_designer_header": "[]",
  "print_designer_footer": "[]",
  "print_designer_body": "[{\"id\": \"QhxfujRfni\", \"type\": \"text\", \"content\": \"\", \"contenteditable\": false, \"isDynamic\": true, \"isFixedSize\": true, \"dynamicContent\": [{\"doctype\": \"\", \"parentField\": \"\", \"fieldname\": \"BTzDHFwATK\", \"value\": \"Test 3\", \"fieldtype\": \"StaticText\", \"is_static\": true, \"is_labelled\": false, \"nextLine\": false, \"parseJinja\": false, \"style\": {}, \"labelStyleEditing\": false, \"spanRef\": null}], \"selectedDynamicText\": null, \"isDraggable\": true, \"isResizable\": true, \"isDropZone\": false, \"startX\": 229.42533622308747, \"startY\": 404, \"pageX\": 734.4253362230875, \"pageY\": 537, \"width\": 90.7086614184, \"height\": 41.574803150099996, \"styleEditMode\": \"main\", \"labelDisplayStyle\": \"standard\", \"style\": {\"paddingTop\": \"5px\", \"paddingBottom\": \"5px\", \"paddingRight\": \"5px\", \"paddingLeft\": \"5px\", \"borderWidth\": \"1px\", \"borderRadius\": \"5px\", \"zIndex\": 0}, \"labelStyle\": {}, \"isDynamicHeight\": true, \"classes\": [], \"isElementOverlapping\": true, \"heightType\": \"auto\"}, {\"id\": \"JFCJYyIGOu\", \"type\": \"text\", \"content\": \"\", \"contenteditable\": false, \"isDynamic\": true, \"isFixedSize\": true, \"dynamicContent\": [{\"doctype\": \"\", \"parentField\": \"\", \"fieldname\": \"DQrMmFRPAX\", \"value\": \"Test 2\", \"fieldtype\": \"StaticText\", \"is_static\": true, \"is_labelled\": false, \"nextLine\": false, \"parseJinja\": false, \"style\": {}, \"labelStyleEditing\": false}], \"selectedDynamicText\": null, \"isDraggable\": true, \"isResizable\": true, \"isDropZone\": false, \"startX\": 120.70064803211244, \"startY\": 402.9999694824219, \"pageX\": 625.7006480321124, \"pageY\": 535.9999694824219, \"width\": 90.7086614184, \"height\": 41.574803150099996, \"styleEditMode\": \"main\", \"labelDisplayStyle\": \"standard\", \"style\": {\"borderWidth\": \"1px\", \"borderRadius\": \"5px\", \"paddingTop\": \"5px\", \"paddingBottom\": \"5px\", \"paddingRight\": \"5px\", \"paddingLeft\": \"5px\", \"zIndex\": 0}, \"labelStyle\": {}, \"isDynamicHeight\": true, \"classes\": [], \"isElementOverlapping\": true, \"heightType\": \"auto\"}, {\"id\": \"ufgaWNnGAQ\", \"type\": \"text\", \"content\": \"\", \"contenteditable\": false, \"isDynamic\": true, \"isFixedSize\": true, \"dynamicContent\": [{\"doctype\": \"\", \"parentField\": \"\", \"fieldname\": \"eCOvnkTWPH\", \"value\": \"Test 1\", \"fieldtype\": \"StaticText\", \"is_static\": true, \"is_labelled\": false, \"nextLine\": false, \"parseJinja\": false, \"style\": {}, \"labelStyleEditing\": false}], \"selectedDynamicText\": null, \"isDraggable\": true, \"isResizable\": true, \"isDropZone\": false, \"startX\": 15, \"startY\": 404, \"pageX\": 520, \"pageY\": 537, \"width\": 90.7086614184, \"height\": 41.574803150099996, \"styleEditMode\": \"main\", \"labelDisplayStyle\": \"standard\", \"style\": {\"paddingTop\": \"5px\", \"paddingLeft\": \"5px\", \"paddingBottom\": \"5px\", \"paddingRight\": \"5px\", \"borderWidth\": \"1px\", \"borderRadius\": \"5px\", \"zIndex\": 0}, \"labelStyle\": {}, \"isDynamicHeight\": true, \"classes\": [], \"isElementOverlapping\": true, \"heightType\": \"auto\"}]",
  "print_designer": 1,
  "doc_type": "Sales Invoice",
  "module": "Accounts",
  "default_print_language": "en",
  "standard": "No",
  "print_designer_template_app": "***hidden***",
  "custom_format": 0,
  "disabled": 0,
  "print_format_type": "Jinja",
  "raw_printing": 0,
  "margin_top": 15,
  "margin_bottom": 15,
  "margin_left": 15,
  "margin_right": 15,
  "align_labels_right": 0,
  "show_section_headings": 0,
  "line_breaks": 0,
  "absolute_value": 0,
  "font_size": 14,
  "font": "",
  "page_number": "Hide",
  "css": ":root { --scale-factor: 1px; --modal-x: 0px; --modal-y: 0px; } .staticText { display: inline-block; font-family: Inter; font-size: 14px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow: hidden; overflow-wrap: break-word; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .dynamicText { display: inline-block; font-family: Inter; font-size: 14px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow: hidden; overflow-wrap: break-word; white-space: normal; user-select: none; opacity: 1; background-color: rgb(240, 240, 240); } .dynamicText .label-text { font-family: Inter; font-size: 14px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .rectangle { padding: 0px; margin: 0px; white-space: normal; user-select: none; min-width: 0px; min-height: 0px; color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0); box-sizing: border-box; outline: none; border-radius: 0px; box-shadow: none; opacity: 1; z-index: 0; } .image { display: block; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; object-fit: scale-down; object-position: center center; background-size: contain; background-position: center center; background-repeat: no-repeat; opacity: 1; } .barcode { display: block; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; } .printTable td { font-family: Inter; font-size: 10px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 1px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 10px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow-wrap: break-word; white-space: normal; user-select: none; vertical-align: baseline; opacity: 1; } .printTable .label-text { font-family: Inter; font-size: 10px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; vertical-align: baseline; z-index: 1; } .printTable th { font-family: Inter; font-size: 11px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 1px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 10px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .printTable tr:nth-child(2n) td { } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 210.000mm; --print-container-height: 297.000mm; --print-margin-top: 0mm; --print-margin-bottom: 0.000mm; --print-margin-left: 0mm; --print-margin-right: 0.000mm; } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 210.000mm; --print-container-height: 297.000mm; --print-margin-top: 0mm; --print-margin-bottom: 0.000mm; --print-margin-left: 0mm; --print-margin-right: 0.000mm; } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 225.000mm; --print-container-height: 302.000mm; --print-margin-top: -5mm; --print-margin-bottom: 2.000mm; --print-margin-left: -15mm; --print-margin-right: 6.000mm; }@page  { size: 210mm 297mm; margin: 0mm; } @page  { size: 210mm 297mm; margin: 0mm; } @page  { size: 210mm 297mm; margin: 5mm 6mm 2mm 15mm; }",
  "print_format_builder": 0,
  "print_format_builder_beta": 0,
  "doctype": "Print Format",
  "__onload": { "print_templates": [] },
  "__last_sync_on": "2024-05-24T07:38:21.036Z"
}
PhantomKunai commented 1 month ago

Let me know if you need anything else. If you are not seeing this error, there's clearly a configuration error of some sort on my end.

These are my print settings

{
  "name": "Print Settings",
  "owner": "Administrator",
  "modified": "2024-05-21 10:05:01.764704",
  "modified_by": "Administrator",
  "docstatus": 0,
  "idx": "0",
  "send_print_as_pdf": 1,
  "repeat_header_footer": 1,
  "pdf_page_size": "A4",
  "pdf_page_height": 64,
  "pdf_page_width": 75,
  "with_letterhead": 1,
  "compact_item_print": 1,
  "print_uom_after_quantity": 0,
  "allow_print_for_draft": 1,
  "add_draft_heading": 0,
  "allow_page_break_inside_tables": 1,
  "allow_print_for_cancelled": 0,
  "print_taxes_with_zero_amount": 0,
  "enable_print_server": 0,
  "enable_raw_printing": 0,
  "print_style": "Classic",
  "font": "Helvetica",
  "font_size": 9,
  "doctype": "Print Settings",
  "__last_sync_on": "2024-05-24T07:42:25.382Z"
}

Print Style used

{
  "name": "Classic",
  "owner": "Administrator",
  "creation": "2017-08-17 02:00:12.502887",
  "modified": "2017-08-18 00:43:48.675833",
  "modified_by": "Administrator",
  "docstatus": 0,
  "idx": 3,
  "print_style_name": "Classic",
  "disabled": 0,
  "standard": 1,
  "css": "/*\n\tcommon style for whole page\n\tThis should include:\n\t+ page size related settings\n\t+ font family settings\n\t+ line spacing settings\n*/\n.print-format div,\n.print-format span,\n.print-format td,\n.print-format h1,\n.print-format h2,\n.print-format h3,\n.print-format h4 {\n\tfont-family: Georgia, serif;\n}\n\n/* classic format: for-test */",
  "preview": "/assets/frappe/images/help/print-style-classic.png",
  "doctype": "Print Style",
  "__last_sync_on": "2024-05-24T07:43:24.833Z"
}
maharshivpatel commented 1 month ago

@PhantomKunai after changing to develop you have to open the format and save it once. but thank you as I also needed this error to write the patch before I merge it in the main branch.

maharshivpatel commented 1 month ago

@PhantomKunai also pull the latest on develop. i fixed one issue just now.

PhantomKunai commented 1 month ago

With regards to saving, the following checks were performed

  1. Save as is without changing anything.
  2. Save the format by slightly shifting at least 1 element.

Both dont show any difference. The elements still overlap somehow.

To illustrate some additional stuff

  1. One is place is below first two input image output image

  2. All are spaced far apart input image output image

PhantomKunai commented 1 month ago
  1. Double checked latest commit image

Still same issue

{
  "name": "Sales Invoice - PD 2",
  "owner": "Administrator",
  "creation": "2024-05-24 10:32:58.423986",
  "modified": "2024-05-24 13:32:02.060991",
  "modified_by": "Administrator",
  "docstatus": 0,
  "idx": 0,
  "print_designer_print_format": "{\"header\":[{\"id\":\"PQRsXXIQzQ\",\"type\":\"rectangle\",\"childrens\":[],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":0,\"pageX\":0,\"pageY\":0,\"width\":714.3309212589,\"height\":0,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-row\"]}],\"body\":[{\"id\":\"tfDbRCIVHo\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"jIVtrUTMIV\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"QhxfujRfni\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"BTzDHFwATK\",\"value\":\"Test 3\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false,\"spanRef\":null}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":538.425,\"startY\":225.614,\"pageX\":1043.4253362230875,\"pageY\":544,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true,\"heightType\":\"auto\"}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":0,\"pageX\":0,\"pageY\":0,\"width\":274.701,\"height\":267.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true},{\"id\":\"lVhAabQEQq\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"JFCJYyIGOu\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"DQrMmFRPAX\",\"value\":\"Test 2\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":0,\"startY\":221.614,\"pageX\":779.7006480321124,\"pageY\":539.9999694824219,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"borderWidth\":\"1px\",\"borderRadius\":\"5px\",\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true,\"heightType\":\"auto\"}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":274.701,\"startY\":0,\"pageX\":274.70064803211244,\"pageY\":0,\"width\":-249.701,\"height\":267.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true},{\"id\":\"BTuMcayIoH\",\"type\":\"rectangle\",\"childrens\":[{\"id\":\"ufgaWNnGAQ\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"eCOvnkTWPH\",\"value\":\"Test 1\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":0,\"startY\":220.614,\"pageX\":530,\"pageY\":539,\"width\":90.709,\"height\":41.575,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingLeft\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true,\"heightType\":\"auto\"}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":25,\"startY\":0,\"pageX\":25,\"pageY\":0,\"width\":689.331,\"height\":267.189,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-column\"],\"isDynamicHeight\":true,\"relativeColumn\":true}],\"isDraggable\":false,\"isResizable\":false,\"isDropZone\":false,\"startX\":0,\"startY\":185.385826773,\"pageX\":0,\"pageY\":185.385826773,\"width\":714.3309212589,\"height\":267.18897637710006,\"styleEditMode\":\"main\",\"style\":{},\"classes\":[\"relative-row\"],\"isDynamicHeight\":true}],\"footer\":[]}",
  "print_designer_preview_img": "/private/files/print_designer-sales_invoice_-_pd_2-preview.jpg",
  "print_designer_settings": "{\"page\":{\"height\":1122.52,\"width\":793.701,\"marginTop\":18.8976377955,\"marginBottom\":7.5590551182,\"marginLeft\":56.692913386499995,\"marginRight\":22.6771653546,\"headerHeight\":185.385826773,\"footerHeight\":0,\"headerHeightWithMargin\":204.2834645685,\"footerHeightWithMargin\":7.5590551182,\"UOM\":\"mm\"},\"pdfPrintDPI\":96,\"globalStyles\":{\"staticText\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"text\",\"isDynamic\":false,\"mainRuleSelector\":\".staticText\",\"style\":{\"display\":\"inline-block\",\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflow\":\"hidden\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"mainCssRule\":{}},\"dynamicText\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"text\",\"isDynamic\":true,\"mainRuleSelector\":\".dynamicText\",\"labelRuleSelector\":\".dynamicText .label-text\",\"style\":{\"display\":\"inline-block\",\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#f0f0f0\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflow\":\"hidden\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1},\"labelStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"14px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"mainCssRule\":{},\"labelCssRule\":{}},\"rectangle\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"rectangle\",\"isDynamic\":false,\"mainRuleSelector\":\".rectangle\",\"style\":{\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"color\":\"#000000\",\"backgroundColor\":\"\",\"border\":\"1px solid black\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderWidth\":\"1px\",\"boxSizing\":\"border-box\",\"outline\":\"none\",\"borderRadius\":0,\"boxShadow\":\"none\",\"opacity\":1,\"zIndex\":0},\"mainCssRule\":{}},\"image\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"image\",\"isDynamic\":false,\"mainRuleSelector\":\".image\",\"style\":{\"display\":\"block\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"objectFit\":\"scale-down\",\"objectPosition\":\"center center\",\"backgroundSize\":\"contain\",\"backgroundPosition\":\"center center\",\"backgroundRepeat\":\"no-repeat\",\"opacity\":1},\"mainCssRule\":{}},\"barcode\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"type\":\"barcode\",\"isDynamic\":false,\"mainRuleSelector\":\".barcode\",\"style\":{\"display\":\"block\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1},\"mainCssRule\":{}},\"table\":{\"isGlobalStyle\":true,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"type\":\"table\",\"isDynamic\":true,\"mainRuleSelector\":\".printTable td\",\"headerRuleSelector\":\".printTable th\",\"altRuleSelector\":\".printTable tr:nth-child(even) td\",\"labelRuleSelector\":\".printTable .label-text\",\"style\":{\"fontFamily\":\"Inter\",\"fontSize\":\"10px\",\"fontWeight\":400,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"contenteditable\":false,\"border\":\"none\",\"borderWidth\":\"1px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"10px\",\"paddingBottom\":\"10px\",\"paddingLeft\":\"10px\",\"paddingRight\":\"10px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"overflowWrap\":\"break-word\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"verticalAlign\":\"baseline\",\"opacity\":1},\"labelStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"10px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"0px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"paddingRight\":\"0px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"verticalAlign\":\"baseline\",\"zIndex\":1},\"headerStyle\":{\"fontFamily\":\"Inter\",\"fontSize\":\"11px\",\"fontWeight\":600,\"color\":\"#000000\",\"textAlign\":\"left\",\"fontStyle\":\"normal\",\"textDecoration\":\"none\",\"textTransform\":\"none\",\"lineHeight\":1.25,\"letterSpacing\":\"0px\",\"border\":\"none\",\"borderWidth\":\"1px\",\"borderColor\":\"#000000\",\"borderStyle\":\"solid\",\"borderRadius\":0,\"backgroundColor\":\"#ffffff\",\"paddingTop\":\"10px\",\"paddingBottom\":\"10px\",\"paddingLeft\":\"10px\",\"paddingRight\":\"10px\",\"margin\":\"0px\",\"minWidth\":\"0px\",\"minHeight\":\"0px\",\"boxShadow\":\"none\",\"whiteSpace\":\"normal\",\"userSelect\":\"none\",\"opacity\":1,\"zIndex\":1},\"altStyle\":{},\"mainCssRule\":{},\"labelCssRule\":{},\"headerCssRule\":{},\"altCssRule\":{}}},\"currentPageSize\":\"CUSTOM\",\"isHeaderFooterAuto\":false,\"currentDoc\":\"IN-2425005\",\"textControlType\":\"dynamic\",\"currentFonts\":[\"Inter\"],\"printHeaderFonts\":{},\"printFooterFonts\":null,\"printBodyFonts\":{\"Inter\":{\"weight\":[400,600],\"italic\":[]}},\"userProvidedJinja\":\"{% set tax1= namespace(tax1=0) %}\\n{% set tax2= namespace(tax2=0) %}\\n{% set tax1val= namespace(tax1val=0) %}\\n{% set tax2val= namespace(tax2val=0) %}\\n\\n{%- if doc.taxes_and_charges  == 'Output GST In-state - AI' %}\\n    {%- for row in doc.taxes %}\\n        {%- if row.account_head  == 'Output Tax SGST - AI' %}\\n            {%- set tax1.tax1 = \\\"SGST\\\" %}\\n            {%- set tax1val.tax1val = row.get_formatted(\\\"tax_amount\\\") or \\\"0\\\" %}\\n        {%- endif %}\\n        {%- if row.account_head  == 'Output Tax CGST - AI' %}\\n            {%- set tax2.tax2 = \\\"CGST\\\" %}\\n            {%- set tax2val.tax2val = row.get_formatted(\\\"tax_amount\\\") or \\\"0\\\" %}\\n        {%- endif %}\\n    {%- endfor %}\\n    {% set send_to_jinja = {\\\"tax1\\\": tax1.tax1, \\\"tax2\\\": tax2.tax2, \\\"tax1val\\\":tax1val.tax1val, \\\"tax2val\\\":tax2val.tax2val} %}\\n{%- else %}\\n    {%- set tax1.tax1 = \\\"IGST\\\" %}\\n    {%- set tax1val.tax1val = doc.get_formatted(\\\"total_taxes_and_charges\\\") or \\\"0\\\" %}\\n    {% set send_to_jinja = {\\\"tax1\\\": tax1.tax1, \\\"tax2\\\": \\\"\\\", \\\"tax1val\\\":tax1val.tax1val, \\\"tax2val\\\":\\\"0\\\"} %}\\n{%- endif %}\\n\\n\",\"schema_version\":\"1.1.0\"}",
  "print_designer_header": "[]",
  "print_designer_footer": "[]",
  "print_designer_body": "[{\"id\":\"QhxfujRfni\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"BTzDHFwATK\",\"value\":\"Test 3\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false,\"spanRef\":null}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":538.4253362230875,\"startY\":411,\"pageX\":1043.4253362230875,\"pageY\":544,\"width\":90.7086614184,\"height\":41.574803150099996,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true,\"heightType\":\"auto\"},{\"id\":\"JFCJYyIGOu\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"DQrMmFRPAX\",\"value\":\"Test 2\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":274.70064803211244,\"startY\":406.9999694824219,\"pageX\":779.7006480321124,\"pageY\":539.9999694824219,\"width\":90.7086614184,\"height\":41.574803150099996,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"borderWidth\":\"1px\",\"borderRadius\":\"5px\",\"paddingTop\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"paddingLeft\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true,\"heightType\":\"auto\"},{\"id\":\"ufgaWNnGAQ\",\"type\":\"text\",\"content\":\"\",\"contenteditable\":false,\"isDynamic\":true,\"isFixedSize\":true,\"dynamicContent\":[{\"doctype\":\"\",\"parentField\":\"\",\"fieldname\":\"eCOvnkTWPH\",\"value\":\"Test 1\",\"fieldtype\":\"StaticText\",\"is_static\":true,\"is_labelled\":false,\"nextLine\":false,\"parseJinja\":false,\"style\":{},\"labelStyleEditing\":false}],\"selectedDynamicText\":null,\"isDraggable\":true,\"isResizable\":true,\"isDropZone\":false,\"startX\":25,\"startY\":406,\"pageX\":530,\"pageY\":539,\"width\":90.7086614184,\"height\":41.574803150099996,\"styleEditMode\":\"main\",\"labelDisplayStyle\":\"standard\",\"style\":{\"paddingTop\":\"5px\",\"paddingLeft\":\"5px\",\"paddingBottom\":\"5px\",\"paddingRight\":\"5px\",\"borderWidth\":\"1px\",\"borderRadius\":\"5px\"},\"labelStyle\":{},\"isDynamicHeight\":true,\"classes\":[],\"isElementOverlapping\":true,\"heightType\":\"auto\"}]",
  "print_designer": 1,
  "doc_type": "Sales Invoice",
  "module": "Accounts",
  "default_print_language": "en",
  "standard": "No",
  "print_designer_template_app": "absindia",
  "custom_format": 0,
  "disabled": 0,
  "print_format_type": "Jinja",
  "raw_printing": 0,
  "margin_top": 15,
  "margin_bottom": 15,
  "margin_left": 15,
  "margin_right": 15,
  "align_labels_right": 0,
  "show_section_headings": 0,
  "line_breaks": 0,
  "absolute_value": 0,
  "font_size": 14,
  "font": "",
  "page_number": "Hide",
  "css": ":root { --scale-factor: 1px; --modal-x: 0px; --modal-y: 0px; } .staticText { display: inline-block; font-family: Inter; font-size: 14px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow: hidden; overflow-wrap: break-word; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .dynamicText { display: inline-block; font-family: Inter; font-size: 14px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow: hidden; overflow-wrap: break-word; white-space: normal; user-select: none; opacity: 1; background-color: rgb(240, 240, 240); } .dynamicText .label-text { font-family: Inter; font-size: 14px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .rectangle { padding: 0px; margin: 0px; white-space: normal; user-select: none; min-width: 0px; min-height: 0px; color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0); box-sizing: border-box; outline: none; border-radius: 0px; box-shadow: none; opacity: 1; z-index: 0; } .image { display: block; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; object-fit: scale-down; object-position: center center; background-size: contain; background-position: center center; background-repeat: no-repeat; opacity: 1; } .barcode { display: block; border: 0px solid rgb(0, 0, 0); border-radius: 0px; padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; } .printTable td { font-family: Inter; font-size: 10px; font-weight: 400; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 1px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 10px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; overflow-wrap: break-word; white-space: normal; user-select: none; vertical-align: baseline; opacity: 1; } .printTable .label-text { font-family: Inter; font-size: 10px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 0px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 0px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; vertical-align: baseline; z-index: 1; } .printTable th { font-family: Inter; font-size: 11px; font-weight: 600; color: rgb(0, 0, 0); text-align: left; font-style: normal; text-decoration: none; text-transform: none; line-height: 1.25; letter-spacing: 0px; border: 1px solid rgb(0, 0, 0); border-radius: 0px; background-color: rgb(255, 255, 255); padding: 10px; margin: 0px; min-width: 0px; min-height: 0px; box-shadow: none; white-space: normal; user-select: none; opacity: 1; z-index: 1; } .printTable tr:nth-child(2n) td { } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 210.000mm; --print-container-height: 297.000mm; --print-margin-top: 0mm; --print-margin-bottom: 0.000mm; --print-margin-left: 0mm; --print-margin-right: 0.000mm; } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 210.000mm; --print-container-height: 297.000mm; --print-margin-top: 0mm; --print-margin-bottom: 0.000mm; --print-margin-left: 0mm; --print-margin-right: 0.000mm; } :root, ::after, ::before { --print-width: 210.000mm; --print-height: 297.000mm; --print-container-width: 225.000mm; --print-container-height: 302.000mm; --print-margin-top: -5mm; --print-margin-bottom: 2.000mm; --print-margin-left: -15mm; --print-margin-right: 6.000mm; }@page  { size: 210mm 297mm; margin: 0mm; } @page  { size: 210mm 297mm; margin: 0mm; } @page  { size: 210mm 297mm; margin: 5mm 6mm 2mm 15mm; }",
  "print_format_builder": 0,
  "print_format_builder_beta": 0,
  "doctype": "Print Format",
  "__onload": { "print_templates": [] },
  "__last_sync_on": "2024-05-24T08:03:21.029Z"
}
PhantomKunai commented 1 month ago

Just to understand, @maharshivpatel are you able to duplicate this error or am I looking at some isolated issue which is result of some internal configurations?

PhantomKunai commented 1 month ago

@maharshivpatel Any hints about this?

PhantomKunai commented 3 days ago

@maharshivpatel Fresh new format on v1.3.3

Preview image

No intersections image image

Final output image

Format QT_PD.json

PhantomKunai commented 2 days ago

@maharshivpatel

Firefox version details image