brainloper-ui 14.1.15 → 14.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3550,7 +3550,12 @@ class PurchaseOrderPdfService {
3550
3550
  const logoW = 80;
3551
3551
  const logoH = 60;
3552
3552
  if (order.image) {
3553
- doc.addImage(order.image, 'PNG', margin, y, logoW, logoH);
3553
+ try {
3554
+ doc.addImage(order.image, 'PNG', margin, y, logoW, logoH);
3555
+ }
3556
+ catch {
3557
+ // Logo inválido, se omite
3558
+ }
3554
3559
  }
3555
3560
  // Datos empresa a la derecha (alineados a la derecha)
3556
3561
  const rightX = pageWidth - margin;