Good Morning,
We have a problem converting multipage TIFF to PDF.
When we perform a conversion of a multi-page tiff image to PDF, only the first page is displayed. We tried different things, but always with negative results. Aspose.Pdf version we are using is the 4.7.
We searched all the threads that refer this issue and none of the solutions has helped us.
This is the code we're using:
string outDir = @"C:\BizTalk\SCO.Sistemas.BizTalk\SCO.Sistemas.BizTalk.IndexadorGD\Port\";
Aspose.Pdf.License licpdf = new Aspose.Pdf.License();
licpdf.SetLicense("Aspose.Total.lic");
//Instantiate a Pdf object
Aspose.Pdf.Pdf pdf1 = new Aspose.Pdf.Pdf();
FileStream fs = new FileStream(@"C:\BizTalk\SCO.Sistemas.BizTalk\SCO.Sistemas.BizTalk.IndexadorGD\Port\Multi TIF.TIF", FileMode.Open);
fs.Read(tmpBytes, 0, Convert.ToInt32(fs.Length));
StreamReader mystream = new StreamReader(fs);
Aspose.Pdf.Section sec1 = pdf1.Sections.Add();
Aspose.Pdf.Image image1 = new Aspose.Pdf.Image(sec1);
image1.ImageInfo.ImageFileType = Aspose.Pdf.ImageFileType.Tiff;
image1.ImageInfo.TiffFrame = -1;
sec1.Paragraphs.Add(image1);
image1.ImageInfo.ImageStream = mystream.BaseStream;
//Save the Pdf
pdf1.Save(outDir + "OutputFile.pdf");
We have also tried with: image1.ImageInfo.IsAllFramesInNewPage = True. When we do this only the first page is still being converted and the rest appear in blank.
Thanks in advance,
Guillermo Tato