(RDMLX) Enhance request to allow jpg or tiff annotation

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) Enhance request to allow jpg or tiff annotation

Post by stevec »

I have come up with a way to print the signature I capture on our documents. There is print file keyword for AFPRSC that allows jpeg or tiff image to print without going the the AFP overlay process. This works nicely under my tests but only AFTER I manually open the annotation signature in MS paint and resave as a jpeg format (did not try tiff but assume that would work as well). Then I printed my document off iseries to pdf (both infoprint server and ovrprtf directly to stream file pdf) and it works like I want.

Before you ask I did try just renaming the longrange extension to jpg but it bombs when printing.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Enhance request to allow jpg or tiff annotation

Post by stevec »

I have a work around until you give me an option for annotated image format.

By creating a blank transparent image in paint and saving that as an image to show over the document that can be annotated in place and then save it as an image rather than the annotated image as it is intended.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Enhance request to allow jpg or tiff annotation

Post by MarkDuignan »

There is a NewImage.ImageFmt property that allows you to control the format as JPG and PNG.

I think this is what you need to use?

If not, or if you have a problem getting it to function as you expect please let us know.

http://www.longrangemobile.com/docs/LRP ... /image.htm
Paul

Re: (RDMLX) Enhance request to allow jpg or tiff annotation

Post by Paul »

This property is accessed in RDMLX by using the NewImage_Format parameter of the Set_Image method. The following is from shipped example LREX0093 - LongRange Signature example.

Code: Select all

#Com_Owner.Set_Image Name(IMAGE_1_ELEMENT) Allowchange(False) Allowexpand(True) Layout_Row(1) Layout_Col(1) Blankimageresource('PleaseSignHere2.PNG') Annotate_Showbutton(False) Annotate_Showcolrpkr(False) Annotate_Inplaceedit(True) Annotate_Strokewidth(5) Annotate_Strokecolor(Red) Annotate_Mergewthimg(False) Annotate_Image(#uImageFile) Newimage_Format(PNG)
Or it can be set directly with the Set method, for example

Code: Select all

#COM_OWNER.Set Property(IMAGE_1_ELEMENT.NewImage.ImageFMT) To(PNG)
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: (RDMLX) Enhance request to allow jpg or tiff annotation

Post by stevec »

The new image format is for the image not the annotation.

Annotate_Image The annotated image that is to be displayed, or that was created by the user. Always
in PNG format
. Typically this property is used to load the image from a PNG file on
the IFS but it could also be stored in a data base table. See the Save_Annotation
method for writing to this property.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RDMLX) Enhance request to allow jpg or tiff annotation

Post by MarkDuignan »

I'll ask someone who knows how the internals of this stuff works to double check the options available - otherwise you will need an enhancement request.
Post Reply