TTMSFNCPDFLib ios 18.2

Hi

Delphi 13 October Patch, TTMSFNCPDFLib latest version
On ios 18.2

myPdf := TTMSFNCPDFLib.Create;
myPdf.BeginDocument(FileName);
myPdf.NewPage; <== getting error (Range check error)

then on

myPdf.EndDocument (True) ; <== get error

There are no pages in this document,
please add a minimum of one page to create a valid PDF document.
Pages can be added by using "TTMSFNCPDFLib.NewPage".

This code works on ios 26 without error

Hi,

We tried this with iOS 18.6 in combination with Delphi 12.3, 13 and 13 with October Patch. Unfortunately we could not reproduce the issue and we do not have an older iOS device to test with.

Is this something that worked for you before on iOS 18.2?

PdfWork.zip (21.5 KB)

This is on simulator
But same on real device

Thank you for the sample, we’ll try to reproduce this here and report back as soon as we can.

Hi,

We’ve tested this here in Delphi 13 against iOS 26 via the iOS Simulator, and couldn’t reproduce the issue. Can you please check if this isn’t some kind of compiler flag or IDE setting?

The project that i send to you was very simple and a new one.

What do you suggest me to check ?

would it be a problem with a tms updater ?
maybe it updates a different location.

where do i have to look?

unit FMX.TMSFNCPDFLib;
MAJ_VER = 1; // Major version nr.
MIN_VER = 0; // Minor version nr.
REL_VER = 3; // Release nr.
BLD_VER = 1; // Build nr.

this is the version on my computer

l’ll do some additional checks! Stay tuned

Hi,

We patched this, but it will require an update of TMS FNC Core. TMS Smart Setup compiles with different settings than when you manually open and install packages in the IDE. To solve this, you can just add the path to the sources:

Let’s say you have: E:\Delphi\TMS Smart Setup Install\Products\tms.fnc.core\packages\d13\iOSSimARM64\Release

Then add

E:\Delphi\TMS Smart Setup Install\Products\tms.fnc.core

to the library path of iOSSimulator

Then recompile your application.

C:\Component\TmsFnc\TMSSetup\Products\tms.fnc.core\packages\d13\iOSSimARM64\Release

This is directory that you saidand on library path it is already added.

I got it :))

(ps:I didnot manually installed it before. i used yoyr smart setup)

I added C:\Component\TmsFnc\TMSSetup\Products\tms.fnc.core
build it and deploy it

But the problem is not finished yet
Now my problem is this
when i call
myPdf.EndDocument (True) ;
automatically my pdf is being opened to save without a problem
And after save it it is opened as i prepared

but i want to open it on a web browser
myPdf.EndDocument (False) ;
WebBrowser1.Navigate ('File://' + MyPdfDir) ;
it gives access violation error (this was work several months ago on D12)

Hi,

Is this the default TWebBrowser? It’s unclera exactly which functionality is exposed. If this is TTMSFNCWebBrowser, take a look at LoadFile instead.

Yes it is default delphi TWebBrowser

With TTMSFNCWebBrowser i tried like this

mywb.Loadfile(myfile);
mywb.navigate ;

i think it is ok now.
i will try it

do you have any idea about the access violation error that i received here:

myPdf.EndDocument (False) ;
WebBrowser1.Navigate ('File://' + MyPdfDir) ;
it gives access violation error (this was work several months ago on D12)