 Hi guys, welcome back to my YouTube channel. This is Daniel Rossell here. I want to do a video today about a very useful Ubuntu utility. It's called Diff PDF. Now, this is great for if you basically have two different versions of a PDF to compare and you know in the business environment, this would be a pretty common use case. Now, there are definitely web applications that basically mirror this functionality, but if you're handling, let's say something sensitive and you don't want to commit any information like that to a potentially untrusted client provider, you want to do it, keep it all on your local machine then you can use this if you are on Ubuntu. So I'm just going to call up here the documentation. So it's actually a cross platform tool. You can get it for Windows as well. To get it for Ubuntu I basically just needed to do a sudo apt-get install Diff PDF. No need to install a PPA or anything like that. It's in the repositories. So once you have it on your system, it should create an entry depending on what DE you're using. Or if it doesn't do that, then you can just launch it with Diff PDF, which I'm going to do now. So this is the GUI. It's pretty straightforward or self-explanatory. You have a button for file one, a button for file two. There is a margins editor. You can choose to exclude the margins if there are artifacts in the margins of the file. Or you can do controls and you can compare according to appearance, character or words. I'm going to show exactly what those differences are in a second. So in order to test this out, I'm just going to open here a LibreOffice. Let's just create a mock couple of PDFs. We're going to call this contract of employment. Let's say clause 1.1, the salary will be $50,000. Clause 1.2, the employee will be entitled to 24 days of vacation per year. Clause 1.3, it's going to say here for the duration of the contract of employment. The employee is forbidden from seeking alternative work. I don't know. This is just an example contract, right? So we have three dummy terms and we have a title and I'm just going to go ahead now and export this as let's just call it contract one. And I'm going to just put that on my desktop. Done. So let's just change a few things about this contract employment. Firstly, let's say salary will be $60,000 and let's also add a bit of texture. Let's say plus $2,000 per LibreFord. Clause 1.2, the employee will be entitled to let's say 26 days of vacation per year. And because we are, I want to just demonstrate how the character difference things work. Let's just intentionally make a typo and I'm just going to get rid of one of the ease and employee. And I'm going to get rid of term one point or Clause 1.3 altogether. And now I'm going to export this and call this contract two dot PDF. Now those are both of my desktops. I'm going to pop back here to diff PDF and I'm going to tell it file one, look at contract one, file two, look at contract two. And let's just start with a character comparison. So it's just really, it's really simple. You just click on the compare button and here we go. So it gives you a nice little preview window as well. You can look left and right throughout each first each version of the document. And as you can see here, it's flagged as a character change. So we had 50,000. We changed it to 60. So that's got red highlight on it. And it's flagged again in red that we've added this text and one point three. Clause 1.3 has been reduced, has been taken out of the document. Now let's look at what happens if we compare words. So if you compare words, we can see the words that have been changed and not just the characters. So let's take the employee. So it's flagged the word here. But if you go into characters, it's only flagging the E that was removed in the left pane. So that's the essentials of its functionality. As I said, it's a really useful, very, very small utility, but a very functional GUI. If you want to do something like review changes to a contract in a bunch to diff PDF is one of the tools that you can use.