Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Compare PDF documents using C#

Reply
 
Old 06-01-2008   #1 (permalink)
PS


 
 

Compare PDF documents using C#

Hi,

Is there a way to compare PDF, Word Document, Excel using C# like WinDiff
utility that compares text file and display the result with the modified text
in both the document?

--
Thanks,
PS

My System SpecsSystem Spec
Old 06-02-2008   #2 (permalink)
Cowboy \(Gregory A. Beamer\)


 
 

Re: Compare PDF documents using C#

You can do it, but you will have to program different formats in unless you
are just comparing bits. A line in code can easily be compared by walking
the document and comparing lines. But this is code in each of the apps you
are talking about.

Let's take word for an example: To compare, you will have to read lines as
Word lines, not as lines in the file created by Word. Now, if you are using
Word 2007, you can actually compare XML, as that is the storage mechanism
(also true for Excel 2007). Assuming you are talking older versions of Word,
you then have to stoke up the Word libraries to read through the lines.

PDF presents the same problem, as what you see in the final document (viewed
in Reader, for example) is not what you will see if you open this in
notepad.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"PS" <PS@xxxxxx> wrote in message
news:0C809810-082E-4C6E-8B10-54FB39E19F47@xxxxxx
Quote:

> Hi,
>
> Is there a way to compare PDF, Word Document, Excel using C# like WinDiff
> utility that compares text file and display the result with the modified
> text
> in both the document?
>
> --
> Thanks,
> PS
My System SpecsSystem Spec
Old 06-04-2008   #3 (permalink)
PS


 
 

Re: Compare PDF documents using C#

Understood your point, do you have any example for the same?

Are there any legal issue if we use the PDF, Word, Excel library in .Net
application?

--
Thanks,
PS


"Cowboy (Gregory A. Beamer)" wrote:
Quote:

> You can do it, but you will have to program different formats in unless you
> are just comparing bits. A line in code can easily be compared by walking
> the document and comparing lines. But this is code in each of the apps you
> are talking about.
>
> Let's take word for an example: To compare, you will have to read lines as
> Word lines, not as lines in the file created by Word. Now, if you are using
> Word 2007, you can actually compare XML, as that is the storage mechanism
> (also true for Excel 2007). Assuming you are talking older versions of Word,
> you then have to stoke up the Word libraries to read through the lines.
>
> PDF presents the same problem, as what you see in the final document (viewed
> in Reader, for example) is not what you will see if you open this in
> notepad.
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> Subscribe to my blog
> http://gregorybeamer.spaces.live.com/lists/feed.rss
>
> or just read it:
> http://gregorybeamer.spaces.live.com/
>
> *************************************************
> | Think outside the box!
> |
> *************************************************
> "PS" <PS@xxxxxx> wrote in message
> news:0C809810-082E-4C6E-8B10-54FB39E19F47@xxxxxx
Quote:

> > Hi,
> >
> > Is there a way to compare PDF, Word Document, Excel using C# like WinDiff
> > utility that compares text file and display the result with the modified
> > text
> > in both the document?
> >
> > --
> > Thanks,
> > PS
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
compare strings VB Script
Compare values PowerShell
Compare paths PowerShell
how to compare in this situation PowerShell
Compare two array PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46