Tutorials

Resources

Share

ATTENTION: A new version of this library is available that supports JPG (JPEG), BMP, TIFF and text as well! It can be used for for jpeg2pdf, jpg2pdf, bmp2pdf, tiff2pdf conversions, and creating text only pages as well as text overlays on your images! Please view the page for the Image to PDF Library instead of this page!

The DreamSys PDF API is a DLL that can convert TIFF images into a PDF. You can create multiple chapters (PDF Section) to organize your images, this will create bookmarks in the PDF to link to specific pages. The API is written in C++, but can be used in an application written in C, C++, C#, VB, Java or any other language that allows you to import functions from a DLL.
The API will not load the actual TIFF data into memory until it is time to write that TIFF to the file, so it can handle very large PDFs while using very little memory.
This API is also thread safe, you can create multiple PDFs on separate threads and they will not conflict.

You can freely use this API in your own programs as long as they are public and freely available. If you want to use this code in your own business applications, you can for a small fee, contact us for details.
The source code is also available for purchase if you wish, please contact us for details on this as well!

If there are any features that you have in mind, or any bugs that you find, please post about them in the forum for this library by clicking here!

The API is written so that it can be used in C code as well, so it is exported as a C API. The API is very simple to use and flexible as well. Here is a quick example of how to use it in your code:

If you have need of a more flexible way of loading your TIFF files, you can call the function DSSPDF_AddPage and use the TIFF_DATA data structure. The function DSSPDF_AddFilePage makes use of this. Remember, you must make this code threadsafe if you want the API to remain thread safe! As an example of how to use this method, I will show you the implementation of the AddPage function.