Create PDF from TIF mulipage

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

mr_steph
User
Posts: 52
Joined: Tue Jul 22, 2008 8:18 am

Create PDF from TIF mulipage

Post by mr_steph »

Hello,

I use PDF Tools for create a PDF from TIF multipage.
all pages of TIF are loaded in _PXCImage array with the follow code :


_PXCImage *pImage = NULL;
_PXCPage *page = NULL;

hr = PXC_AddImageExA(PdfCreate, Source, NULL, 0);
if (IS_DS_FAILED(hr)) {
return -1;
}
DWORD PageCount = hr;
pImage = new _PXCImage[PageCount];
if (!pImage) {
delete[] pImage;
return -1;
}
hr = PXC_AddImageExA(PdfCreate, Source, &pImage,PageCount);
if (IS_DS_FAILED(hr)) {
delete[] pImage;
return -1;
}

How can i use this array to call the PXC_AddPage and PXC_PlaceImage functions?

Other question : how can i compress the pages or the PDF?

Thanks.

Stéphane
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Create PDF from TIF mulipage

Post by Tracker Supp-Stefan »

Hello Stéphane,

Which programming language are you using?
There should be samples showing how to do the conversion from multi page TIFFs to PDFs in the PDF Tools SDK folder:
C:\Program Files\Tracker Software\PDF-Tools 4 SDK\Examples\SDKExamples\<<YOUR PROGRAMMING LANGUAGE>>

Best,
Stefan
Tracker