Extract text from PDFs as a text block list

Debenu Quick PDF Library provides an extensive API for programmatically extracting text from PDF files. This includes the options of just plain text output and also returning the text in a formatted CSV string with details about the font, size and style of the text. The API now includes additional text extraction functions for extracting […]

Memory Management and the DLL and LIB editions of Debenu Quick PDF Library

The creation and release of memory buffers are handled automatically in most scenarios by the DLL and LIB editions of Debenu Quick PDF Library. There is an internal buffer where all string results are stored. The AnsiStringResultLength function can be called to get the length of this buffer. This function returns the length of the […]

Incremental Updates in PDF files

Incremental updates provide a method for updating a PDF file without completely re-writing it, according to the PDF specification (1.7), incremental updates work like this: The contents of a PDF file can be updated incrementally without rewriting the entire file. Changes are appended to the end of the file, leaving its original contents intact. This […]

Extract paths from a PDF

Debenu Quick PDF Library does not currently support the extraction of path information. However, the GetContentStreamToString function will extract the content stream which contains all of the drawing commands. You would need to parse the content stream to extract the paths as well as processing transformations including rotation and scaling. Here is the contents of […]

Programmatically find and replace URL links in PDF files

Debenu Quick PDF Library has an extensive API for programmatically working with links in PDF files. In the sample code below we demonstrate how to find all URLs in a PDF and then check to see if it matches our predefined URL and if it does then we replace it. This sample just works with […]

Controlling the precision of numeric values in PDF files

Debenu Quick PDF Library includes a function called SetPrecision which allows you to control the precision of numeric values in PDF files. In a PDF all numeric values are stored as strings. So using a smaller precision would mean a number takes up less characters in the file. If a PDF has a lot of […]

Setup Android Studio and Debenu Quick PDF Library

This tutorial demonstrates how to use Debenu Quick PDF Library to create an Android app using Android Studio. If you haven’t already downloaded the Android trial then you can do that from the trial here. Setup Android Studio project with Debenu Quick PDF Library Open Android Studio. If Quick Start window is displayed then click […]

Create an emulator for testing in Android Studio

This article is intended for users of Debenu Quick PDF Library for Android. The Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator. It comes as an optional download when you install Android Studio. Please note: […]

Known Issue: Some Greek characters not displayed properly when using Symbol font

Some Greek characters are not shown correctly after creating a PDF from a canvas device context (GetCanvasDC, LoadFromCanvasDC and NewPageFromCanvasDC) when using the Symbol font. If another font such as Arial is used then all of the characters display correctly.

Converting Pixels and Inches to PostScript Points

Pages in a PDF use points (1/72 of an inch) as the default measurement units with the origin or the coordinate system at the bottom left corner of the page. So there is a constant 72 involved in calculations when converting to or from points in PDF. This is the ratio of the “points” measurement units […]