Image border problem

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

Image border problem

Post by stevec »

As I mentioned on some earlier threads we are implementing signatures. Since the annotation could not be saved in a format other than "png", and that the annotation cannot be done directly on a pdf (has to be an image), that we created a transparent image 1 inch tall by 6 inches wide to use for capturing the signature.

So we are setting the image (set_image) to show on bottom (valign) of a pdf (set_webview) and capturing the image. This is all working good except that users requesting a border around the signature area. Therein lies my problem and question here. If I specify a border on the image it does not show UNLESS I specify a layout row. But when I specify a layout row the signature no longer can go edge to edge, there is a margin that cannot be annotated on each side. I cannot find a way to get rid of the margin unless I get rid of the layout row in which case I lose the border on the top of the signature box.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Image border problem

Post by stevec »

Autoscale(Aspect-Fill) Fixed my problem
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Image border problem

Post by MarkDuignan »

I think you can also put background image into the signature and literally sign on top of it?
Then you can save it with or without the background image included.
Maybe you could put an apparent border around the signatures this way?
This is the shipped RPG example, but RDML can do everything the same.
It uses this effect in a shipped example…
Image1.png
Image1.png (45.81 KiB) Viewed 3062 times
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Image border problem

Post by stevec »

The margin is the problem. no layout row works perfect except top border. When no row specified the top border was actually around the pdf.

With layout row then top border correct but image is scaled down and has margin on left/right so defeats purpose of border (want the room for signing). Aspect-fill fixes the problem but then image is cut off if signed portrait then change to landscape.

The border around sig area is nice but I will go over both options with user. Because of the cut off when changed from portrait to landscape they may decide to go with original solution. Background color will be same problem as it will fill whole screen like top border over the pdf does.

If you enhance to allow the pdf to be an image itself for signing all these problems go away!
Post Reply