Search Results for 'image to pdf'

Convert an image to PDF programmatically

Converting an image to PDF is simple using Debenu 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 […]

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

Extract images from PDF files as the appropriate image type

Sometimes it’s necessary to extract images from PDF files and save them to disk. When this happens you’ll most likely want to save the image data back into the image format that it was originally in before it was added to the PDF. This can be tricky at times because some image formats such as […]

Can I insert an image into a PDF form field?

No, Debenu Quick PDF Library and Debenu PDF Tools do not support inserting images into PDF form fields.

Add images to PDF programmatically

Adding images to PDF files is simple using the PDF API available with Debenu 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 […]

Large PDF file size after adding PNG image using AddImageFromStream

The PDF specification supports JPEG data directly, so you can just put the JPEG directly into the PDF. But it doesn’t support PNG data directly so the image data must be read out of the PNG image and only the necessary parts added into the PDF. For the image data itself, the way a PNG […]

Control the compression of JPG images during conversion to PDF

The quality level of JPG images during conversion can be controlled using the SetJPEGQuality function. A number between 1 and 100 indicating the quality of the image. The higher the value, the better the image quality, but the larger the file size. The lower the value, the smaller the resulting file size, but at the expense […]

Render a PDF as an image with an asymmetrical DPI

The current rendering engine is set up to use the same DPI setting for both the horizontal and vertical axis. So it isn’t possible to render an image with an asymmetrical DPI, however, it is possible to get the same effect though by stretching the page. Here’s some pseudo code that shows how to do […]

Why does the border feature for text stamps, work differently to image and PDF stamps? I want to place text inside a box like my image stamp.

For text stamps, inserting a border results in a line being created around all characters individually, instead of actually including a border around the whole text stamp.

When extracting an image with ARTS PDF Aerialist X Pro, the resolution of this image is changing to 96 dpi. Why is this happening?

Extracted images are resized to the system resolution (on Windows this is 96 dpi, on Macintosh this is 72 dpi). The extracted image contains all of the image data, but if these images are placed/opened in a page layout or an external image editing application the size will appear larger than it was in the […]