We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

BindPCL Method


Can you please let me know what the BindPCL method, which is part of the Aspose.Pdf.Generator, does?

Other examples for the other Bind methods like BindXML make it look like you can “convert” the bound referenced document to a pdf object and then save. Do these methods allow you to convert from the Bind(whatever file format) method to Pdf ?

An other example:



Thanks for your interest in our products.

PCL is Printer Command Language is a Hewlett-Packard printer language has developed to access standard printer features and BindPCL(…) method in Pdf class of Aspose.Pdf.Generator namespace, provides the capability to to convert PCL5 files containing text, raster and vector graphics to PDF documents.

However Pdf class also provides following methods to convert various other file formats.

  • BindFO(…) method to convert XSL-FO files into PDF format. For more information, please visit Converting XSL-FO to PDF
  • BindHTML(…) method converts HTML into PDF format.
  • BindSvg(…) method converts SVG files into PDF format.
  • BindXML(…) method transforms XML file into PDF format. (Provided that the source XML file is in Aspose.Pdf for .NET supported format) Create a Hello World PDF document through XML

In case you have any further query, please feel free to contact.

Hi, thanks for the details.

I’m confused as I read in other posts that your Aspose.Pdf conversion utilities do not work with PCL files. When I saw the BindPCL method I decided to inquire further.

Regardless, I have already tried the BindXML example code working instead with BindPCL and a few different PCL files. The BindPCL method throws the following error: "Object reference not set…"

I know my PCL files are not the problem because they work with other PCL files readers and converters.

Could you please provide a working example using the BindPCL method?



Can you please share the source PCL files so that we can test the scenario at our end. We are sorry for this inconvenience.


This is the code I am using and the test PCL files are attached.

Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
//Bind PCL file into the document

//Save the document


Has there been any advancement or new development on this issue?

Is this a bug with the recent merge of your pdf and pdf.kit products?



Sorry for delay in response.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>

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-30791. We will investigate this
issue in details and will keep you updated on the status of a correction.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””><span style=“font-size:10.0pt;

We apologize for your inconvenience.


Sorry to be a pest. Is there any update on this yet? It would be very helpful if you could provide an estimate of when this might be resolved.



Our development team is working hard to get these issues fixed but I am afraid they are not yet completely resolved. However I have requested the team to share ETA regarding their resolution. Please be patient and spare us little time. Soon you will be updated with the status of correction. We are sorry for this delay and inconvenience.


We noticed an update to the Apose.Pdf product today but are still not sure when or if this bug will be fixed. The new version still throws the same “Object Not Set” error.

We really need to know if this will work and a rough estimate for when it will be fixed or we will need to purchase a Pcl to Pdf conversion utility from another vendor.

Could you please provide more details on the status of this ticket?

Thanks in advance.


Thanks for your patience.

As per my observations, when I have tried converting the PCL files that you have shared into PDF format using Aspose.Pdf for .NET 6.3.0, I am unable to notice any issue. The PDF documents are properly being generated with following code snippet. If you still encounter any problem, can you please confirm that you are using the same PCL files that you have already shared or, you are encountering issues while converting some other documents.

We are sorry for your inconvenience.

Pdf MYPDF = new Pdf();

PS, For your reference, I have also attached the resultant PDF documents that I have generated. Please take a look.

The issues you have found earlier (filed as PDFNEWNET-30791) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan