eDocEngine VCL
Create documents and reports in 18 formats
Compatibility
Delphi C++Builder

How To Convert Image Files To PDF Using eDocEngine VCL

Do you want to convert image formats such as EMF, WMF, BMP and JPEG to PDF?
By R. Vyshakh and D. Ashwini

In this article, we will demonstrate how to use eDocEngine VCL to convert several image files to a single or multiple PDF documents.

Use gtPDFEngine component for creating PDF document

Set properties of gtPDFEngine for setting page size

...

gtPDFEngine1.Preferences.ProcessAfterEachPage := True;
gtPDFEngine1.MeasurementUnit := muPixels;

...

Page.PaperSize := Custom;
Page.Width := Image1.Picture.Width;
Page.Height := Image1.Picture.Height;

...

Render images to a single or multiple PDF files

The complete source code is available in downloads section.

---oO0Oo---

Downloads

Privacy | Legal | Feedback | Newsletter © 2002-2010 Gnostice Information Technologies Private Limited. All rights reserved.

This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows users are advised to use Microsoft ClearType Tuning for optimal experience. Linux and other users can enable font smoothing, as supported by their OS. Also, please use the latest version of a standards-compliant browser such as Opera, FireFox, Chrome or Safari.