android-signaturepad icon indicating copy to clipboard operation
android-signaturepad copied to clipboard

getSignatureSvg() returns empty svg in Compose

Open JWvanV opened this issue 11 months ago • 0 comments

Describe the bug When retrieving the signature from the signaturePadAdapter, I get a result from the bitmap function getTransparentSignatureBitmap, but not from getSignatureSvg. The only result I get is: <?xml version="1.0" encoding="UTF-8" standalone="no"?>

To Reproduce Steps to reproduce the behavior:

  1. In the onSigned callback do: signaturePadAdapter?.getSignatureSvg() and signaturePadAdapter?.getTransparentSignatureBitmap()
  2. Sign on the signaturePad
  3. See an actual bitmap, but an empty svg

Expected behavior I would expect that the svg string would contain the signature path data.

Smartphone (please complete the following information):

  • Device: Panasonic scanner
  • OS: Android 9.0
  • Library Version 0.1.2

JWvanV avatar Mar 10 '24 11:03 JWvanV