Page 1 of 1

(RDMLX) Enhance request to allow jpg or tiff annotation

Posted: Sat Apr 26, 2014 2:58 pm
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.

Re: Enhance request to allow jpg or tiff annotation

Posted: Sun Apr 27, 2014 2:02 am
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.

Re: Enhance request to allow jpg or tiff annotation

Posted: Mon Apr 28, 2014 8:50 am
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

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

Posted: Mon Apr 28, 2014 9:57 am
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)

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

Posted: Mon Apr 28, 2014 9:58 am
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.

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

Posted: Mon Apr 28, 2014 10:02 am
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.