Über NuGet installiert

PM> Install-Package Spire.PDF

verwandte Links

PDF-Dateien eignen sich hervorragend zum Präsentieren auf verschiedenen Gerätetypen und zum Teilen auf verschiedenen Plattformen. Man muss jedoch zugeben, dass die Bearbeitung von PDF-Dateien eine gewisse Herausforderung darstellt. Wenn Sie eine PDF-Datei erhalten und eine Präsentation basierend auf dem Inhalt vorbereiten müssen, wird empfohlen, die PDF-Datei in ein PowerPoint-Dokument zu konvertieren, um einen besseren Präsentationseffekt zu erzielen und sicherzustellen, dass der Inhalt weiter bearbeitet werden kann. In diesem Artikel wird die programmgesteuerte Vorgehensweise demonstriert Konvertieren Sie PDF in eine PowerPoint-Präsentation verwenden Spire.PDF for .NET.

Installieren Sie Spire.PDF for .NET

Zunächst müssen Sie die im Spire.PDF for.NET-Paket enthaltenen DLL-Dateien als Referenzen in Ihrem .NET-Projekt hinzufügen. Die DLLs-Dateien können entweder über diesen Link heruntergeladen oder über NuGet installiert werden.

PM> Install-Package Spire.PDF

Konvertieren Sie PDF in eine PowerPoint-Präsentation in C# und VB.NET

Ab Version 8.11.10 unterstützt Spire.PDF for .NET die Konvertierung von PDF in PPTX mithilfe der Methode PdfDocument.SaveToFile(). Mit dieser Methode wird jede Seite Ihrer PDF-Datei in PowerPoint in eine einzelne Folie umgewandelt. Nachfolgend finden Sie die Schritte zum Konvertieren einer PDF-Datei in ein bearbeitbares PowerPoint-Dokument.

  • Создайте экземпляр PdfDocument.
  • Laden Sie ein Beispiel-PDF-Dokument mit der Methode PdfDocument.LoadFromFile().
  • Speichern Sie das Dokument als PowerPoint-Dokument mit der Methode PdfDocument.SaveToFile(string filename, FileFormat.PPTX).
  • C#
  • VB.NET
using Spire.Pdf;
    
    namespace PDFtoPowerPoint
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Create a PdfDocument instance
                PdfDocument pdf = new PdfDocument();
    
                //Load a sample PDF document
                pdf.LoadFromFile(@"C:\Users\Administrator\Desktop\Sample.pdf");
    
                //Convert the PDF to PPTX document
                pdf.SaveToFile("ConvertPDFtoPowerPoint.pptx", FileFormat.PPTX);
            }
        }
    }

C#/VB.NET: Convert PDF to PowerPoint

Beantragen Sie eine temporäre Lizenz

Wenn Sie die Bewertungsmeldung aus den generierten Dokumenten entfernen oder die Funktionseinschränkungen beseitigen möchten, wenden Sie sich bitte an uns Fordern Sie eine 30-Tage-Testlizenz an für sich selbst.

Siehe auch

Friday, 21 July 2023 02:39

C#/VB.NET: Convertir PDF a PowerPoint

Instalado a través de NuGet

PM> Install-Package Spire.PDF

enlaces relacionados

Los archivos PDF son excelentes para presentar en diferentes tipos de dispositivos y compartir entre plataformas, pero hay que admitir que editar PDF es un poco desafiante. Cuando recibe un archivo PDF y necesita preparar una presentación basada en el contenido que contiene, se recomienda convertir el archivo PDF en un documento de PowerPoint para tener un mejor efecto de presentación y también para garantizar que el contenido se pueda editar más. Este artículo demostrará cómo programáticamente convertir PDF a presentación de PowerPoint usando Spire.PDF for .NET.

Instalar Spire.PDF for .NET

Para empezar, debe agregar los archivos DLL incluidos en el paquete Spire.PDF for .NET como referencias en su proyecto .NET. Los archivos DLL se pueden descargar desde este enlace o instalar a través de NuGet.

PM> Install-Package Spire.PDF

Convierta PDF a presentación de PowerPoint en C# y VB.NET

A partir de la versión 8.11.10, Spire.PDF for .NET admite la conversión de PDF a PPTX mediante el método PdfDocument.SaveToFile(). Con este método, cada página de su archivo PDF se convertirá en una sola diapositiva en PowerPoint. A continuación se muestran los pasos para convertir un archivo PDF en un documento de PowerPoint editable.

  • Cree una instancia de PdfDocument.
  • Cargue un documento PDF de muestra utilizando el método PdfDocument.LoadFromFile().
  • Guarde el documento como un documento de PowerPoint utilizando el método PdfDocument.SaveToFile(string filename, FileFormat.PPTX).
  • C#
  • VB.NET
using Spire.Pdf;
    
    namespace PDFtoPowerPoint
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Create a PdfDocument instance
                PdfDocument pdf = new PdfDocument();
    
                //Load a sample PDF document
                pdf.LoadFromFile(@"C:\Users\Administrator\Desktop\Sample.pdf");
    
                //Convert the PDF to PPTX document
                pdf.SaveToFile("ConvertPDFtoPowerPoint.pptx", FileFormat.PPTX);
            }
        }
    }

C#/VB.NET: Convert PDF to PowerPoint

Solicitar una Licencia Temporal

Si desea eliminar el mensaje de evaluación de los documentos generados o deshacerse de las limitaciones de la función, por favor solicitar una licencia de prueba de 30 días para ti.

Ver también

Friday, 21 July 2023 02:38

C#/VB.NET: PDF를 PowerPoint로 변환

NuGet을 통해 설치됨

PM> Install-Package Spire.PDF

관련된 링크들

PDF 파일은 다양한 유형의 장치에서 프레젠테이션하고 플랫폼 간에 공유하는 데 적합하지만 PDF 편집이 약간 어렵다는 점을 인정해야 합니다. PDF 파일을 받아 내용을 기반으로 프레젠테이션을 준비해야 하는 경우 PDF 파일을 PowerPoint 문서로 변환하여 프레젠테이션 효과를 높이고 내용을 추가로 편집할 수 있도록 하는 것이 좋습니다. 이 문서에서는 프로그래밍 방식으로 PDF를 PowerPoint 프레젠테이션으로 변환Spire.PDF for .NET사용.

Spire.PDF for .NET 설치

먼저 Spire.PDF for .NET 패키지에 포함된 DLL 파일을 .NET 프로젝트의 참조로 추가해야 합니다. DLL 파일은 다음에서 다운로드할 수 있습니다 이 링크 또는 NuGet을 통해 설치됩니다.

PM> Install-Package Spire.PDF

C# 및 VB.NET에서 PDF를 PowerPoint 프레젠테이션으로 변환

버전 8.11.10부터 Spire.PDF for .NET는 PdfDocument.SaveToFile() 메서드를 사용하여 PDF를 PPTX로 변환하는 것을 지원합니다. 이 방법을 사용하면 PDF 파일의 각 페이지가 PowerPoint의 단일 슬라이드로 변환됩니다. 다음은 PDF 파일을 편집 가능한 PowerPoint 문서로 변환하는 단계입니다.

  • PdfDocument 인스턴스를 만듭니다.
  • PdfDocument.LoadFromFile() 메서드를 사용하여 샘플 PDF 문서를 로드합니다.
  • PdfDocument.SaveToFile(string filename, FileFormat.PPTX) 메서드를 사용하여 문서를 PowerPoint 문서로 저장합니다.
  • C#
  • VB.NET
using Spire.Pdf;
    
    namespace PDFtoPowerPoint
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Create a PdfDocument instance
                PdfDocument pdf = new PdfDocument();
    
                //Load a sample PDF document
                pdf.LoadFromFile(@"C:\Users\Administrator\Desktop\Sample.pdf");
    
                //Convert the PDF to PPTX document
                pdf.SaveToFile("ConvertPDFtoPowerPoint.pptx", FileFormat.PPTX);
            }
        }
    }

C#/VB.NET: Convert PDF to PowerPoint

임시 면허 신청

생성된 문서에서 평가 메시지를 제거하거나 기능 제한을 제거하려면 다음을 수행하십시오 30일 평가판 라이선스 요청 자신을 위해.

또한보십시오

Friday, 21 July 2023 02:37

C#/VB.NET: Converti PDF in PowerPoint

Installato tramite NuGet

PM> Install-Package Spire.PDF

Link correlati

I file PDF sono ottimi per la presentazione su diversi tipi di dispositivi e la condivisione tra piattaforme, ma bisogna ammettere che la modifica del PDF è un po' impegnativa. Quando ricevi un file PDF e devi preparare una presentazione basata sul contenuto all'interno, si consiglia di convertire il file PDF in un documento PowerPoint per avere un migliore effetto di presentazione e anche per garantire che il contenuto possa essere ulteriormente modificato. Questo articolo dimostrerà come eseguire a livello di codice converti PDF in presentazioni PowerPoint utilizzando Spire.PDF for .NET.

Installa Spire.PDF for .NET

Per cominciare, è necessario aggiungere i file DLL inclusi nel pacchetto Spire.PDF for.NET come riferimenti nel progetto .NET. I file DLL possono essere scaricati da questo link o installato tramite NuGet.

PM> Install-Package Spire.PDF

Converti PDF in presentazioni PowerPoint in C# e VB.NET

Dalla versione 8.11.10, Spire.PDF for .NET supporta la conversione da PDF a PPTX utilizzando il metodo PdfDocument.SaveToFile(). Con questo metodo, ogni pagina del tuo file PDF verrà convertita in una singola diapositiva in PowerPoint. Di seguito sono riportati i passaggi per convertire un file PDF in un documento PowerPoint modificabile.

  • Creare un'istanza PdfDocument.
  • Carica un documento PDF di esempio utilizzando il metodo PdfDocument.LoadFromFile().
  • Salvare il documento come documento PowerPoint utilizzando il metodo PdfDocument.SaveToFile(string filename, FileFormat.PPTX).
  • C#
  • VB.NET
using Spire.Pdf;
    
    namespace PDFtoPowerPoint
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Create a PdfDocument instance
                PdfDocument pdf = new PdfDocument();
    
                //Load a sample PDF document
                pdf.LoadFromFile(@"C:\Users\Administrator\Desktop\Sample.pdf");
    
                //Convert the PDF to PPTX document
                pdf.SaveToFile("ConvertPDFtoPowerPoint.pptx", FileFormat.PPTX);
            }
        }
    }

C#/VB.NET: Convert PDF to PowerPoint

Richiedi una licenza temporanea

Se desideri rimuovere il messaggio di valutazione dai documenti generati o eliminare le limitazioni delle funzioni, per favore richiedere una licenza di prova di 30 giorni per te.

Guarda anche

Installé via NuGet

PM> Install-Package Spire.PDF

Les fichiers PDF sont parfaits pour être présentés sur différents types d'appareils et partagés sur plusieurs plates-formes, mais il faut admettre que l'édition de PDF est un peu difficile. Lorsque vous recevez un fichier PDF et que vous devez préparer une présentation basée sur le contenu qu'il contient, il est recommandé de convertir le fichier PDF en un document PowerPoint pour avoir un meilleur effet de présentation et également pour s'assurer que le contenu peut être modifié ultérieurement. Cet article vous montrera comment programmer convertir un PDF en présentation PowerPoint en utilisant Spire.PDF for .NET.

Installer Spire.PDF for .NET

Pour commencer, vous devez ajouter les fichiers DLL inclus dans le package Spire.PDF for .NET en tant que références dans votre projet .NET. Les fichiers DLL peuvent être téléchargés à partir de ce lien ou installés via NuGet.

PM> Install-Package Spire.PDF

Convertir un PDF en présentation PowerPoint en C# et VB.NET

