Deposit slip: portrait layout explicit; MICR repositioned below deposit total
This commit is contained in:
@@ -80,11 +80,12 @@ const SL = {
|
|||||||
// Y positions are the TOP anchor; text flows DOWNWARD from there.
|
// Y positions are the TOP anchor; text flows DOWNWARD from there.
|
||||||
stripCenterX: 0.32, // ≈ stripX/2; tune to center text in strip width
|
stripCenterX: 0.32, // ≈ stripX/2; tune to center text in strip width
|
||||||
|
|
||||||
micrY: 6.0, // MICR starts here, flows ~2.4" to bottom
|
// Order top-to-bottom: DEPOSIT TOTAL label → digits → MICR → TOTAL ITEMS → count
|
||||||
depTotalLabelY: 2.2, // "DEPOSIT TOTAL $" label start
|
depTotalLabelY: 1.0, // "DEPOSIT TOTAL $" label start
|
||||||
depTotalAmtY: 3.3, // deposit total digits start (each 0.16" apart downward)
|
depTotalAmtY: 2.0, // deposit total digits start (each 0.16" apart downward)
|
||||||
checkCountLabelY: 4.8, // "TOTAL ITEMS" label start
|
micrY: 3.4, // MICR starts here, flows ~2.5" downward
|
||||||
checkCountValY: 5.7, // check count value start
|
checkCountLabelY: 6.1, // "TOTAL ITEMS" label start
|
||||||
|
checkCountValY: 6.9, // check count value start
|
||||||
|
|
||||||
// ── Colours ───────────────────────────────────────────────────────────────
|
// ── Colours ───────────────────────────────────────────────────────────────
|
||||||
bgLineColor: '#888888',
|
bgLineColor: '#888888',
|
||||||
@@ -219,6 +220,7 @@ function generateDepositSlip(account, deposit, items) {
|
|||||||
// Letter page — slip sits at (slipX, 0); remaining space is blank for trimming
|
// Letter page — slip sits at (slipX, 0); remaining space is blank for trimming
|
||||||
const doc = new PDFDocument({
|
const doc = new PDFDocument({
|
||||||
size: 'LETTER',
|
size: 'LETTER',
|
||||||
|
layout: 'portrait',
|
||||||
margins: { top: 0, bottom: 0, left: 0, right: 0 },
|
margins: { top: 0, bottom: 0, left: 0, right: 0 },
|
||||||
autoFirstPage: true,
|
autoFirstPage: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user