Search Results for 'sample code'

Programmatically impose multiple pages on one page (imposition)

There is not a single “imposition” function in Debenu 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 […]

Get embedded image coordinates from PDF files

Debenu Quick PDF Library lets you analyze, extract and replace embedded images in PDF files using the extensive image handling functions. The GetPageImageList function returns an ImageListID which you can use in the GetImageListItemDblProperty function. With this function you can get the coordinates for each image in the image list. The GetImageListItemIntProperty function useful for […]

Programmatically convert EMF to PDF

The ImportEMFFromFile function is designed specifically for importing EMF and WMF file formats. Delphi sample code provided below demonstrates how to use this function. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 procedure TForm2.btnImportEMFFromFileClick(Sender: TObject); var FileName: string; […]

ASP.NET Web Site Projects and Debenu Quick PDF Library

Debenu Quick PDF Library can be used in ASP.NET Website projects to add rich PDF features to websites. 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 Website project and a ASP.NET Web Application project. This article deals with ASP.NET Website […]

How to use rendering and printing add-on with Debenu Quick PDF Library

Debenu Quick PDF Library has a new rendering and printing add-on which provides much improved support for transparency, shading patterns and tiling patterns when rendering and printing PDF files. This new rendering engine is part of Debenu Quick PDF Library. It is a separate DLL which will need to be copied, loaded and then called from within your […]

Custom printing options

Debenu Quick PDF Library can print PDF files to installed physical printers (e.g. Lexmark S300 Series) or virtual printers (e.g. Microsoft XPS Document Writer). If you do not need granular control over the printer settings then you can use the PrintDocument and PrintOptions functions. However, if you need to control exactly what is happening when the […]

Print existing PDF files to an installed printer

Debenu Quick PDF Library can print PDF files to an installed printer using the PrintDocument function. PDF files can be printed to any installed printer driver regardless of whether it is for a physical printer or a virtual printer such as Microsoft XPS Document Writer. There are a range of other printing related functions that […]

Hello world: your first PDF application with C#

This tutorial is for developers are are using Debenu 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 Debenu Quick PDF Library, this […]

Overlay one PDF onto another PDF programmatically

Debenu 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 […]

Programmatically add a watermark or stamp to a PDF

Adding an image as a watermark or a stamp on a PDF requires only a few lines of code using Debenu 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 // […]