Free PDF Library for Delphi Developers - Quick PDF Library LITE

Young woman using computer
Peopleimages / Getty Images

Are you developing a Delphi application with a task to do PDF document manipulations? Portable Document Format, PDF, is a file format created by Adobe for document exchange. While there are many (commercial) Delphi libraries designed to help you create PDF and/or manipulate PDF documents, if you only need to load an existing PDF document, get the information from it (number of pages, security, is it linearized) and even write some information to it (set page size, add text, add graphics), you might want to take a look at the Quick PDF Library Lite version.

Quick PDF Library Lite offers a subset of the functionality found in Quick PDF Library — a royalty-free PDF developer SDK.

What's more: Quick PDF Library Lite is available as an ActiveX component and works with C, C++, C#, Delphi, PHP, Visual Basic, VB.NET, ASP, PowerBASIC, Pascal or any other language that supports ActiveX.

Here's a short list of the supported functions in Quick PDF Library Lite (names would give you the clue of the actual usage): AddImageFromFile, AddLinkToWeb, AddStandardFont, DocumentCount, DrawImage, DrawText, FindImages, GetInformation, HasFontResources, ImageCount, ImageHeight, ImageWidth, Linearized, LoadFromFile, NewDocument, NewPage, PageCount, PageHeight, PageRotation, PageWidth, RemoveDocument, SaveToFile, SecurityInfo, SelectDocument, SelectedDocument, SelectFont, SelectImage, SelectPage, SetInformation, SetOrigin, SetPageSize, SetPageDimensions, SetTextAlign, SetTextColor, SetTextSize.

Note: the Lite version of Quick PDF Library comes as an ActiveX component. You need to register the ActiveX library with Windows, using the following command:
regsvr32 \QuickPDFLite0719.dll

Next, here's a simple usage example:

uses

 ComObj;

procedure TForm1.Button1Click(Sender: TObject);

var

 QP: Variant;

begin

 QP := CreateOleObject('QuickPDFLite0719.PDFLibrary');

 QP.DrawText(100, 500, 'Hello World!');

 QP.SaveToFile('c:\test.pdf');

 QP := Unassigned;

end;
Format
mla apa chicago
Your Citation
Gajic, Zarko. "Free PDF Library for Delphi Developers - Quick PDF Library LITE." ThoughtCo, Aug. 26, 2020, thoughtco.com/delphi-developers-quick-pdf-library-lite-3972284. Gajic, Zarko. (2020, August 26). Free PDF Library for Delphi Developers - Quick PDF Library LITE. Retrieved from https://www.thoughtco.com/delphi-developers-quick-pdf-library-lite-3972284 Gajic, Zarko. "Free PDF Library for Delphi Developers - Quick PDF Library LITE." ThoughtCo. https://www.thoughtco.com/delphi-developers-quick-pdf-library-lite-3972284 (accessed April 19, 2024).