ByteScout PDF Extractor SDK - C++ - Merge Protected PDF Documents (C++ CLR) - ByteScout

ByteScout PDF Extractor SDK – C++ – Merge Protected PDF Documents (C++ CLR)

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – C++ – Merge Protected PDF Documents (C++ CLR)

How to merge protected PDF documents (c++ clr) in C++ and ByteScout PDF Extractor SDK

The tutorial shows how to merge protected PDF documents (c++ clr) in C++

Merge protected PDF documents (c++ clr) is easy to implement in C++ if you use these source codes below. ByteScout PDF Extractor SDK: the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction. It can merge protected PDF documents (c++ clr) in C++.

C++ code samples for C++ developers help to speed up coding of your application when using ByteScout PDF Extractor SDK. In your C++ project or application you may simply copy & paste the code and then run your app! Implementing C++ application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

Trial version of ByteScout PDF Extractor SDK can be downloaded for free from our website. It also includes source code samples for C++ and other programming languages.

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

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

CPPCLRConsoleApplication.cpp
      
#include "stdafx.h" // // This example demonstrates how to provide password for protected PDF files. // using namespace System; using Bytescout::PDFExtractor::DocumentMerger; // `PasswordRequired` event handler void OnPasswordRequired(System::Object ^sender, System::String ^document, System::String ^%password); int main(array<System::String ^> ^args) { String^ input1(".\\encrypted1 (password is 'password').pdf"); String^ input2(".\\encrypted2 (password is 'password').pdf"); String^ output(".\\result.pdf"); // Create DocumentMerger instance DocumentMerger^ merger = gcnew DocumentMerger("demo", "demo"); // Handle `PasswordRequired` event merger->PasswordRequired += gcnew Bytescout::PDFExtractor::PasswordEventHandler(&OnPasswordRequired); // Ignore document permissions merger->CheckPermissions = false; // Merge documents array<String^>^ files = gcnew array<String^>(2) { input1, input2 }; merger->Merge(files, output); delete merger; // Open the output document in default associated application (for demonstration) Diagnostics::Process::Start(output); return 0; } // `PasswordRequired` event handler void OnPasswordRequired(System::Object ^sender, System::String ^document, System::String ^%password) { // Ask user for password and put it to `Password` property. password = "password"; }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Resource.h
      
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by app.rc

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

stdafx.cpp
      
#include "stdafx.h"

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

stdafx.h
      
#pragma once // TODO: reference additional headers your program requires here

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK 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 PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next