(RDMLX) Anyway to add signature directly

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

(RDMLX) Anyway to add signature directly

Post by stevec »

to a PDF like you can to a png or jpeg image?

Currently when I set_webview the signature image will not show unless I do as a popover. On an image it works fine with writing directly onto image.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Anyway to add signature directly

Post by MarkDuignan »

There is no specific need to do signatures in a pop over – they should work on any type of form.

The signature is not really a ‘thing’ by itself, it is just the annotation of an image – exactly like drawing arrows and circles on a photo (say).
The annotated image (which may be a signature) is saved as an image file – as a PNG or JPG.

There is no option to save the signature as a PDF or into a PDF file.
To create a PDF file you must be using some sort of tool or program code?
Does it have any options to include an image file (eg: the signature PNG or JPG file)?

Do you have the shipped LANSA demo available (schema lansademo.lxp) working?
In that schema in Programming Examples -> Use Case Examples you should find examples Annotating Images (UnMerged) and Annotating Images (Merged). Probably the closest one is Annotating Images (UnMerged) – with the main source code shipped as VL component LREX0094A. If you run that example and sign over the whole background image (instead of ticking it) then you should be able to save a ‘signature’ from a main window.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: (RDMLX) Anyway to add signature directly

Post by stevec »

I have it working fine on top of images directly and on popover on a set_webview for pdf's.

What I would like is to be able to set_image to accept a pdf as the image so that they could be written over directly like I can png and jpeg. Or that the annotation would work on set_webview (it does not). because of these limitations I have to use popover to do signature on pdf files.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Anyway to add signature directly

Post by MarkDuignan »

I think I get it now – you want to make it seem like they user is signing over a PDF document?

Assuming that the PDF content is necessarily dynamic and cannot be ‘snapshotted’ as an image then LongRange allows multiple elements to be placed into the same grid layout cell. You can control which element is on top by a z-Index property.

Maybe (?) you could display the PDF in a cell and the position the signature image on top of it.

This might not work – but might also involve a lot of messing about and experimentation. Other problematic aspects might include getting a transparent background and making it work on Android devices – which can’t display PDF documents in a web view I think.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: (RDMLX) Anyway to add signature directly

Post by stevec »

I hear the android pdf is being addressed with next release?

But that is what I am doing now with the signature overlay on pop over. But it does not have that transparent look like it does on an image specified on the set_image itself.

Can this be done in the future? I expect many would like ability to show a pdf directly like this for signature,

I am creating the pdf dynamically but would not be opposed to converting to an image if that can be done programatically on the fly. How do you do that?
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Anyway to add signature directly

Post by MarkDuignan »

This is now replaced by this topic http://longrange.lansa.com.au/viewtopic.php?f=11&t=310 ?
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: (RDMLX) Anyway to add signature directly

Post by stevec »

That is a different issue Mark. The issue here I would like is ability to treat the pdf as an image on set_image as an enhancement.

The other is the annotation file format.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Anyway to add signature directly

Post by MarkDuignan »

Okay. It has been added to the potential enhancement list.
Post Reply