Hi,
I am using TIFFReadRawStrip from LibTIFF to read raw data from a TIFF image and store it into a buffer. So, the pure data is read. None of the TIFF tags, only image data in COMPRESSION_CCITTFAX4 format.
The problem is that I'm trying to use DrawCCITT method from wPDF and it is not working. The raw data are written in the PDF but when I try to open it, an error message appears saying that there are problems with the PDF and the image is not showed.
Here is part of code:
//_rInfoTIFF.Image is a PChar buffer.
// pageWidth = imageWidth; pageHeight = imageHeight
_rPDFPrinter.DrawCCITT(0, 0, pageWidth, pageHeigth , imageWidth, imageHeigth, wpCCITT_42D, _rInfoTIFF.Image, _rInfoTIFF.BufSize);
The buffer is correctly filled. Databuffer is written into pdf file.
Am I doing something wrong?