Foxit Quick PDF Library

Converting Pixels and Inches to PostScript Points

by Conor | April 7, 2015
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 […]
Keep reading Keep reading

Can I compress my PDF?

by Conor | April 2, 2015
A PDF can’t be compressed like an image can be compressed. “PDF” is more of a container for various elements. So inside a PDF various things such as image data, font data, content data and so on can be compressed, but these have to be compressed separately. If you want to reduce the file size […]
Keep reading Keep reading

ASP.NET MVC Web Applications and Foxit Quick PDF Library

by Conor | April 1, 2015
Foxit Quick PDF Library can be used in ASP.NET MVC Web Application projects to add rich PDF features to web applications. It works in much the same way as it does for regular desktop or server applications. This tutorial is done using Visual Studio 2013 and C#, but the steps are mostly the same if […]
Keep reading Keep reading

ASP.NET Web Applications and Foxit Quick PDF Library

by Conor | April 1, 2015
Foxit Quick PDF Library can be used in ASP.NET Web Application projects to add rich PDF features to web apps. It works in much the same way as it does for regular desktop or server applications. Please note: there is a difference between a ASP.NET Web Site project and a ASP.NET Web Application project. This article deals with […]
Keep reading Keep reading

Merge content from multiple pages into one page

by Conor | March 31, 2015
Sometimes it’s necessary to customize the content of a document on the fly from templates. There’s various different ways this can be done, but one way is to have a template with different content on each page of a document and then based on certain criteria (i.e. content from page 1, 5, 8 is required […]
Keep reading Keep reading

Programmatically determine the content area of a page in a PDF

by Conor | March 31, 2015
It’s easy to determine the size of a page by using the PageHeight and PageWidth, but it’s a little more difficult to determine the rectangular content area of a page. There are functions in the library for returning the text coordinates such as GetPageText and there’s functions for determining the coordinates of images, but there’s […]
Keep reading Keep reading

Issue with Ricoh printers where PDFs come out in black and white instead of color

by Conor | March 29, 2015
Foxit Quick PDF Library uses the standard Windows DEVMODE structure for printing which is used by many other programs as well. Unfortunately the printer driver manufacturers don’t use the values specified in the DEVMODE structure and instead use custom undocumented values. This means that the SetupCustomPrinter function works for many drivers but not every driver. […]
Keep reading Keep reading

Extract text from a defined rectangular area on a page

by Conor | March 29, 2015
Foxit Quick PDF Library includes a range of functionality for extracting text from PDF files, but usually it’s for extract text from an entire page. The extract functions which include “area” in the name let you specify a rectangular area from which you wish to extract text. The key functions for this using regular memory […]
Keep reading Keep reading

Programmatically impose multiple pages on one page (imposition)

by Conor | March 27, 2015
There is not a single “imposition” function in Foxit Quick PDF Library but it’s easy to use the CapturePage and DrawCapturedPage functions to do the imposition. There is some sample code below that demonstrates how to take a few different PDFs, merge them together, and then impose each page onto one page in a new document. […]
Keep reading Keep reading
Used everywhere

Trusted by