#1 2025-11-11 13:16:17

Davide
Member
Registered: 2025-10-14
Posts: 4

Did TGDIDocument, TGDIDocumentSection & TGDIDocumentTable exist?

Hello Arnaud,

I’m working with the PDF/GDI part of the mORMot ecosystem and I’m trying to clarify the current status of some older GDI document classes.

Specifically I’m looking for:

TGDIDocument

TGDIDocumentSection

TGDIDocumentTable

My questions:

Did these classes ever exist in mORMot (v1 or v2), or are they only part of internal or example code?

If they existed, in which unit/file were they defined?
(e.g. mORMotReport.pas, mormot.pdf.gdi, or elsewhere)

Are they still usable today, or were they removed/replaced in mORMot2?

If replaced, what would be the recommended way to build PDF content with sections and tables today using mORMot?

I want to build PDF documents with structured sections and tables, and I want to make sure I’m not searching for removed or deprecated components.

Thanks a lot for your guidance, and for the incredible work on mORMot.

Best regards and thanks a lot :-)
Davide

Offline

#2 2025-11-11 15:17:03

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

Re: Did TGDIDocument, TGDIDocumentSection & TGDIDocumentTable exist?

A 2 seconds search in the source code tree on mORMot 1 and 2 confirms there is no such thing as a TGDIDocument class.
I wonder what you are looking for?

There is no "section" or "table" direct support in mormot.ui.pdf.pas.

In mormot.ui.report.pas you will find the TGdiPages class which features table writing via AddColumns/AddColumnHeaders/DrawTextAccrosCols

Offline

#3 Yesterday 08:40:27

Davide
Member
Registered: 2025-10-14
Posts: 4

Re: Did TGDIDocument, TGDIDocumentSection & TGDIDocumentTable exist?

sorry that was extracted from a example provided by gemini..... thats the prove that AI work with assumptions and is not useful for coding, sorry for your time i will solve my problems mit TGDIPages and Canvas greeting from Zurich

Offline

#4 Yesterday 09:34:00

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

Re: Did TGDIDocument, TGDIDocumentSection & TGDIDocumentTable exist?

I did not find any AI able to understand just the difference between mORMot 1 and mORMot 2.
They are just so confused and confusing.... sad

Offline

#5 Yesterday 10:45:26

Davide
Member
Registered: 2025-10-14
Posts: 4

Re: Did TGDIDocument, TGDIDocumentSection & TGDIDocumentTable exist?

I used to always bring in external help to write small sections of code, then I thought I'd try ChatGPT / Gemini. After a few weeks, I was disillusioned. These LLMs are designed to give a quick answer no matter what. Conjecture, false statements and even lies were the order of the day... so I thought it would be good for me to do a bit more coding to slow down my digital dementia. bye Davide.

Offline

Board footer

Powered by FluxBB