Good Morning Pieter,
yes I did.
I got a procedure loading the pdf:
procedure TPDFVIEWFORM.loadpdf(filename:String);
begin
if filename <> '' then
begin
DocViewer.Free;
DocViewer := TTMSFMXNativePDFDocumentViewer.Create(Self);
DocViewer.Parent := PDFPANEL;
DocViewer.Align := TAlignLayout.Client;
DocViewer.Document := PDFD;
PDFD.LoadFromFile(filename);
end;
end;
procedure TPDFVIEWFORM.BTNPENClick(Sender: TObject);
begin
DocViewer.FreeDraw.PencilEnabled := not DocViewer.FreeDraw.PencilEnabled;
end;
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.
Best regards
Mirko
RecordIt-1685087010.zip (2.2 MB)
RecordIt-1685087109.zip (3.3 MB)