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

Free Support Forum - aspose.com

Does BarCodeReader work with PDFs?

Can I open a *.pdf file with the BarCodeReader? I’m currently trying to run this bit of code and getting an exception “Parameter is not valid.” When I look at the exception detail I see that the error is coming from System.Drawing.SafeNativeMethods.Gdip.CheckStatus, at System.Drawing.Bitmap.ctor.

using (BarCodeReader barCodeReader = new BarCodeReader(fileName, DecodeType.AllSupportedTypes))
  		foreach (BarCodeResult result in barCodeReader.ReadBarCodes())

You may please refer to the following article which provides details and sample code to read Barcode from PDF.
How to Read Barcode from PDF Documents