C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-06-2006, 03:22 PM   #1
Unregistered User
 
Join Date: Sep 2005
Location: Antarctica
Posts: 341
A free TIFF to PDF library

Hey guys (and gals!), I've been working on a little API for making a PDF out of TIFF files and would like some feedback on it. Also, if you could tell me anything you would find useful added to it. I'm thinking of making it support other formats too, but that's for future development...

Here's a link to my page on it: http://www.dreamsyssoft.com/tiff-to-pdf-api/

Here's how you would use it in your code:

Code:
//Create a PDF object for tiff 2 pdf conversion...
PDF_HANDLE hPdf = DSSPDF_New("My PDF", "Rocky's Producer");

//Create a section (bookmark in the pdf) and add 2 pages to it.
SECTION_HANDLE hSec = DSSPDF_AddSection(hPdf, "Section 1");
DSSPDF_AddFilePage(hSec, "c:\\test1.tif");
DSSPDF_AddFilePage(hSec, "c:\\test2.tif");

//Create another section and add 2 pages to it.
hSec = DSSPDF_AddSection(hPdf, "Section 2");
DSSPDF_AddFilePage(hSec, "c:\\test3.tif");
DSSPDF_AddFilePage(hSec, "c:\\test4.tif");

//Save the PDF
DSSPDF_Save(hPdf, "c:\\test.pdf");

//Free the PDF data (this includes all the sections as well).
DSSPDF_Free(hPdf);
I will probably make a C++ wrapper for it as well, the actual implementation of the API is done in C++ anyway.
__________________
-- Rocky
-- DreamSys Software (http://www.dreamsyssoft.com)
-- Free Tiff 2 PDF Library (http://www.dreamsyssoft.com/tiff-to-pdf-api)
rockytriton is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile for a library sirmoreno Linux Programming 5 06-04-2006 04:52 AM
Program that displays amount of free memory trancedeejay Linux Programming 3 01-13-2006 01:27 PM
difference between dynamic link library and static library studentc C Programming 19 01-12-2006 11:04 AM
very weird .h problem royuco77 C++ Programming 1 09-11-2005 07:55 AM
Free MIT courses via web. Justin W A Brief History of Cprogramming.com 4 11-15-2001 09:41 PM


All times are GMT -6. The time now is 08:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22