Hi Team,
Here i am trying to convert a tiff image to PDF.
But the pdf image after conversion is showing only half.
Can you please help me?
Here i am attaching the original tiff file and converted pdf file.
please see the below code.
//Instantiate a Pdf object by calling its empty constructor
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
//Create a section in the Pdf object
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
//Create an image object in the section
Aspose.Pdf.Generator.Image image1 = new Aspose.Pdf.Generator.Image(sec1);
//Add image object into the Paragraphs collection of the section
sec1.Paragraphs.Add(image1);
//Set the path of image file
image1.ImageInfo.File = FullInputFileName;
//Set the type of image using ImageFileType enumeration
image1.ImageInfo.ImageFileType = Aspose.Pdf.Generator.ImageFileType.Tiff;
pdf1.Save(Path.Combine(Path.GetDirectoryName(FullInputFileName), Path.GetFileNameWithoutExtension(FullInputFileName) + “.pdf”));
Regards
Anish