How to call PCL Converter SDK from C#? How to convert multi-page PCL file to multiple TIFF files?

I'm working with your PCL converter SDK trial download, and I'm having trouble figuring out how to use it the way I want to (I'm using C#).

Customer
--------------------------------------------------------------


PCL Converter SDK is contain some C# examples, you can compile and run these C# examples easily, we hoping these C# examples will work fine to you.

Please refer to a simple C# example from following web page,
-----------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

[DllImport(@"pcltoolsdk.dll", CharSet = CharSet.Auto)]
static extern uint VeryPDFPCLConverter([MarshalAs(UnmanagedType.LPStr)] string strCmdLine);

private void button1_Click(object sender, EventArgs e)
{
string strCmd;
strCmd = "-$ XXXXXXXXXXXXX C:\\test.pcl C:\\out.pdf";
uint nRet = VeryPDFPCLConverter(strCmd);
}
}
}
-----------------------------------------

VeryPDF
--------------------------------------------------------------
Thanks for your reply.

I did see these examples, but I was wondering if there is a way to convert the PCL files in memory (e.g. give the SDK a byte array that contains the PCL file and get a byte array that contains the PDF/PNG file, without ever touching the disk). I think I read that you did this as a custom solution on your forums, but I don't know if it was integrated into the release build. If this is possible, please let me know how.

Thanks,
Customer
--------------------------------------------------------------
Thanks for your message, the current version of PCL Converter SDK is not support "convert the PCL files in memory" function yet, however, we will try to implement this function in the future.

VeryPDF
--------------------------------------------------------------
Thank you.

We may be interested in this. If this were implemented

A) would it be possible to call the DLL and no separate process would be spawned? E.g. the sdk function is called and the conversion is handled on the current thread?

B) would it be possible to get a format for the resulting image in png/jpeg/tiff, or only in pdf format?

I would like to know the answer to these questions before consulting with my manager about this being a possible solution.

Thank you,
Customer
--------------------------------------------------------------
>>A) would it be possible to call the DLL and no separate process would be spawned? E.g. the sdk function is called and the conversion is handled on the current thread?

Yes, this is possible.

>>B) would it be possible to get a format for the resulting image in png/jpeg/tiff, or only in pdf format?

Yes, you can convert from PCL file to PNG, JPG and PDF formats, that's no problem.

VeryPDF
--------------------------------------------------------------
Thank you for the information. Right now, we will not be going this direction, but we will let you know if that changes.

As another question, I am having trouble with multipage print jobs. If I ask the converter to convert a two page print job, it only gives me the first page (using PNG). Is there a way to get it to print to multiple files, one for each page, using the PNG format or do I have to use TIF?

Thanks,
Customer
--------------------------------------------------------------
You can run following command line to convert your multi-page PCL file to multiple TIFF files, one TIFF file for one page in print job,

"C:\Program Files (x86)\VeryPDF PCL Converter v2.7\pcltool.exe" D:\downloads\ricoh.prn D:\downloads\ricoh-%d.tif

You can add "%d" to convert a multi-page PCL file to multiple TIFF files.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

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!