fix(f6.9): load PDF and image converters in production runtime
Android CI / RC / Android · lint, tests, debug APK, release compile (push) Successful in 3m16s
DH V2 CI / API · typecheck, tests, build (push) Successful in 31s
DH V2 CI / WEB · typecheck, build (push) Successful in 18s
Production dependency audit / API · production dependencies (push) Successful in 8s
Production dependency audit / WEB · production dependencies (push) Successful in 8s
DH V2 CI / Docker / scripts contract (push) Successful in 50s

This commit is contained in:
DH V2
2026-09-15 19:00:12 -03:00
parent 5cf99442a8
commit 669c0d2656
3 changed files with 17 additions and 3 deletions
@@ -1,7 +1,7 @@
import { createHash } from 'node:crypto';
import { existsSync } from 'node:fs';
import { resolve } from 'node:path';
import PDFDocument from 'pdfkit';
import PDFDocument = require('pdfkit');
export interface ActPdfImage {
id: string;
@@ -1,4 +1,4 @@
import sharp from 'sharp';
const sharp = require('sharp') as typeof import('sharp').default;
// PDFKit and the Word image renderer accept JPEG/PNG. The source bytes and
// their recorded SHA-256 remain untouched; WebP is only converted for display.