image height

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
sophie
Posts: 3
Joined: Tue Oct 11 2005

image height

Post by sophie »

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
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

When creating a picture, the picture height is calculated relatevely to the picture itself and to the picture width.

After creating the picture you can select it and change its bottom position to force the size you want.

Hope this helps.
sophie
Posts: 3
Joined: Tue Oct 11 2005

tks

Post by sophie »

Tks joan
Post Reply