Developer Posts

Generate an invoice programmatically as a PDF

by Conor | February 17, 2014
Generating PDF files is easy using Foxit Quick PDF Library. In this example we will demonstrate how to programmatically create an invoice as a PDF. In this example we’ll use a range of functions to create the content for the page. The company logo is created using paths, but that section of code could be […]
Keep reading Keep reading

How to render PDF page to device context using Delphi

by Conor | January 31, 2014
In this post I would like to show you how easy it is to render a page from a PDF onto a graphic surface using Delphi and Foxit Quick PDF Library. The graphic surface in the Windows operating system is called a Device Context handle (DC). Foxit Quick PDF Library contains two different functions that can help […]
Keep reading Keep reading

Add images to PDF programmatically

by Qiming Wang | January 28, 2014
Adding images to PDF files is simple using the PDF API available with Foxit Quick PDF Library. The key functions involved when inserting an image into a PDF are the AddImageFromFile and DrawImage functions. The size of the image drawn onto the PDF is determined by the DPI value of the image (if present). The ImageHorizontalResolution and ImageVerticalResolution […]
Keep reading Keep reading

What happens if Foxit Quick PDF Library is not unlocked correctly?

by Conor | December 9, 2013
Atempting to use Foxit Quick PDF Library without a license key, with an expired trial license key or with an invalid license key, will result in the follow functions being being blocked: DAOpenFile GetInformation LoadFromStream LoadFromString MergeDocument NewDocument SaveToFile SaveToString SecurityInfo EncryptFile DecryptFile AnalyseFile MergeFiles MergeStreams MergeFileListFast ExtractFilePageContent ExtractFilePageText ExtractFilePages GetFileMetadata Check the result of the […]
Keep reading Keep reading

Hello world: your first PDF application with C#

by Conor | December 9, 2013
This tutorial is for developers are are using Foxit Quick PDF Library with C# for the first time. To begin with add a button to your Windows Forms Application. Double-click the button to add an OnClick event, and fill in the following event code. Lets start. Create an instance of Foxit Quick PDF Library, this line of […]
Keep reading Keep reading

Overlay one PDF onto another PDF programmatically

by Conor | November 28, 2013
Foxit Quick PDF Library makes it easy to copy a page from one PDF and draw that page onto one or more pages in a different PDF. This is very useful for when you have a template such as a letterhead that needs to be applied to all pages in a PDF before it is sent […]
Keep reading Keep reading

Programmatically add a watermark or stamp to a PDF

by Conor | November 27, 2013
Adding an image as a watermark or a stamp on a PDF requires only a few lines of code using Foxit Quick PDF Library. Here’s some C# sample code: /* Add an image watermark or stamp to an existing PDF document */ // Load a sample file from disk. We'll place the image // onto this […]
Keep reading Keep reading

Can I print to different printer trays?

by Conor | November 27, 2013
Foxit Quick PDF Library does not currently let you print to different printer bins or paper trays during the same print job. You can assign different print jobs to different printer bins or paper trays, but you can’t assign the one print job to different outputs depending on which page is being printed. This article […]
Keep reading Keep reading

Why is the Foxit Quick PDF Library installer around 100 MB?

by Conor | November 21, 2013
Don’t worry, the installer for Foxit Quick PDF Library might be around 100 MB these days but the binaries that you will need to distribute with your application are much smaller. The reason the installer is so big is that it includes: 4 different Editions of the library (Delphi, ActiveX, DLL, LIB) The Delphi Edition includes […]
Keep reading Keep reading
Used everywhere

Trusted by