AddImageAndCapt Script

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:27

Description

Auxiliary script that adds image placeholder and caption on specified coordinates and with specified dimensions. Returns the page ids of the added objects (to be able to reselect them).

Syntax

strIds = AddImageAndCapt(x, y, w, h, -1)

x

x-position in mpt as returned by Page.getselectionx

y

y-position in mpt as returned by Page.getselectiony

w

width in mpt as returned by Page.getselectionwdith

h

height in mpt as returned by Page.getselectionheight

x

position of the caption: 1 = below, 2 = right side, 3 = over, 0 = don't add caption