Desktop Products:

Process Automation:

Software Development:

PDF to Word Converter Customers

Solid Framework Code Sample

This is a concise sample to help get started with Solid Framework SDK

Extracting Text from Model - C++ Sample Application

The Solid Framework Core Model is our in-memory model of the reconstructed content of your PDF file. We reconstruct clean Unicode text, in reading order, and provide the bounds of the major text blocks as per their position in the original PDF layout.

Typically, we then export from this model to another format like Word .docx but this sample shows you how to iterate this model programmatically in-memory.

The sample outputs two files:

  • a text file that includes the bounding box coordinates and text for each of the text blocks.
  • an HTML file that visually illustrates the different bounding rectangles for all the text blocks/paragraphs in the PDF.

The source code and SDK for this sample is provided in the form of a zip file, the project file below and the Solid Framework C++ for Windows SDK zip file, available from the developer portal (self-service).

Steps to Extracting Text from Model - C++ Sample Application

  1. Create a directory like C:\SampleCode and download and extract the sample project into your new directory. Download the (6KB)
  2. Create a free portal account, download the Solid Framework C++ for Windows SDK and generate a Developer SDK license. Download and extract the Solid Framework Native SDK into your new directory. Note:It must be in the same directory as
  3. Extract the .zip file above and the x86 or x64 Solid Framework C++ for Windows zip file from the developers portal (without editing the path names) into your new directory).
  4. Open TextBounding.sln in Visual Studio.
  5. Right click on the project and select Rebuild.
  6. Open a cmd window and navigate to your project's Debug folder where the .exe file of the project is. i.e cd C:\SampleCode\Debug.
  7. Type in the name of your .exe file followed by the paths to the following files:
    • Your license.xml file
    • The pdf file to parse
    • Path to where you want your .html file to be saved to
    • Path where you want your .txt file to be saved to
    i.e. TextBounding.exe C:\SampleCode\license.xml C:\SampleCode\YourPDF.pdf C:\SampleCode\layout.html C:\SampleCode\layout.txt
  8. Press Enter. You can then view the .html file which visually illustrates the reconstructed text blocks/paragraphs and their bounds.


Site Map
©2000-2017 Solid Documents Limited - All Rights Reserved