Jump to content

Recommended Posts

Posted

Hi Experts,

I've tried searching for me to start with my task on how to compare two PDF files, but sadly there is no success. It's been a week now and I could not start one.

My question is. Is there any functions that can compare two PDF files using Autoit? as resulted to searching, it needs Adobe Acrobat 2017 which we don't have in our station right now and we only have this version Adobe reader XI v11.0.13.

Also, there is no link that can direct me to coding.:(

So I'm here again asking for your Expertise if this can be done thru AutoIt coding. So far, I don't have any yet...:>

 

Thanks in advance Experts,

KS15

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Posted

Using the code in this page posted by jguinch

you can convert the pdf to plain text, and then read line by line and compare. I think overall thats it.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted (edited)

To do this you admittedly need to compare:

  1. text content
  2. text location/positions
  3. images content
  4. image positions
  5. other things to check .....

Edit: of course, per each page in PDF file.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

I forget to say that you can do all this things with AutoIt using QuickPDF.au3 but only with commercial version of Debenu QPDF AcitveX component.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

@careca,

I did comment on that post and thank you but I think I don't need to convert PDF to plain text as this will lost all the emphasis and link from PDF file. Also, this also needs pdftotext.exe where I don't have.:)

@mLipok,

Yup, I already read that Debenu Quick PDF Library from your "Debenu Quick PDF Library - UDF" but it was not installed in my PC right now and I think it needs Admin rights for installation. Or maybe I just don't get it what Debenu QPDF is.:sweating:

Not found.png

Is there other way aside from using Debenu QPDF?

Edited by KickStarter15

Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Posted
  On 9/29/2017 at 1:49 AM, KickStarter15 said:

I think it needs Admin rights for installation. Or maybe I just don't get it what Debenu QPDF is

Expand  

Install it at your home.
Get correct dll file, and redistribute them with your application.
But remember you can do this only with Commercial license .

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

btw.
You do not must install this at office.
You just need to have this DLL file with ActiveX component.
My UDF is using ActiveX component "on the fly" I mean without installing or registration in destination system.

But as I said you need to comply with Debenu Commercial license.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...