LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2017, 08:58 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
compare two pdf files


Hi there,
what type of software do we have for 13.1 opensuse to compare two pdf files? There are some minor text differences between the two documents I would like to compare. An X environment application is really appreciated.

I would like to thank you for your reply
Regards
Alex
 
Old 02-28-2017, 09:19 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,840

Rep: Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328
Quote:
Originally Posted by alaios View Post
Hi there,
what type of software do we have for 13.1 opensuse to compare two pdf files? There are some minor text differences between the two documents I would like to compare. An X environment application is really appreciated.
You're talking about two different things here. There are many X/GUI applications for displaying PDF's (evince, okular, etc.), but they are not going to be able to compare two documents. It is more difficult still without know what KIND of PDF file; for example, one can scan a page of a book and save it as a PDF, but you will NOT be able to read the text automatically, because that's an image wrapped in a PDF container.

The best way to do this would be to use a utility called pdftotext, and convert the PDF into text, which *IS* readable/comparable. Then a tool like diff can easily scan for differences. Tools like meld or kdiff are GUI based and can compare two text files.
 
1 members found this post helpful.
Old 02-28-2017, 09:26 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
but my pdf files are pure text produced by latex
 
Old 02-28-2017, 09:35 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,840

Rep: Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328
Quote:
Originally Posted by alaios View Post
but my pdf files are pure text produced by latex
Great...so did you read what I told you above???? And if they're LATEX now, why not compare them BEFORE putting them to PDF format?
 
1 members found this post helpful.
Old 02-28-2017, 09:47 AM   #5
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
because if you have some small typo in latex you might not be able to spot it in the source. For me is easier to compare the ¨end" product.
Or am I wrong?
 
Old 02-28-2017, 10:18 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903
You may want to look at the package diffpdf. It's available in the Ubuntu 16.04 repos but I don't know if it is available in binary format for OpenSuse 13.1.
 
Old 02-28-2017, 10:44 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,840

Rep: Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328Reputation: 6328
Quote:
Originally Posted by alaios View Post
because if you have some small typo in latex you might not be able to spot it in the source. For me is easier to compare the ¨end" product. Or am I wrong?
A small typo will REMAIN a small typo, the format doesn't make it better/correct it. And you're asking how to spot differences in files...diff'ing source will still do that. Again, you can convert to text easily and compare those files easily.
Quote:
Originally Posted by hydrurga
You may want to look at the package diffpdf. It's available in the Ubuntu 16.04 repos but I don't know if it is available in binary format for OpenSuse 13.1.
Nice one; never heard of that before. Would save a step, but I couldn't find it for 13.1. Available for Leap 42 and Tumbleweed, but not in the factory repos.
 
Old 02-28-2017, 10:52 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903
Quote:
Originally Posted by TB0ne View Post
Nice one; never heard of that before. Would save a step, but I couldn't find it for 13.1. Available for Leap 42 and Tumbleweed, but not in the factory repos.
13.1 (unsupported distribution) version here: https://software.opensuse.org/packag...h_term=diffpdf (at the bottom of the page).

Would be interested to hear if it's any good. Text-wise, it probably works in a very similar fashion to what you're suggesting (and what I would have done in the OP's situation) vis-à-vis first extracting the text from both pdf's, then diffing it.
 
Old 03-04-2017, 12:23 AM   #9
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
You could run those documents through a plagiarism check software. WCopyfind comes to mind. It does not have a Linux version, but the Windows version works fine under WINE.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Compare PDF Files With DiffPDF In Ubuntu Linux, Debian, Fedora & Other Derivatives LXer Syndicated Linux News 0 08-24-2015 02:50 PM
LXer: Edit PDF files On Ubuntu Linux using Master PDF Editor LXer Syndicated Linux News 0 01-05-2015 06:03 PM
LXer: Edit PDF files On Ubuntu Linux using Master PDF Editor LXer Syndicated Linux News 0 01-05-2015 02:10 PM
[SOLVED] How to compare a list of files in two directories: compare content and print size Batistuta_g_2000 Linux - Newbie 9 03-24-2013 07:05 AM
PDF Compare Program bauer172uw Linux - Software 0 02-07-2006 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration