Kako pretvoriti PDF u Excel pomoću C#

In this article, we will go through a complete guide and how to use it to convert PDF documents to the XLSX format. By following this guide, you will be able to learn how to convert PDF to Excel using C#. Furthermore, these step-by-step instructions can be used to create Excel from PDF using C#. The instructions and an example code can be found below.

Steps to Convert PDF to Excel using C#

  1. Setup GroupDocs.Conversion for .NET package from the NuGet website in the application
  2. Reference to GroupDocs.Conversion namespace for doing document conversion
  3. Create an object of the Converter class
  4. Initialize SpreadsheetConvertOptions class for setting convert options for the converted XLSX file
  5. Call the Convert method of the Converter class, pass convert options and output XLSX file name to implement PDF to Excel in C# capability

In the above section, we have outlined instructions for performing document conversion to generate Excel from PDF in C#. By following the above points in a sequence, you can easily apply them in the code for document transformation. You can start with installing the required library into the application and include the necessary namespace in the code. Further, create instances of the Converter class for loading the source PDF document and SpreadsheetConvertOptions class to set convert options for the output XLSX file and use the Convert method to save the file to the disc.

Code to Convert PDF to Excel using C#

We have created a sample C# code to convert PDF to Excel and performed a simple document conversion in this example to explain how to use the feature. However, if you want to execute more extensive document transformations for your project, you can use the SpreadsheetConvertOptions class to set convert parameters for the output Excel file. Furthermore, you may convert any sort of source document to spreadsheet formats such as XLS, XLSM, XLSB, ODS, OTS, XLTX, CSV, and many others.

Razgovarali smo o tome kako pretvoriti PDF dokumente u Excel pomoću C# i razvili primjer koda za ovaj članak. Nedavno smo objavili članak na kako pretvoriti XLSB u PDF u C#; provjerite za više detalja.

 Hrvatski