Hi,
I need to convert TIFF to PDF. The source is Stream and PDF should be saved to Stream.
I am using code below. When I finally save the PDF the file size is 0. When I am using CreateGdPictureImageFromFile and SaveAsPDF everithing works fine.
What is wrong?
Stream tiffIn = ...
Stream pdfOut= new MemoryStream();
...
srcImageID = oGdPictureImaging.CreateGdPictureImageFromStream(tiffIn);
...
conversionStatus = oGdPictureImaging.SaveAsPDFStream(srcImageID, ref pdfOut, false, "", "The Company", "", "", "Document Converter");
...
Oleg
How to convert Tiff to PDF from Stream to Stream?
Re: How to convert Tiff to PDF from Stream to Stream?
Hi Oleg,
Please, could you give us full code snippet ?
I need to know what there is in "..."
Kind regards,
Loïc
Please, could you give us full code snippet ?
I need to know what there is in "..."
Kind regards,
Loïc
Re: How to convert Tiff to PDF from Stream to Stream?
Sorry. I found solution myself. I forgot to call pdfOut.Close(); before dispose the stream. Without that stream does not flush a data.
Oleg
Oleg
Who is online
Users browsing this forum: No registered users and 2 guests