The code displayed below will guide you to install an C++ app to split protected PDF document (c++ clr) with PDF extractor SDK. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can be applied to split protected PDF document (c++ clr) with PDF extractor SDK using C++.
This prolific sample source code in C++ for ByteScout Data Extraction Suite contains various functions and other necessary options you should do calling the API to split protected PDF document (c++ clr) with PDF extractor SDK. Follow the instructions from scratch to work and copy the C++ code. Complete and detailed tutorials and documentation are available along with installed ByteScout Data Extraction Suite if you’d like to learn more about the topic and the details of the API.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
#include "stdafx.h" // // This example demonstrates how to provide password for protected PDF files. // using namespace System; using Bytescout::PDFExtractor::DocumentSplitter; // `PasswordRequired` event handler void OnPasswordRequired(System::Object ^sender, System::String ^document, System::String ^%password); int main(array<System::String ^> ^args) { String^ input(".\\encrypted (password is 'password').pdf"); String^ output1(".\\result1.pdf"); String^ output2(".\\result2.pdf"); // Create DocumentSplitter instance DocumentSplitter^ merger = gcnew DocumentSplitter("demo", "demo"); // Handle `PasswordRequired` event merger->PasswordRequired += gcnew Bytescout::PDFExtractor::PasswordEventHandler(&OnPasswordRequired); // Ignore document permissions merger->CheckPermissions = false; // Split document merger->Split(input, output1, output2, 3); delete merger; // Open the output documents in default associated application (for demonstration) Diagnostics::Process::Start(output1); Diagnostics::Process::Start(output2); 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"; }
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by app.rc
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
#include "stdafx.h"
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
#pragma once // TODO: reference additional headers your program requires here
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: