Good Morning Pieter,
yes I did.
I got a procedure loading the pdf:
if filename <> '' then
DocViewer := TTMSFMXNativePDFDocumentViewer.Create(Self);
DocViewer.Parent := PDFPANEL;
DocViewer.Align := TAlignLayout.Client;
DocViewer.Document := PDFD;
procedure TPDFVIEWFORM.BTNPENClick(Sender: TObject);
DocViewer.FreeDraw.PencilEnabled := not DocViewer.FreeDraw.PencilEnabled;
You see, its more or less the code you are using.
The PencilDraw Demo you provided shows the pen selection when I hit the "draw" button triggering the line DocViewer.FreeDraw.PencilEnabled := not DocViewer.FreeDraw.PencilEnabled;
But what is strange, sometimes I can draw on the pdf after having selected another color for example.
What never works is, that I just click "draw" and I can start drawing right away,
Also after having drawn a line I can no longer draw on the pdf.
I attached to screen capture videos to clearify what I mean.
RecordIt-1685087010.zip (2.2 MB)
RecordIt-1685087109.zip (3.3 MB)