Posts

Showing posts from July, 2022

Extract the table from PDF in C#

Image
  PDF is a common file format in the office, and its application in work is becoming more and more common. Due to the high degree of integration and security and reliability of PDF files, editing content in PDF is a complex and difficult task. But what if we sometimes need to extract data or tables from it due to work needs? Don't worry, today I will introduce a method to extract table content from PDF through C#/VB.NET code. The following are the steps and codes I have organized for your reference. Programming Environment In this test, Free Spire.PDF for .NET is introduced into the program. The Spire.PDF.dll file can be referenced by:   Method 1: Download Free Spire.PDF for .NET locally, unzip it, and install it. After the installation is complete, find Spire.PDF.dll in the BIN folder under the installation path. Then open the "Solution Explorer" in Visual Studio, right-click "References", "Add Reference", and add a reference to the dll file...

Java: Find and Highlight Text in Word

Image
In daily work, if we want to highlight the key points, then highlight text is a good choice. Highlighted text is emphasized from a color perspective, making it easier to read for yourself or others. So today I will show you how to find and highlight text in a Word document through code in a Java program. The following are the ideas and steps I have organized, and the Java code is attached for your reference. Programming Environment First, you’re required to add the Spire.Doc.jar file as a dependency in your Java program. The JAR file can be downloaded from this link . If you use Maven, you can easily import the JAR file in your application by adding the following code to your project’s pom.xml file. <repositories>         <repository>             <id>com.e-iceblue</id>             <url>https://repo.e-ic...