ByteScout PDF Extractor SDK - C++ - Split Protected PDF Document (C++ CLR) - ByteScout

ByteScout PDF Extractor SDK – C++ – Split Protected PDF Document (C++ CLR)

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – C++ – Split Protected PDF Document (C++ CLR)

How to split protected PDF document (c++ clr) in C++ with ByteScout PDF Extractor SDK

This tutorial will show how to split protected PDF document (c++ clr) in C++

Learn how to split protected PDF document (c++ clr) in C++ with this source code sample. Want to split protected PDF document (c++ clr) in your C++ app? ByteScout PDF Extractor SDK is designed for it. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities.

This rich sample source code in C++ for ByteScout PDF Extractor SDK includes the number of functions and options you should do calling the API to split protected PDF document (c++ clr). In order to implement the functionality, you should copy and paste this code for C++ below into your code editor with your app, compile and run your application. This basic programming language sample code for C++ will do the whole work for you to split protected PDF document (c++ clr).

Our website provides trial version of ByteScout PDF Extractor SDK for free. It also includes documentation and source code samples.

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

CPPCLRConsoleApplication.cpp
      
#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"; }

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

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

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

stdafx.cpp
      
#include "stdafx.h"

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

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

Try ByteScout PDF Extractor SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

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

Explore ByteScout PDF Extractor SDK Documentation

Get ByteScout PDF Extractor SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next