IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#20877 - 01/22/08 11:41 AM Caclulate the size of an EPS image
ScanD Offline
Junior Member

Registered: 02/10/04
Posts: 20
Loc: London, UK
Hi,
I have a need to calculate the hight and width of dynamic images (.EPS) so that I can center in the middle of the page. Each EPS is of various hight and width.

I have played with snapping points with no success as of yet.

So I was wondering is this possible in PressTalk or if anyone has created a script to do this.

Regards
ScanD

Top
#20878 - 01/22/08 01:51 PM Re: Caclulate the size of an EPS image
Anonymous
Unregistered


Hi,

You can use the epsheight() and epswidth() PressTalk commands in order to calculate their size. Then using moveto(), you could use the showeps() command to show it at the proper location.

Hope this helps
Maxime

Top
#20879 - 01/22/08 02:56 PM Re: Caclulate the size of an EPS image
ScanD Offline
Junior Member

Registered: 02/10/04
Posts: 20
Loc: London, UK
Thank you Maxime that worked great!!

Top


Moderator:  cosimo, OL Newsgroup Support