Hi,
I'm using a freshly installed Delphi 13.0 with September patch, FNC Core 4.2.1.1 and FNC UI Pack 6.8.1.0.
My App works fine on Android, but crashes on iOS when calling TTMSFNCPDFLib.BeginDocument.
var
p: TTMSFNCPDFLib;
begin
p := TTMSFNCPDFLib.Create();
try
p.BeginDocument(AFileName);
....
There were no problems with the previous version of my App, code unchanged, compiled with Delphi 12.1, Core 4.1.1.3 and UI Pack 6.5.1.1
Any ideas?
Best regards
Thorsten
Pieter
(Pieter)
October 17, 2025, 12:05pm
2
Does the path to the PDF file exist, and writeable? could you try without a parameter and then capture the stream with p.EndDocument?
Thank you Pieter,
the path exists and is writeable, I can save other files, no problem.
I tried calling p.BeginDocument() without a filename, but the app still crahes.
I also tested with a singe try..except block around p.BeginDocument(), it just crashes, I can't catch an exception.
The next thing I tested was moving the lines
p.PageSize := TTMSFNCPDFLibPageSize.psA4;
p.PageOrientation := TTMSFNCPDFLibPageOrientation.poPortrait;
p.Header := '';
p.Footer := '';
which come after p.BeginDocument() in my code before p.BeginDocument(). The properties get set and the crash still happens at BeginDocument.
Pieter
(Pieter)
October 21, 2025, 9:25am
4
Hi,
We've identified and fix the issue. Next version of TMS FNC Core will address this.
Thanks for notifying!