You are not logged in.
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
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
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
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