Get encoded barcode as string - c#

I am creating a web application (ASP.NET C#) where I need the encoded barcode text.
Example: EAN13 numbers: 460650003296. The output encoded barcode is then: Y(6A65AA*KNMTQT(
And that is the value I will need to have.
I have tried to use BarCodeLib and that it´s working great to generate barcodes images but I can´t find any way to get the encoded text, I have also tried KA Barcode but with the same result.
Does anyone have any experience in this libaries and if it´s possible to get the encoded text from them, or some other suggestion how I can get the encoded value?

I don't have any experience with this library that you are using. However, my company created a web application that use different commercial library for reading and writing 1-D barcodes (including the EAN13).
We started our web application using the following 2 tutorials:
Reading Barcodes
Writing Barcodes
You can get more details from their support team using this email:
support#leadtools.com

Related

Xamarin Form - How To store an image in PDF or JPEG Format in UWP

hello friends i am developing the DMS application in which user can scan the document or images through scanner and upload on server.
For scanning purpose i am refered this link it works perfectly..:)
Now problem is ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) this Method accepts the image format which is supported by scanner. my scanner only support the .BMP format but i want to store an image in PDF or JPEG Format in given folder name.
Else please suggest any free pdf package( dll). which accept multiple image format and convert to single pdf format and PDFSharp package support in uwp ?
thanks in advance :)
ScannerSettings _ScannerSettings = new ScannerSettings();
ImageScanner scanner = await ImageScanner.FromIdAsync(_settings.DeviceId);
scanner = _ScannerSettings.SetScannerSettings(scanner, _settings); // here i am trying to assigning the scanner settings with pdf or jpeg format.
var operation = scanner.ScanFilesToFolderAsync(AssignScannerType, folder); // it gives exception if i am passing the pdf or JPEG format in scanner settings because my scanner not support this format.
https://github.com/ststeiger/PdfSharpCore
is a port for .NET Core 1.6+
It doesn't use System.Drawing.dll.
It is based on PdfSharp 1.32 and has some missing and some half-working features.
https://github.com/ststeiger/PdfSharpNetStandard
Is for NetStandard 2.1+, and is based on PdfSharp 1.5.
Very few things are missing
(https://github.com/ststeiger/PdfSharpNetStandard/tree/master/PdfSharp_Removed
https://github.com/ststeiger/PdfSharpNetStandard/tree/master/MigraDoc_Rendering_Removed).
PdfSharpNetStandard should work work just like PdfSharp.
PdfSharpCore has changed PdfSharp to be based on the .NET-Core High-Performance implementations.
It should have a better/higher performance - in theory.

C# convert number to barcode and send to printer

As part of a project I need to convert a numer to a barcode, then send a list of those numbers (or barcodes depending when the conversion should be done) to a printer to be printed on small sticker labels.
So far I have the list I need, but 2 things I have never done before and would like poiners are:
How do you convert to a barcode, is there a plug-in, or can this be done within ASP.NET / C# without any 3rd party dll?
Once I have the make / model of the printer and the dimensions of the label, should I be looking for a plug-in for this, or try to create a template.
Thanks in advance

Cross platform rich text in C#

I come from a world (iOS and OSX) where saving a rich text string (NSAttributedString) to a file is easy (NSAttributedString can serialise itself as RTF or HTML etc.)
I'm now porting my app to Windows/C# and trying to figure out how to load/save RTF (so that my apps can share a file format)
It looks like I need to create a control (RichTextBox) in order to import RTF - which is OK for testing, but I need to read in thousands of rich text snippets so this is (probably) going to be a bit of a bottleneck.
How is this type of cross platform rich text format best achieved? I'm starting to think I will need to copy the .docx approach and create XML with textRun elements etc? This strikes me as a problem that must have been solved already - but google is not forthcoming!!
Thanks

How to recognize barcodes in a PDF file

I have a PDF file with n pages, I need to split it to n files. On each page I have barcode, I need to recognize/read barcode. If I have two files with the same barcode I need to merge them.
Can anyone recommend an .net component or exe or something else that will help me? It can be commercial.
I have tried:
itextsharp - only split and merge files
dotimage/aspose/idautomation - only recognize barcodes and it very expensive
a-pdf - not always recognize the barcode and not merge/split two files.
Thanks
YOu will need at least two and probably even 3 frameworks.
I would use itextsharp to write out the pdf.
You could look at pdfviewernet to read.
And I would look at vintasoft for a cheap(ish) barcodereader.
You may try Aspose.Pdf for .NET along with Aspose.BarCode for .NET in order to achieve your goal quite comfortably:
Split PDF pages
Recognize bar codes
Merge PDF files/pages into a single PDF file
Both of these components work for any .NET Framework version on both 32-bit/64-bit systems. You can use them with any type of .NET application. The APIs are very simple and easy to learn and implement. You might get the idea from the above mentioned samples.
Disclosure: I work as a developer evangelist at Aspose.

HTML to Image .tiff File

Is there a way to convert a HTML string into a Image .tiff file?
I am using C# .NET 3.5. The requirement is to give the user an option to fact a confirmation. The confirmation is created with XML and a XSLT. Typically it is e-mailed.
Is there a way I can take the HTML string generated by the transformation HTML string and convert that to a .tiff or any image that can be faxed?
3rd party software is allowed, however the cheaper the better.
We are using a 3rd party fax library, that will only accept .tiff images, but if I can get the HTML to be any image I can covert it into a .tiff.
Here are some free-as-in-beer possibilities:
You can use the PDFCreator printer driver that comes with ghostscript and print
directly to a TIFF file or many other formats.
If you have MSOffice installed, the Microsoft Office Document Image Writer will produce
a file you can convert to other formats.
But in general, your best bet is to print to a driver that will produce and
image file of some kind or a windows meta-file format (.wmf) file.
Is there some reason why you can't just print-to-fax? Does the third-party software not support a printer driver? That's unusual these days.
A starting point might be the software of WebSuperGoo, which provide rich image editing products, cheap or for free.
I know for sure their PDF Writer can do basic HTML (http://www.websupergoo.com/helppdf6net/source/3-concepts/b-htmlstyles.htm). This should not be too hard to convert to TIFF.
This does not include the full HTML subset or CSS. That might require using Microsofts IE ActiveX component.

Categories