À partir de la version 8.11.10, Spire.PDF for .NET prend en charge la conversion de PDF en PPTX à l'aide de la méthode PdfDocument.SaveToFile(). Avec cette méthode, chaque page de votre fichier PDF sera convertie en une seule diapositive dans PowerPoint. Vous trouverez ci-dessous les étapes pour convertir un fichier PDF en un document PowerPoint modifiable.

  • Créez une instance PdfDocument.
  • Chargez un exemple de document PDF à l'aide de la méthode PdfDocument.LoadFromFile().
  • Enregistrez le document en tant que document PowerPoint à l'aide de la méthode PdfDocument.SaveToFile(string filename, FileFormat.PPTX).
  • C#
  • VB.NET
using Spire.Pdf;
    
    namespace PDFtoPowerPoint
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Create a PdfDocument instance
                PdfDocument pdf = new PdfDocument();
    
                //Load a sample PDF document
                pdf.LoadFromFile(@"C:\Users\Administrator\Desktop\Sample.pdf");
    
                //Convert the PDF to PPTX document
                pdf.SaveToFile("ConvertPDFtoPowerPoint.pptx", FileFormat.PPTX);
            }
        }
    }

C#/VB.NET: Convert PDF to PowerPoint

Demander une licence temporaire

Si vous souhaitez supprimer le message d'évaluation des documents générés ou vous débarrasser des limitations de la fonction, veuillez demander une licence d'essai de 30 jours pour toi.

Voir également

Friday, 21 July 2023 02:33

C#/VB.NET: Converter PDF para Excel

Instalado via NuGet

PM> Install-Package Spire.PDF

Links Relacionados

PDF é um formato de arquivo versátil, mas é difícil de editar. Se você deseja modificar e calcular dados de PDF, a conversão de PDF para Excel seria uma solução ideal. Neste artigo, você aprenderá como converter PDF para Excel em C# e VB.NET usando o Spire.PDF for .NET.

Instalar o Spire.PDF for .NET

Para começar, você precisa adicionar os arquivos DLL incluídos no pacote Spire.PDF for.NET como referências em seu projeto .NET. Os arquivos DLL podem ser baixados deste link ou instalados via NuGet.

PM> Install-Package Spire.PDF

Converter PDF para Excel em C# e VB.NET

A seguir estão as etapas para converter um documento PDF em Excel:

  • Inicialize uma instância da classe PdfDocument.
  • Carregue o documento PDF usando o método PdfDocument.LoadFromFile(filePath).
  • Salve o documento no Excel usando o método PdfDocument.SaveToFile(filePath, FileFormat.XLSX).
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample.pdf");
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToExcel.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Converta um PDF de várias páginas em uma planilha do Excel em C# e VB.NET

A seguir estão as etapas para converter um PDF de várias páginas em uma planilha do Excel:

  • Inicialize uma instância da classe PdfDocument.
  • Carregue o documento PDF usando o método PdfDocument.LoadFromFile(filePath).
  • Inicialize uma instância da classe XlsxLineLayoutOptions, no construtor da classe, definindo o primeiro parâmetro - convertToMultipleSheet como false.
  • Defina opções de conversão de PDF para XLSX usando o método PdfDocument.ConvertOptions.SetPdfToXlsxOptions(XlsxLineLayoutOptions).
  • Salve o documento no Excel usando o método PdfDocument.SaveToFile(filePath, FileFormat.XLSX).
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample1.pdf");
    
                //Initialize an instance of XlsxLineLayoutOptions class, in the class constructor, setting the first parameter - convertToMultipleSheet as false.
                //The four parameters represent: convertToMultipleSheet, showRotatedText, splitCell, wrapText
                XlsxLineLayoutOptions options = new XlsxLineLayoutOptions(false, true, true, true);
                //Set PDF to XLSX convert options
                pdf.ConvertOptions.SetPdfToXlsxOptions(options);
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToOneExcelSheet.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Solicitar uma licença temporária

Se você deseja remover a mensagem de avaliação dos documentos gerados ou se livrar das limitações de função, por favor solicite uma licença de teste de 30 dias para você mesmo.

Veja também

