#1 2026-10-25 15:38:22

koxo
Member
Registered: 2026-10-15
Posts: 3

mormot.ui.pdf: 4 fixes for TMetaFile rendering (PR #0686)

Hello Arnaud,

I have opened a pull request with four fixes in mormot.ui.pdf, found while
exporting label sheets (TMetaFile recorded in MM_ANISOTROPIC, 0.1 mm
logical units, screen reference DC):

1. colour-keyed bitmaps (EMR_TRANSPARENTBLT) lose their transparency
   when ForceJPEGCompression is set;
2. RoundRectI corners about twice too large (no window/viewport ratio);
3. rectangles and ellipses too small (one logical unit removed instead
   of one device pixel added);
4. FillRect losing one logical unit (thin QR code modules, gaps).

https://github.com/synopse/mORMot2/pull/686

The same fixes have been in production with mORMot 1.18 SynPdf here.
Before / after screenshots are in the pull request.

Thanks for mORMot and for SynPdf, which we have used for years.

KoXo

Offline

#2 2026-10-25 20:16:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,629
Website

Re: mormot.ui.pdf: 4 fixes for TMetaFile rendering (PR #0686)

I merged the PR.

Thanks!

Offline

Board footer

Powered by FluxBB