ByteScout Premium Suite - C++ - Compare PDF Documents with PDF Extractor SDK - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Premium Suite – C++ – Compare PDF Documents with PDF Extractor SDK

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C++ – Compare PDF Documents with PDF Extractor SDK

compare PDF documents with PDF extractor SDK in C++ with ByteScout Premium Suite

Build compare PDF documents with PDF extractor SDK in C++

:

Step-by-step instructions on how to do compare PDF documents with PDF extractor SDK in C++

The example source codes on this page will display you how to make compare PDF documents with PDF extractor SDK in C++. ByteScout Premium Suite was made to help with compare PDF documents with PDF extractor SDK in C++. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

If you want to quickly learn then these fast application programming interfaces of ByteScout Premium Suite for C++ plus the guideline and the C++ code below will help you quickly learn compare PDF documents with PDF extractor SDK. If you want to know how it works, then this C++ sample code should be copied and pasted into your application’s code editor. Then just compile and run it. Use of ByteScout Premium Suite in C++ is also described in the documentation included along with the product.

ByteScout Premium Suite is available as a free trial. You may get it from our website along with all other source code samples for C++ applications.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

CPPExample.cpp
      
#include "stdafx.h" #include "comip.h" #import "c:\\Program Files\\Bytescout PDF Extractor SDK\\net4.00\\Bytescout.PDFExtractor.tlb" raw_interfaces_only using namespace Bytescout_PDFExtractor; int _tmain(int argc, _TCHAR* argv[]) { // Initialize COM. HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); // Load first document _TextExtractorPtr document1(__uuidof(TextExtractor)); document1->put_RegistrationName(_bstr_t(L"DEMO")); document1->put_RegistrationKey(_bstr_t(L"DEMO")); document1->LoadDocumentFromFile(_bstr_t(L"..\\..\\comparison1.pdf")); // Load second document _TextExtractorPtr document2(__uuidof(TextExtractor)); document2->put_RegistrationName(_bstr_t(L"DEMO")); document2->put_RegistrationKey(_bstr_t(L"DEMO")); document2->LoadDocumentFromFile(_bstr_t(L"..\\..\\comparison2.pdf")); // Compare documents _TextComparerPtr comparer(__uuidof(TextComparer)); comparer->put_RegistrationName(_bstr_t(L"DEMO")); comparer->put_RegistrationKey(_bstr_t(L"DEMO")); DECIMAL result; comparer->Compare((_BaseTextExtractorPtr) document1, (_BaseTextExtractorPtr) document2, &result); // Generate report VARIANT_BOOL ok; comparer->GenerateHtmlReport_2(_bstr_t(L"report.html"), &ok); document1->Release(); document2->Release(); comparer->Release(); CoUninitialize(); return 0; }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

stdafx.cpp
      
// stdafx.cpp : source file that includes just the standard includes // CPPExample.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

stdafx.h
      
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> // TODO: reference additional headers your program requires here

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

targetver.h
      
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next