Hello, I'm trying to add an image to the pdf document with the following code:
*!* seventh column: picture
LNTOP=LNTEMPTOP
.CREATEOBJECT(NOBJPICTURE,"PICT1")
OBJ = .GETOBJECTBYNAME("PICT1")
IF !ISNULL(OBJ)
WITH OBJ
.ATTRIBUTE("LEFT") = LNRIGHT
.ATTRIBUTE("TOP") = LNTOP
.ATTRIBUTE("RIGHT") = .ATTRIBUTE("LEFT") + 1428 &&(3.5 * 408)
.ATTRIBUTE("BOTTOM") = LNTOP + 1584
.ATTRIBUTE("FILENAME") = ADDBS(LCOUTPUTDIR) + "JEANS1.JPG" &&FILE MUST EXIST, ELSE ERROR
.ATTRIBUTE("BORDERWIDTH") = 1
ENDWITH
ENDIF
From the code I understand the height of the image will be 1584 twips but it seems that the creator does not respect that and only takes the width and adjusts the height depending on the image original size. Is there a way to force to respect a height?
Tks