Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

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

$
0
0
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.


Viewing all articles
Browse latest Browse all 3131

Trending Articles