feat(print-area): detect die-cut and safe print area
Keep 22827 content on the sticker when Avery bleed guides or printer drift would otherwise print off the label. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ffa4d0cf86
commit
e31c5f89bd
10 files changed
+730
-88
No files matched your search
@@ -88,10 +88,12 @@ class MainWindow(QMainWindow):
|
||||
def _status_template_text(self) -> str:
|
||||
if not self.template_ready or not TEMPLATE.id:
|
||||
return "No template selected — download from Avery.com or import a Word blank"
|
||||
safe = TEMPLATE.recommended_safe_inset_in()
|
||||
extra = f" · safe inset {safe:.3f}\"" if safe > 0 else ""
|
||||
return (
|
||||
f"{TEMPLATE.name}: panel {TEMPLATE.label_width_in:.4f}\" · "
|
||||
f"top {TEMPLATE.top_margin_in:.3f}\" · v-gap {TEMPLATE.vertical_gap_in:.3f}\" · "
|
||||
f"{TEMPLATE.labels_per_sheet}/sheet"
|
||||
f"{TEMPLATE.labels_per_sheet}/sheet{extra}"
|
||||
)
|
||||
|
||||
def _build_ui(self) -> None:
|
||||
@@ -675,7 +677,11 @@ class MainWindow(QMainWindow):
|
||||
)
|
||||
self.download_avery_template()
|
||||
return
|
||||
dlg = ImportDocumentDialog(self.project.import_settings, self)
|
||||
dlg = ImportDocumentDialog(
|
||||
self.project.import_settings,
|
||||
self,
|
||||
recommended_inset_in=TEMPLATE.recommended_safe_inset_in(),
|
||||
)
|
||||
if dlg.exec() != dlg.DialogCode.Accepted:
|
||||
return
|
||||
assert dlg.file_path is not None
|
||||
|
||||
Reference in new issue
Block a user