PDF — это универсальный формат файлов, но его трудно редактировать. Если вы хотите изменить и рассчитать данные PDF, преобразование PDF в Excel будет идеальным решением. В этой статье вы узнаете, как конвертировать PDF в Excel на C# и VB.NET с помощью Spire.PDF for .NET.

Установите Spire.PDF for .NET

Для начала вам нужно добавить файлы DLL, включенные в пакет Spire.PDF for .NET, в качестве ссылок в ваш проект .NET. Файлы DLL можно загрузить по этой ссылке или установить через NuGet.

PM> Install-Package Spire.PDF

Преобразование PDF в Excel на C# и VB.NET

Ниже приведены шаги для преобразования документа PDF в Excel:

  • Инициализировать экземпляр класса PdfDocument.
  • Загрузите документ PDF с помощью метода PdfDocument.LoadFromFile(filePath).
  • Сохраните документ в Excel, используя метод PdfDocument.SaveToFile(filePath, FileFormat.XLSX).
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample.pdf");
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToExcel.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Преобразование многостраничного PDF в один лист Excel в C# и VB.NET

Ниже приведены шаги для преобразования многостраничного PDF-файла в один лист Excel:

  • Инициализировать экземпляр класса PdfDocument.
  • Загрузите документ PDF с помощью метода PdfDocument.LoadFromFile(filePath).
  • Инициализируйте экземпляр класса XlsxLineLayoutOptions в конструкторе класса, установив для первого параметра convertToMultipleSheet значение false.
  • Задайте параметры преобразования PDF в XLSX с помощью метода PdfDocument.ConvertOptions.SetPdfToXlsxOptions(XlsxLineLayoutOptions).
  • Сохраните документ в Excel, используя метод PdfDocument.SaveToFile(filePath, FileFormat.XLSX).
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample1.pdf");
    
                //Initialize an instance of XlsxLineLayoutOptions class, in the class constructor, setting the first parameter - convertToMultipleSheet as false.
                //The four parameters represent: convertToMultipleSheet, showRotatedText, splitCell, wrapText
                XlsxLineLayoutOptions options = new XlsxLineLayoutOptions(false, true, true, true);
                //Set PDF to XLSX convert options
                pdf.ConvertOptions.SetPdfToXlsxOptions(options);
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToOneExcelSheet.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Подать заявку на временную лицензию

Если вы хотите удалить оценочное сообщение из сгенерированных документов или избавиться от функциональных ограничений, пожалуйста запросить 30-дневную пробную лицензию для себя.

Смотрите также

Friday, 21 July 2023 02:31

C#/VB.NET: PDF in Excel konvertieren

Über NuGet installiert

PM> Install-Package Spire.PDF

verwandte Links

PDF ist ein vielseitiges Dateiformat, das jedoch schwierig zu bearbeiten ist. Wenn Sie PDF-Daten ändern und berechnen möchten, wäre die Konvertierung von PDF in Excel eine ideale Lösung. In diesem Artikel erfahren Sie, wie das geht Konvertieren Sie PDF in Excel in C# und VB.NET Verwendung von Spire.PDF for .NET.

Installieren Spire.PDF for .NET

Zunächst müssen Sie die im Spire.PDF for.NET-Paket enthaltenen DLL-Dateien als Referenzen in Ihrem .NET-Projekt hinzufügen. Die DLL-Dateien können entweder über diesen Link heruntergeladen oder über NuGet installiert werden.

PM> Install-Package Spire.PDF

Konvertieren Sie PDF in Excel in C# und VB.NET

Im Folgenden finden Sie die Schritte zum Konvertieren eines PDF-Dokuments in Excel:

  • Initialisieren Sie eine Instanz der PdfDocument-Klasse.
  • Laden Sie das PDF-Dokument mit der Methode PdfDocument.LoadFromFile(filePath).
  • Speichern Sie das Dokument mit der Methode PdfDocument.SaveToFile(filePath, FileFormat.XLSX) in Excel.
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample.pdf");
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToExcel.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Konvertieren Sie eine mehrseitige PDF-Datei in ein Excel-Arbeitsblatt in C# und VB.NET

