BW TIF to PDF Conversion

Discussions about PDF management.
Post Reply
edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

BW TIF to PDF Conversion

Post by edlemus » Tue Feb 01, 2011 4:19 am

Hi,

I'm using this piece of code:

Code: Select all

int pdfHandle = gdImaging.PdfNewPdf(destPath, "", "", "", "", "");
            gdImaging.PdfSetCompressionForBitonalImage(pdfHandle, PdfCompression.PdfCompressionCCITT4);
            gdImaging.PdfSetCompressionForColorImage(pdfHandle, PdfCompression.PdfCompressionJPEG);
            gdImaging.PdfSetJpegQuality(pdfHandle, jpegQuality);
            for (int i = 1; i <= pageCount; i++)
            {
                gdImaging.TiffSelectPage(tiffHandle, i);
                gdImaging.PdfAddImageFromGdPictureImage(pdfHandle, tiffHandle, false, true);
            }
            gdImaging.PdfEndPdf(pdfHandle)
But every time I try to convert a 1 bit TIF, the application crashes on PdfAddImageFromGdPictureImage. With other bit depths there's no problem.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: BW TIF to PDF Conversion

Post by Loïc » Tue Feb 01, 2011 2:38 pm

Hi,

This is a known issue that we will urgently fixed into the next minor release; It will published within 24 hours.

Kind regards,

Loïc

edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Re: BW TIF to PDF Conversion

Post by edlemus » Fri Feb 04, 2011 1:58 am

Hi,

I've downloaded V 7.3.6 but it seems to me that this is not fixed yet or am I missing something?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: BW TIF to PDF Conversion

Post by Loïc » Sat Feb 05, 2011 1:45 am

Hi,

All is working fine for me.

Please create a ticket on https://www.gdpicture.com/support/getting-support-from-our-team attaching the image and a code snippet to reproduce the problem.

Kind regards,

Loïc

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: BW TIF to PDF Conversion

Post by Loïc » Sat Feb 05, 2011 2:07 am

Hi again,

OK we fond another issue with the CCITT4 encoder. Bad luck :(

We will release a fixed edition on next Monday.

Sorry for the inconvenient.

Loïc

edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Re: BW TIF to PDF Conversion

Post by edlemus » Sat Feb 12, 2011 11:56 pm

Hi,

Just to bring some feedback: this is working great now!

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: BW TIF to PDF Conversion

Post by Loïc » Sun Feb 13, 2011 1:22 am

Thank you very much for the return :)

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest