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

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

How to convert protected PDF document to excel (c++ clr) in C++ and ByteScout PDF Extractor SDK

The tutorial below will demonstrate how to convert protected PDF document to excel (c++ clr) in C++

We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout PDF Extractor SDK can convert protected PDF document to excel (c++ clr). It can be used from C++. ByteScout PDF Extractor SDK is 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.

You will save a lot of time on writing and testing code as you may just take the C++ code from ByteScout PDF Extractor SDK for convert protected PDF document to excel (c++ clr) below and use it in your application. 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! 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.

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

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 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