[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PDF diff script - how to run configured Diff viewer?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 18 Dec 2015 17:52:03 +0100

On 18.12.2015 09:48, wwwald wrote:
> Hello,
>
> I'm trying to produce a JS diff script for PDF files, based on pdftotext. I'm stuck on my last step - how to run TortoiseSVN's configured diff viewer, and compare the two TXT files that are produced.
>
> Is the TortoiseSVN JS API documented somewhere? How can I determine the diff viewer path, to run it afterwards?
>
> If I get this working, I'd be glad to contribute the script if appropriate.

To start the diff viewer (TortoiseMerge by default), just call
TortoiseProc.exe with the diff command:
https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html#tsvn-automation-basics

example:

tortoiseproc.exe /command:diff /path1:"first.txt" /path2:"second.txt"

Or, you could also just start TortoiseMerge.exe directly:

TortoiseMerge.exe /base:"first.txt" /mine:"second.txt"
/basename:"first.pdf" /minename:"second.pdf"

When starting TortoiseMerge, you can as in the example above also pass a
descriptive name for the diffed files, which in your case would best be
the original pdf filenames.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3151304
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-12-18 17:52:07 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.