Fine-tuning the layout
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user