Im Folgenden finden Sie die Schritte zum Konvertieren einer mehrseitigen PDF-Datei in ein Excel-Arbeitsblatt:

  • Initialisieren Sie eine Instanz der PdfDocument-Klasse.
  • Laden Sie das PDF-Dokument mit der Methode PdfDocument.LoadFromFile(filePath).
  • Initialisieren Sie eine Instanz der Klasse „XlsxLineLayoutOptions“ im Klassenkonstruktor und legen Sie den ersten Parameter „convertToMultipleSheet“ auf „false“ fest.
  • Legen Sie PDF-zu-XLSX-Konvertierungsoptionen mit der Methode PdfDocument.ConvertOptions.SetPdfToXlsxOptions(XlsxLineLayoutOptions) fest.
  • Speichern Sie das Dokument mit der Methode PdfDocument.SaveToFile(filePath, FileFormat.XLSX) in Excel.
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample1.pdf");
    
                //Initialize an instance of XlsxLineLayoutOptions class, in the class constructor, setting the first parameter - convertToMultipleSheet as false.
                //The four parameters represent: convertToMultipleSheet, showRotatedText, splitCell, wrapText
                XlsxLineLayoutOptions options = new XlsxLineLayoutOptions(false, true, true, true);
                //Set PDF to XLSX convert options
                pdf.ConvertOptions.SetPdfToXlsxOptions(options);
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToOneExcelSheet.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Beantragen Sie eine temporäre Lizenz

Wenn Sie die Bewertungsmeldung aus den generierten Dokumenten entfernen oder die Funktionseinschränkungen beseitigen möchten, wenden Sie sich bitte an uns Fordern Sie eine 30-Tage-Testlizenz an für sich selbst.

Siehe auch

Friday, 21 July 2023 02:29

C#/VB.NET: Convertir PDF a Excel

Instalado a través de NuGet

PM> Install-Package Spire.PDF

enlaces relacionados

PDF es un formato de archivo versátil, pero es difícil de editar. Si desea modificar y calcular datos PDF, la conversión de PDF a Excel sería una solución ideal. En este artículo, aprenderá cómo convertir PDF a Excel en C# y VB.NET usando Spire.PDF for .NET.

Instalar Spire.PDF for .NET

Para empezar, debe agregar los archivos DLL incluidos en el paquete Spire.PDF for .NET como referencias en su proyecto .NET. Los archivos DLL se pueden descargar desde este enlace o instalar a través de NuGet.

PM> Install-Package Spire.PDF

Convierta PDF a Excel en C# y VB.NET

Los siguientes son los pasos para convertir un documento PDF a Excel:

  • Inicialice una instancia de la clase PdfDocument.
  • Cargue el documento PDF usando el método PdfDocument.LoadFromFile(filePath).
  • Guarde el documento en Excel usando el método PdfDocument.SaveToFile(filePath, FileFormat.XLSX).
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample.pdf");
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToExcel.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Convierta un PDF de varias páginas en una hoja de cálculo de Excel en C# y VB.NET

Los siguientes son los pasos para convertir un PDF de varias páginas en una hoja de cálculo de Excel:

  • Inicialice una instancia de la clase PdfDocument.
  • Cargue el documento PDF usando el método PdfDocument.LoadFromFile(filePath).
  • Inicialice una instancia de la clase XlsxLineLayoutOptions, en el constructor de la clase, configurando el primer parámetro, convertToMultipleSheet, como falso.
  • Configure las opciones de conversión de PDF a XLSX mediante el método PdfDocument.ConvertOptions.SetPdfToXlsxOptions(XlsxLineLayoutOptions).
  • Guarde el documento en Excel usando el método PdfDocument.SaveToFile(filePath, FileFormat.XLSX).
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample1.pdf");
    
                //Initialize an instance of XlsxLineLayoutOptions class, in the class constructor, setting the first parameter - convertToMultipleSheet as false.
                //The four parameters represent: convertToMultipleSheet, showRotatedText, splitCell, wrapText
                XlsxLineLayoutOptions options = new XlsxLineLayoutOptions(false, true, true, true);
                //Set PDF to XLSX convert options
                pdf.ConvertOptions.SetPdfToXlsxOptions(options);
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToOneExcelSheet.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

