PXC_ScaleImage error 0x82032712

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

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

PXC_ScaleImage error 0x82032712

Post by mr_steph »

Hello,

i have an error 0x82032712 (invalid page format) when i used PXC_ScaleImage.
My code :

Code: Select all

        hr = PXC_AddImageFromHBITMAP(PdfCreate, HB, NULL, &pImage);
	if (IS_DS_FAILED(hr)) {
		return -1;
	}

	hr = PXC_ScaleImage(PdfCreate, pImage, 100, 200, FALSE, ScaleImage_Bicubic);
	if (IS_DS_FAILED(hr)) {
		delete[] pImage; 
		return -3;
	}

        hr = PXC_AddPage(PdfCreate, Width, Height, &page);
	if (IS_DS_FAILED(hr)) {
		delete[] pImage; 
		return -5;
	}

	hr = PXC_PlaceImage(page, pImage, 0, Height, Width, Height);
	if (IS_DS_FAILED(hr)) {
		delete[] pImage; 
		return -6;
	}

	hr = PXC_EndPage(page);
	if (IS_DS_FAILED(hr)) {
		delete[] pImage; 
		return -7;
	}
Thanks.

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

Re: PXC_ScaleImage error 0x82032712

Post by Tracker Supp-Stefan »

Hello Stéphane,

Did you make sure that your file is correctly created? Also is the PXC_AddImageFromHBITMAP method creating the image correctly?

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

Re: PXC_ScaleImage error 0x82032712

Post by mr_steph »

Yes, if i don't execute PXC_ScaleImage, the page is correctly added with the image.

Stephane
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PXC_ScaleImage error 0x82032712

Post by Tracker Supp-Stefan »

Hello Stéphane,

I just had a conversation with one of the Tools SDK devs, and he told me that "PXC_ScaleImage (same as IXC analog) cannot use bilinear or bicubic scale algorithm with page formats other that 8gray or 8RGB"

Regards,
Stefan
Post Reply