Skip to main content
Participant
November 13, 2007
Question

How to tell if 2 splines look the same (in UI)?

  • November 13, 2007
  • 2 replies
  • 279 views
Hi,
I have references to 2 different splines.
These splines might be in the same location with the same text/image.
I want to know how I can tell if these 2 splines look the same in the UI?
Do I need to check all the attributes? like font size, color, spline position, clipping path etc...?

I thought to export these splines to PDF as 2 different documents and then use the Compare document action from Acrobat, but these approach seems time consuming and complicated.

Another approach is to compare the XML snippet created by these splines, but there is additional meta data in the XML which is not visible in the UI that causes these 2 XML to be different even while they look the same.
for example: spline1 uses swatch1 and spline2 uses swatch2 will give a different result in the XML, but if swatch1 == swatch2 they will look the same in the UI

Your help is appreciated.
This topic has been closed for replies.

2 replies

Participant
November 14, 2007
Hi Dirk,
Thanks you for your response.
I can use this approach, but I believe it is time consuming. I was looking for some InDesign API, if such exists.
Inspiring
November 13, 2007
How about a pixel comparison of snapshots?