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

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.

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::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"; }

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