ByteScout Data Extraction Suite - C++ - Convert Protected PDF Document to Excel (C++ CLR) 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 Data Extraction Suite – C++ – Convert Protected PDF Document to Excel (C++ CLR) with PDF Extractor SDK

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – C++ – Convert Protected PDF Document to Excel (C++ CLR) with PDF Extractor SDK

How to convert protected PDF document to excel (c++ clr) with PDF extractor SDK in C++ using ByteScout Data Extraction Suite

Continuous learning is a crucial part of computer science and this tutorial shows how to convert protected PDF document to excel (c++ clr) with PDF extractor SDK in C++

Quickly learn how to convert protected PDF document to excel (c++ clr) with PDF extractor SDK in C++ with this sample source code. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can be applied to convert protected PDF document to excel (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 convert protected PDF document to excel (c++ clr) with PDF extractor SDK. This C++ sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! 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.

You can download free trial version of ByteScout Data Extraction Suite from our website to see and try many others source code samples for C++.

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::XLSExtractor; // `PasswordRequired` event handler void OnPasswordRequired(System::Object ^sender, System::EventArgs ^e); int main(array<System::String ^> ^args) { String^ input(".\\encrypted (password is 'password').pdf"); String^ output(".\\result.xls"); // Create XLSExtractor instance XLSExtractor^ pExtractor = gcnew XLSExtractor("demo", "demo"); // Handle `PasswordRequired` event pExtractor->PasswordRequired += gcnew System::EventHandler(&OnPasswordRequired); // Load PDF document pExtractor->LoadDocumentFromFile(input); // Save Excel document pExtractor->SaveToXLSFile(output); delete pExtractor; // 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::EventArgs ^e) { // Ask user for password and put it to `Password` property. safe_cast<XLSExtractor^>(sender)->Password = "password"; }

ON-PREMISE OFFLINE SDK

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

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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite 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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite 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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction 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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next