fix(pdf): calculate exact page size points to avoid bleed zone gap for Saxoprint
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Successful in 55s
Build & Deploy / 🏗️ Build (push) Successful in 1m53s
Build & Deploy / 🚀 Deploy (push) Successful in 15s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m3s
Build & Deploy / 🔔 Notify (push) Successful in 1s
Nightly QA / 💨 Smoke & Health (push) Successful in 1m17s

This commit is contained in:
2026-06-14 09:44:50 +02:00
parent ebb14ee302
commit 5a82243965
13 changed files with 3 additions and 1 deletions

View File

@@ -831,6 +831,8 @@ export const PDFBusinessCard: React.FC<PDFBusinessCardProps> = ({
? path.join(process.cwd(), 'public', 'media', 'cable_drums_truck.png')
: path.join(process.cwd(), 'public', 'cable_drums_bg.png');
const mmToPt = (mm: number) => (mm * 72) / 25.4;
const renderPageWrapper = (children: React.ReactNode, bleedStyle: any) => {
if (withCropMarks) {
return (
@@ -845,7 +847,7 @@ export const PDFBusinessCard: React.FC<PDFBusinessCardProps> = ({
);
}
return (
<Page size={[258, 173]} style={bleedStyle}>
<Page size={[mmToPt(91), mmToPt(61)]} style={bleedStyle}>
{children}
</Page>
);