thanks, i’m new in ai2 so have to learn a lot of stuff …
opening a new screen every time was weird also for me but had not found the way to GO from a screen to another until now
still have problems with file path in my application, but i realized i miss a “;” in the jspdf “command” when adding the image, so now i can add the header logo and both signs at page bottom.
wheird think is that i can save the signs in the saveas method of the canvas with paths like that:
/DCIM/Camera/firmaispettore.jpg
i can delete the same images by command using the file delete method with paths like this:
/DCIM/Camera/firmaresponsabile.jpg
but cannot reload them back using the canvas set_backgroung_image method with the same path style: /DCIM/Camera/firmaispettore.jpg
so the trick is “not to miss the commas” in the jspdf commands
@TIMAI2 mira ya genero un pdf con texto de un formulacion y capturo 2 firmas de las cuales se almacenan pero no tengo idea de como insertarlas el el documento PDF, pruebo algunos proyectos que estan en la guia que mandaste pero no me funcionan.
Updates to various things have meant that my guide no longer works well. It can create a pdf but then the app crashes. I have not yet been able to fix it. However, I can offer an alternative that may suit your needs, thanks to @Juan_Antonio, who provides a created pdf extension for an arrangement. Attached is a simple example which allows you to draw on a canvas then save the output to a pdf.
Not on Android ≥ 10 devices. On my test device (Pixel 2XL, Android 11 - beta) the PDF is not saved (created) in the root folder of the external storage (or anywhere else).
Note:
The extension works with Kodular (also the .ReadPdf) so I assume that the extension has not yet been updated to the AndroidX libraries. Kodular has not been updated to AndroidX.
The exension is able to handle Android 10 (even Android 11) file paths (→ Kodular). But it seems that it doesn't use (import) AndroidX libs.
Possibly there should be an additional AI2 extension (version).