[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Quartam Software Forums •Problem with Displaying PNG Files
Page 1 of 1

Problem with Displaying PNG Files

Posted: Thu May 05, 2011 11:35 pm
by richh
I have been using Quartam PDF Library 1.0.0 for a while now and have it successfully running in one of my apps that generates PDF reports. Today, I downloaded version 1.1.0 and found that when I attempt to display my graphics, they appear black. If I display them in the old version they display fine.

I have attached two png files that I am attempting to generate in a pdf report.

the code I am using is the following:

Code: Select all

set thte defaultFolder to specialFolderPath("Desktop")
put "importChart.png" into importChartPath

put qrtPDF_SetImageScale tDocRef, 60
qrtPDF_DrawImage tDocRef, 12,22,0,0 importChartPath
thank you in advance.

Re: Problem with Displaying PNG Files

Posted: Mon May 09, 2011 2:12 pm
by JanSchenkel
Hi Rich,

Thank you for reporting this problem.
A quick look inside the generated PDF file reveals that 1.1.0 thinks the image's ColorSpace is DeviceGray, instead of Indexed.

I think I have tracked it down to an error in the handler p_qrtPDF_LoadPNG.
Line 3686:

Code: Select all

put byteToNum(it) into tColorSpace
should be:

Code: Select all

put byteToNum(it) into tColorMethod
This fix will be included in version 1.1.1, due sometime this week (I'm also tracking down a problem with image handling on LiveCode Server)

Cheers,

Jan Schenkel.

Re: Problem with Displaying PNG Files

Posted: Sun May 22, 2011 3:37 pm
by JanSchenkel
Just to confirm that this issue was fixed in Quartam PDF Library version 1.1.1 - even if I forgot to include it in the release notes, heh :-)
You can download the latest update here: http://downloads.quartam.com/qrtpdflib_ ... atform.zip

Cheers,

Jan Schenkel.