#1 2025-03-17 00:18:26

Sebam
Member
Registered: 2023-03-01
Posts: 6

mormot.ui.pdf.pas doesn't compile in the current version

The function TPdfDocument.CreateFileAttachmentFromBuffer in unit mormot.ui.pdf.pas doesn't compile in the current version. On line 7875:

mime := GetMimeContentType(pointer(Buffer), length(Buffer), Description);

there's a compilation error:

[dcc32 Error] mormot.ui.pdf.pas(7875): E2010 Incompatible types: 'RawByteString' and 'Pointer'

Same error on line 7877.

Offline

#2 2025-03-17 07:37:21

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,966
Website

Re: mormot.ui.pdf.pas doesn't compile in the current version

You are right.

Should be fixed now with
https://github.com/synopse/mORMot2/commit/5f8829421

Offline

#3 2025-03-17 11:32:40

Sebam
Member
Registered: 2023-03-01
Posts: 6

Re: mormot.ui.pdf.pas doesn't compile in the current version

Thanks a lot for fixing the issue—I really appreciate your quick help! Everything compiles perfectly now.

Also, big thumbs up for the awesome work on the mORMot2 library—it’s a fantastic tool and a pleasure to work with!

Offline

Board footer

Powered by FluxBB