Developer Posts

Get list of available paper trays for printer

by Conor | September 14, 2012
In order to get a list of the available paper trays for a printer you need to use the GetPrinterBins function in Foxit Quick PDF Library. This function will return a list of the available paper trays and associated values. You can then use the returned value with the SetupCustomPrinter function to print your documents […]
Keep reading Keep reading

Merge PDF files together programmatically

by Conor | September 14, 2012
Foxit Quick PDF Library supports the merging of two or more PDF documents into one PDF document. The primary functions available for this task are MergeDocument, MergeFileList and MergeFileListFast. The function that you use for merging will depend on what your exact requirements are. Merge a list of PDF files If you want to merge […]
Keep reading Keep reading

Create a multi-page PDF from a multi-page TIFF programmatically

by Conor | September 14, 2012
Using Foxit Quick PDF Library you can programmatically convert a multi-page TIFF image to a multi-page PDF. Here is some C# sample code that shows you how it’s done. The size of the image drawn onto the PDF is determined by the DPI value of the image (if present). The ImageHorizontalResolution and ImageVerticalResolution functions return […]
Keep reading Keep reading

Convert an image to PDF programmatically

by Conor | September 14, 2012
Converting an image to PDF is simple using Foxit Quick PDF Library. The key functions involved are AddImageFromFile and DrawImage. The size of the image drawn onto the PDF is determined by the DPI value of the image (if present). The ImageHorizontalResolution and ImageVerticalResolution functions return the necessary DPI information. PNG and GIF image files do not […]
Keep reading Keep reading

Can I embed a file in a PDF using Foxit Quick PDF Library?

by Conor | September 14, 2012
Yes, you can easily embed a file in a PDF using the EmbedFile function. This will embed the file (any file type) in a PDF document and then make that file accessible from within the PDF via the attachment panel. This C# sample code demonstrates how easy it is to embed a file within a […]
Keep reading Keep reading

Set font color of new text

by Conor | September 11, 2012
The SetTextColor function can be used to set the color of text drawn using the DrawText function. // Set text color to red. QP.SetTextColor(255, 0, 0); QP.DrawText(50, 50, "Red colored text"); Foxit Quick PDF Library can only control the color of text that is being drawn using the DrawText function. It cannot change the color […]
Keep reading Keep reading
Used everywhere

Trusted by