Fine-tuning the layout
All checks were successful
Build Docker image / build (push) Successful in 1m43s
Build Docker image / deploy (push) Successful in 4s
Build Docker image / verify (push) Successful in 1m32s

This commit is contained in:
Roman Krček
2025-08-11 17:28:32 +02:00
parent 82395afa6e
commit 1a2329b6c1
6 changed files with 24 additions and 23 deletions

View File

@@ -27,14 +27,14 @@ export const TEXT_CARD_DIMENSIONS: CardDimensions = {
// Dimensions for a single card in the photo PDF.
export const PHOTO_CARD_DIMENSIONS: CardDimensions = {
width: 27,
height: 39
width: 29,
height: 41
};
// Photo dimensions within the photo card
export const PHOTO_DIMENSIONS = {
width: 25, // mm
height: 35 // mm
width: 26, // mm
height: 36 // mm
};
export interface TextPosition {
@@ -69,12 +69,12 @@ const FONT_SIZE = 8; // pt
// Text PDF Field Positions (in mm, relative to cell top-left)
export const TEXT_FIELD_LAYOUT: TextFieldLayout = {
name: {
x: 3,
y: 5,
size: FONT_SIZE // font size in points
x: 2,
y: 4,
size: FONT_SIZE
},
nationality: {
x: 3,
x: 2,
y: 12,
size: FONT_SIZE
},
@@ -84,12 +84,12 @@ export const TEXT_FIELD_LAYOUT: TextFieldLayout = {
size: FONT_SIZE
},
studiesAt: {
x: 3,
x: 2,
y: 20,
size: FONT_SIZE
},
esnSection: {
x: 3,
x: 2,
y: 28,
size: FONT_SIZE
},
@@ -111,6 +111,6 @@ export const PHOTO_FIELD_LAYOUT: PhotoFieldLayout = {
name: {
x: 2,
y: PHOTO_DIMENSIONS.height + 4,
size: FONT_SIZE
size: 6
}
};