PDF To tiff is not working well

Hello,

Please find attached pdf. When i tried to convert this pdf to tiff, it cant convert.

var tiffSettings = new TiffSettings
{

Compression = CompressionType.CCITT3,

Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp,

Shape = ShapeType.None,
SkipBlankPages = true

};

Hi,


Thanks
for using our API’s.<o:p></o:p>

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38094. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Waiting for your update… we have stuck for this issue

Hi,


Thanks for your patience.

As we recently have been able to notice this issue, so development team requires little time to investigate and figure out the actual reasons of this problem. Please note that as a normal rule of practice, all the issues are resolved in first come first serve basis. As soon as we have some further updates, we will let you know.

Hi,

We have lots of problems while converting pdf file to tiff image with below code.

using (Document pdfDocument = new Document(inputPDFFile))
{
	if (compressionType == CompressionType.LZW)
	{
		foreach (Page page in pdfDocument.Pages)
		{
			if (page.Annotations.Count > 0)
			{
				for (int an = 1; an <= page.Annotations.Count; an++)
				{
					if (page.Annotations[an].AnnotationType == Aspose.Pdf.Annotations.AnnotationType.FreeText)
					{
						try
						{
							Aspose.Pdf.Annotations.Border border = new Aspose.Pdf.Annotations.Border(page.Annotations[an]);
							border.Style = Aspose.Pdf.Annotations.BorderStyle.Underline;
							border.Width = 0;
						}
						catch (Exception ex) { ClsLibDMS.ErrorLog.LogError(ex); }
					}
				}
			}

			var saveName = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(outputMultipageTiff), System.IO.Path.GetFileNameWithoutExtension(outputMultipageTiff) + page.Number + System.IO.Path.GetExtension(outputMultipageTiff));

			using (FileStream imageStream = new FileStream(saveName, FileMode.Create))
			{
				GifDevice jpegDevice = new GifDevice(resolution);
				jpegDevice.Process(pdfDocument.Pages[page.Number], imageStream);
				imageStream.Close();
			}
		}
	}
	else if (compressionType == CompressionType.CCITT4)
	{
		var tiffSettings = new TiffSettings
		{
			Compression = compressionType,
			Shape = ShapeType.None,
			SkipBlankPages = false
		};

		var tiffDevice = new TiffDevice(resolution, tiffSettings);
		var pages = pdfDocument.Pages;

		var pgCount = pages.Count;
		foreach (Page page in pdfDocument.Pages)
		{
			if (page.Annotations.Count > 0)
			{
				for (int an = 1; an <= page.Annotations.Count; an++)
				{
					if (page.Annotations[an].AnnotationType == Aspose.Pdf.Annotations.AnnotationType.FreeText)
					{
						try
						{
							Aspose.Pdf.Annotations.Border border = new Aspose.Pdf.Annotations.Border(page.Annotations[an]);
							border.Style = Aspose.Pdf.Annotations.BorderStyle.Underline;
							border.Width = 0;
						}
						catch (Exception ex) { ClsLibDMS.ErrorLog.LogError(ex); }
					}
				}
			}

			var saveName = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(outputMultipageTiff), System.IO.Path.GetFileNameWithoutExtension(outputMultipageTiff) + page.Number + System.IO.Path.GetExtension(outputMultipageTiff));
			tiffDevice.Process(pdfDocument, page.Number, page.Number, saveName);
		}
	}
}

Please find attached pdf file.

Attached pdf file converted successfully but page 4, 9, 12 and 13 are illegible.

Please provide some solution.

Thank you.ISSUE ON PAGE 4, 9, 12 and 13.pdf (1.5 MB)

@serversupport,

Thanks for contacting support.

I have tested the scenario and have managed to replicate the above stated problems that text is not properly rendering when converting PDF pages to GIF or TIFF image format. It has been separately logged in our issue tracking system PDFNET-43146. We will further look into the details of these problems and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

Hello,

Any update on this. This become very critical for us.

@serversupport,

Thanks for your patience.

I am afraid the earlier reported issues are not yet resolved. However, the product team will surely consider investigating it as per their development schedule and as soon as we have some further updates, we will let you know

Hello Aspose Team,

Any Update on this. This issue is open since long.

@serversupport

Thank you for getting back to us.

We have tested source PDF file Conversion_Test.pdf for which the ticket PDFNET-38094 was logged. Aspose.PDF for .NET 18.7 successfully converts this file to a TIFF file. Generated TIFF file has been attached for your kind reference Conversion_Test_output.zip. Please share your kind feedback with us so that respective ticket may be closed.

Regarding PDFNET-43146, this ticket is still pending for investigations owing to previously logged and critical issues. We have recorded your concerns and its priority has been raised to next level. We really appreciate your patience and comprehension in this regard.

Hello Aspose,

Can you please provide the current status of the above mention issue.

Waiting for your positive reply.

Thank you.

@serversupport

We are afraid PDFNET-43146 is still pending for investigations. We will let you know as soon as some significant updates will be available. We really appreciate your patience and comprehension in this regard.

However, we also offer Paid Support, where issues are used to be investigated with higher priority. Our customers, who have paid support subscription, report their issue there which are meant to be investigated urgently. In case your reported issue is a blocker, you may please consider subscribing for Paid Support. For further information, please visit Paid Support FAQs.

Hi Aspose,
Can you please provide current status on the above mentioned issue.

@serversupport

We are afraid PDFNET-43146 is still unresolved owing to other tickets in the queue. We have recorded your concerns and will try to schedule it soon. We are thankful to you for your patience.

Hi Aspose,
Can you please provide current status on the above mentioned issue.

@serversupport

We regret to inform you that PDFNET-43146 is still pending because of other priority tickets in the queue. We really appreciate your patience and will let you know once any update will be available.

The issues you have found earlier (filed as PDFNET-38094) have been fixed in Aspose.PDF for .NET 20.3.

Hi,

Any update on PDFNET-43146 - Its open since more than 1 year.

@serversupport

We regret to share that the earlier logged ticket could not get investigated completely and we could not come up with a reliable ETA. However, your concerns have been recorded along with the ticket and they will be taken care of during investigation process. We will let you know in this forum thread as soon as the issue is fully investigated and resolved.

We humbly apologize for the inconvenience and delay.

The issues you have found earlier (filed as PDFNET-43146) have been fixed in Aspose.PDF for .NET 24.1.