Delphi 11.2
I use Winsoft Pdfium for FireMonkey to create a PDF that includes a graphic (png saved to a SQLite table field). The graphic is inserted into the pdf document (as the document is being created) with the following code:
Sig := tMemoryStream.Create;
try
MarafillerDM.EMUInvQrySIGNATURE.SaveToStream(Sig);
var aBitMap := FMX.Graphics.TBitmap.Create;
try
aBitMap.LoadFromStream(Sig);
MarafillerDM.FPdf1.AddPicture(aBitMap,18,135,230,80);
finally
aBitMap.Free;
end;
finally
Sig.Free;
end;
Up until a couple of weeks ago this worked for both Windows and Android without any problems but now I get an 'Unsupported Pixal Format' error from the Winsoft AddPicture procedure - but only on Android devices (Samsung Tab 6 Lite). On Windows it still works fine. Haven't changed anything in my Delphi environment (updates etc) between it working and not working.
Has anyone else experienced this. Would appreciate any help with this issue.
Bill Zwirs