How to convert PRN to PDF from C#?

Question: I'm trying the evaluation version of VeryPDF PCL Converter and I can't seem to figure out how to convert my prn  to PDF file. If I could get this to work I would definitely be interested in purchasing a developers license or SDK that I could use to convert these prn files I receive to pdf. I'm on a limited time frame so I'm trying many different products find a solution to my problem. The first company that can provide me with an answer that fits will get my business. Thank you very much for you time and I hope to hear back from you soon.

***********************************************************************************

Answer: According to your needs, you choose the right software: PCL Converter which can be used to convert PCL, PXL PRN and other printing file formats files to PDF fast and accurately. And for this software, there is also developer version and SDK version, which allows you to call it together with the C#. In the following part, I will give some examples.

Step 1. Download PCL Converter SDK Version

  • For uploading and downloading easily, we have compressed it to zip file. Once downloading finishes, please extract it to some folder and check the elements in it.
  • When you open it, there are many elements. But it is not hard to find the folder of example_C#_1 and example_C#_2. Open them then you can check the code and example in it.

Step 2. Run the conversion from C#

  • The following is the sample of C# from the extracted folder, please have a check.

#include <windows.h>
#include <string.h>
#include <stdio.h>
__declspec(dllexport)
int WINAPI VeryPDFPCLConverter(const char *lpCmd);
void main(int argc, char *argv[])
{
if(argc < 3)
return;
char szCmd[2048] = {0};
for (int i = 1; i < argc; i++)
{
strcat(szCmd, "\"")
strcat(szCmd, argv[i]);
strcat(szCmd, "\" ");

    }
printf("%s\n", szCmd);
VeryPDFPCLConverter(szCmd);

}

If  you need to know more, please check them in the download package. And there are more examples for VB and others.

For checking the result more easily, here I will try to convert PRN to PDF by GUI version. This software either can be use as command line software and GUI version software. The following snapshot is from the output PDF file converted from PRN.

output PDF from PRN

PCL Converter SDK was professionally designed to assist developers, the software programmers, to quickly add a PCL, PRN  conversion utility to your own applications. And under the SDK version, you can integrate our product with your application and distribute it with your own application royalty free. This version is good for company users as it allows software companies to integrate it into their own applications and redistribute it.During the converting of PRN to PDF, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
How to convert PRN to PDF from C#?, 10.0 out of 10 based on 1 rating

Related Posts

This entry was posted in PCL Converter and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!