Solicitar una Licencia Temporal

Si desea eliminar el mensaje de evaluación de los documentos generados o deshacerse de las limitaciones de la función, por favor solicitar una licencia de prueba de 30 días para ti.

Ver también

Friday, 21 July 2023 02:28

C#/VB.NET: PDF를 Excel로 변환

NuGet을 통해 설치됨

PM> Install-Package Spire.PDF

관련된 링크들

PDF는 다목적 파일 형식이지만 편집하기가 어렵습니다. PDF 데이터를 수정하고 계산하려면 PDF를 Excel로 변환하는 것이 이상적인 솔루션입니다. 이 기사에서는 다음을 수행하는 방법을 배웁니다 C# 및 VB.NET에서 PDF를 Excel로 변환 Spire.PDF for .NET 사용.

Spire.PDF for .NET 설치

먼저 Spire.PDF for .NET 패키지에 포함된 DLL 파일을 .NET 프로젝트의 참조로 추가해야 합니다. DLL 파일은 다음에서 다운로드할 수 있습니다 이 링크 또는 NuGet을 통해 설치됩니다.

PM> Install-Package Spire.PDF

C# 및 VB.NET에서 PDF를 Excel로 변환

다음은 PDF 문서를 Excel로 변환하는 단계입니다.

  • PdfDocument 클래스의 인스턴스를 초기화합니다.
  • PdfDocument.LoadFromFile(filePath) 메서드를 사용하여 PDF 문서를 로드합니다.
  • PdfDocument.SaveToFile(filePath, FileFormat.XLSX) 메서드를 사용하여 문서를 Excel에 저장합니다.
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample.pdf");
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToExcel.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

C# 및 VB.NET에서 다중 페이지 PDF를 하나의 Excel 워크시트로 변환

다음은 다중 페이지 PDF를 하나의 Excel 워크시트로 변환하는 단계입니다.

  • PdfDocument 클래스의 인스턴스를 초기화합니다.
  • PdfDocument.LoadFromFile(filePath) 메서드를 사용하여 PDF 문서를 로드합니다.
  • 클래스 생성자에서 XlsxLineLayoutOptions 클래스의 인스턴스를 초기화하고 첫 번째 매개 변수인 convertToMultipleSheet를 false로 설정합니다.
  • PdfDocument.ConvertOptions.SetPdfToXlsxOptions(XlsxLineLayoutOptions) 메서드를 사용하여 PDF를 XLSX로 변환 옵션을 설정합니다.
  • PdfDocument.SaveToFile(filePath, FileFormat.XLSX) 메서드를 사용하여 문서를 Excel에 저장합니다.
  • C#
  • VB.NET
using Spire.Pdf;
    using Spire.Pdf.Conversion;
    
    namespace ConvertPdfToExcel
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Initialize an instance of PdfDocument class
                PdfDocument pdf = new PdfDocument();
                //Load the PDF document
                pdf.LoadFromFile("Sample1.pdf");
    
                //Initialize an instance of XlsxLineLayoutOptions class, in the class constructor, setting the first parameter - convertToMultipleSheet as false.
                //The four parameters represent: convertToMultipleSheet, showRotatedText, splitCell, wrapText
                XlsxLineLayoutOptions options = new XlsxLineLayoutOptions(false, true, true, true);
                //Set PDF to XLSX convert options
                pdf.ConvertOptions.SetPdfToXlsxOptions(options);
    
                //Save the PDF document to XLSX
                pdf.SaveToFile("PdfToOneExcelSheet.xlsx", FileFormat.XLSX);
            }
        }
    }

C#/VB.NET: Convert PDF to Excel

임시 면허 신청

생성된 문서에서 평가 메시지를 제거하거나 기능 제한을 제거하려면 다음을 수행하십시오 30일 평가판 라이선스 요청 자신을 위해.

또한보십시오