Jump to content
bzwirs

Unsupported Pixal Format

Recommended Posts

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

 

Share this post


Link to post

I have sent an email to Winsoft a week ago but as in past requests to them, I have not received any response.  So am looking for help elsewhere.

 

Bill

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×