Conversion from pcl into pdf using Aspose.pdf dll in C#.net

hi,

i’m converting pcl files into pdf file format using Aspose.pdf dll in C#.net

source code:

using Aspose.Pdf;

using System.IO;

namespace pcltopdf
{
class Program
{
static void Main(string[] args)
{
try
{
string dataDir = Path.GetFullPath(“D:\Printer files\Printer files\”);

Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();

Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + “HP_PCL5_WORD.prn”, loadopt);

doc.Save(dataDir + “tt-converted.pdf”);
Console.WriteLine(“success”);
}
catch (Exception)
{

Console.WriteLine(“error”);
}
}
}
}


result:
when i execute the program, the conversion is successful. but if any images or links related data available in pcl file then those won’t be converted into pdf format.

could you please provide me the solution for my issue as mentioned above if anyone knows?

thank you,
sai k.

Hi Sai,


Thanks for your inquiry. Please share a sample PCL file to replicate the issue. We will investigate the issue and will provide you information accordingly.

We are sorry for the inconvenience caused.

Best Regard,

hi,


please find the attached rar file which includes two pcl files.


please revert back me as soon as possible.



thank you,
sai k

Hi Sai,


Thanks for sharing the resource files.

I have tested the scenario using latest release of Aspose.Pdf for .NET 9.6.0 where I have used the code snippet which you have shared earlier and I am unable to notice any issue during conversion. For your reference, I have also attached the resultant PDF files generated over my end.