ByteScout PDF Suite - C++ - Convert Protected PDF Document to Excel (C++ CLR) with PDF Extractor SDK - ByteScout

ByteScout PDF Suite – C++ – Convert Protected PDF Document to Excel (C++ CLR) with PDF Extractor SDK

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF 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++ and ByteScout PDF 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++

Convert protected PDF document to excel (c++ clr) with PDF extractor SDK is simple to apply in C++ if you use these source codes below. What is ByteScout PDF Suite? It is the bundle that provides six different SDK libraries to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can help you to convert protected PDF document to excel (c++ clr) with PDF extractor SDK in your C++ application.

The SDK samples given below describe how to quickly make your application do convert protected PDF document to excel (c++ clr) with PDF extractor SDK in C++ with the help of ByteScout PDF Suite. Simply copy and paste in your C++ project or application you and then run your app! Complete and detailed tutorials and documentation are available along with installed ByteScout PDF Suite if you’d like to learn more about the topic and the details of the API.

The trial version of ByteScout PDF Suite 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::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 Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

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

Explore ByteScout PDF Suite Documentation

Explore Samples

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

Explore ByteScout PDF Suite Documentation

Explore Samples

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

Explore ByteScout PDF Suite Documentation

Explore Samples

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

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next