Hi Team,
We are trying to convert the attached PDF to tiff and its converting without the proper dates in the pdf. Could you please help us with the same. Thank you
Sample_Dates_Missing.zip (114.5 KB)
Hi Team,
We are trying to convert the attached PDF to tiff and its converting without the proper dates in the pdf. Could you please help us with the same. Thank you
Sample_Dates_Missing.zip (114.5 KB)
Would you kindly share the sample code snippet as well that you have been using to convert the PDF to TIFF? We will test the scenario in our environment and address it accordingly.
Aspose.Pdf.Document pdf1 = new Document();
pdf1.Save(Path.Combine(Path.GetDirectoryName(FullInputFileName), Path.GetFileNameWithoutExtension(FullInputFileName) + “.pdf”));
Document pdfDocument = new Document(Path.Combine(Path.GetDirectoryName(FullInputFileName), Path.GetFileNameWithoutExtension(FullInputFileName) + ".pdf"));
//create Resolution object
Resolution resolution = new Resolution(300);
//create TiffSettings object
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.CCITT4;
if (tiffSettings.Shape == ShapeType.Landscape)
tiffSettings.Shape = ShapeType.Portrait;
tiffSettings.SkipBlankPages = false;
Stream output = null;
sourceImages = new System.Drawing.Image[pdfDocument.Pages.Count];
//create TIFF device
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
for (int page = 1; page <= pdfDocument.Pages.Count; page++)
{
output = new MemoryStream();
//tiffDevice.Process(pdfDocument, page, page, Path.Combine(OutputFolder, String.Concat(Path.GetFileNameWithoutExtension(FullInputFileName), ".",page.ToString().PadLeft(3, '0'))));
tiffDevice.Process(pdfDocument, page, page, output);
sourceImages[page - 1] = System.Drawing.Image.FromStream(output);
sourceImages[page-1].Save(Path.Combine(OutputFolder, String.Concat(Path.GetFileNameWithoutExtension(FullInputFileName), ".", page.ToString().PadLeft(3, '0'))));
output = null;
}
Please find the code above
We tested in our environment using 25.7/25.8 version of the API and could not replicate the issue that you have mentioned. We used your code snippet to generate the TIFF image and dates were present in the output. A generated output has also been attached for your kind reference.
Sample_Dates_Missing.pdf.001.zip (126.6 KB)
Would you please try using the latest version of the API and if you still notice any issues, please let us know.