Skip to main content
selvam214
Inspiring
March 9, 2015
Question

Textual compare the documents

  • March 9, 2015
  • 2 replies
  • 720 views

Hi All,

We have the option to compare two indesing documents?

I need the textual compare, not the visual.

Thanks,

Selvam. V

This topic has been closed for replies.

2 replies

Kasyan Servetsky
Legend
March 9, 2015

Maybe this is not exactly what you want but here's a script for comparing two documents. It shows even slight changes in text: for example a comma removed or a dot added.

selvam214
selvam214Author
Inspiring
March 10, 2015

Hi Uwe,

As I mentioned very first thread (about the visual), here is the visual compare script ‌‌ got from Kasyan by 1 year back. At the same time I found the textual compare also. Unfortunately, I missed out the link and codes also.

Anyway, thanks for the valuable discussion.

I will choose --> export word --> word compare options.

Uwe/Pickory/Kasyan: thanks for your effort.

Selva.

Community Expert
March 9, 2015

How would you like to part contents from its visual representation?

This is no easy question, I think.

Consider two lines of text:

The second line is formatted with Capitals.

Now select the text frame and run the following script snippet:

alert(app.selection[0].parentStory.texts[0].contents);

Your result will be:

Text
Text

and not:

Text

TEXT

Uwe

selvam214
selvam214Author
Inspiring
March 9, 2015

Thanks Uwe,

But, I have 300 pages with one story. Once done the corrections, I must compare old document with new document (text correction updated document) and get the result.

If it possible to identify the text changes?

Community Expert
March 9, 2015

You could try with Acrobat Pro's "Compare Document" feature.

Uwe