How can I write Barcode Generator? - vb.net

I would like to make a program that takes input as a string like 'dsfljsfkj' then output 2D Barcode (DataMatrix format, or other 2D formats) as an image file in VB.NET
Do you have any idea how can I make it without using any other commercial .dll's? Open-source is OK.

check out the google ZXing project:
http://code.google.com/p/zxing/

Related

How do I use an existing PDF as a container?

I have a PDF (created from Word) for a game I wrote for an old 8-bit computer, and I'd like to embed the code for that game (binary, less than 32k) into that PDF. This way, my emulator can load the program by reading the PDF, and the two can be stored and shared in one file.
You could call this a form of steganography.
I know a PDF has a tree structure and uses ASCII to define its components; is there a way to add inert, "orphan" elements that won't cause problems for PDF readers? I think that would be the easiest way to do it. But I'm not sure how to do it.
The simplest solution would be to use a document attachment or a file attachment annotation.
Most PDF tools that are available support these features as they are pretty basic.

Get text from a pdf in NSString

I am trying to make an iOS app which would extract plain text from a pdf file and display it in a UITextView. Its simply not a pdf reader to view a pdf file but i would later wish to perform certain operations on that text.
I have already googled a lot but still not able to get an exact solution.
i already tried using https://github.com/zachron/pdfiphone
but the files are using ARMV6 architecture which seems obsolete with xcode 4.5
And if anyone can suggest some exact and non-confusing code using Quartz-2d framework of iOS then it would be great.
Here is An Sample code to Extract text from PDF Hope this Might Help You.
https://github.com/zachron/pdfiphone
This is a library to get the text out of a PDF for the iPhone.
Another Demo is there Which uses OCR technology find the link below
https://github.com/nolanbrown/Tesseract-iPhone-Demo
Also Check this page of the Quartz 2D Programming Guide, it covers everything you need to open and parse a PDF file in iOS. Note that it is not a simple task, since there's no method to extract the full text in one line. You have to work with the data as an input stream, using a CGPDFScanner
Two Other Libraries
https://github.com/KurtCode/PDFKitten/
https://github.com/mobfarm/FastPdfKit
This question comes up all the time. It is VERY hard to extract text from PDF in general. The PDF specification is not designed with text extraction in mind. There are many libraries that try to do the job, essentially by reconstructing the text from the geometric placement of the individual glyphs. These libraries have varying degrees of success, but will all fail on certain PDF documents. In fact, some PDF documents have Glyphs but no way to associate the glyph with a character. For these documents it is simply not possible to extract text, short of using some kind of OCR approach.
PDF is designed as a read-only format that is portable in the sense that a PDF document will be rendered identically on any platform. That is what it is best at, and what it should be used for.
If text is to be edited, do not use PDF.
Here (Extracting text from pdf using objective-c), I found an answer to your question and it works. But not so fine as i need it :(
it can extract only ascii
it return me only one paragraph
Good luck.

Vb.net extract text from image

i want to extract text from an image. For example:
return: 12345678910
You should be able to do this via Tessnet2, which is an open source wrapper around the Tesseract engine.

read 1D barcode (code 128) direct from a pdf file

Has anyone experience with a tool (it can be also a commercial one) which can extract barcodes direct from a pdf file? The most tools I have seen can read barcodes only from images.
Thanks
Well, important question:
Is the barcode in a "barcode" PDF form field? If so, pretty much any PDF form capable library can do the trick. PDF barcode form fields are just text form fields with an appearance stream to display the barcode. The text value of the barcode however is exactly the data you would be looking for (and hence wouldn't need to care about the appearance stream).
If not and the barcode is on a scanned PDF (and hence in an image internally), you could use something like:
Ghostscript http://www.ghostscript.com
FoxIt http://www.foxitsoftware.com/pdf/sdk/
QuickPDF http://www.quickpdf.org/
to convert each page in the PDF to an image. (The list of PDF rasterizers above are under very different licensing terms, but IMHO in decreasing order of quality and maturity.) Then use one of the many barcode image libraries on the image as a whole.

Best way to generate a custom document?

I am working on generating a document for printing. It should use a specific TTF font and everything must be printed with vector graphics (for quality). Some of the text should be replaced automatically (e.g. current time). Also it should include a custom-generated EPS image with a chart.
Ideally I would like to have some kind of document template where the text could be replaced easily, and it would be nice if it could import the image through path. But I am not sure which format could be good for this. Best I can come to think of is LaTeX, but I don't like that it's a lot of manual work to use it with TTF... any other ideas?
By the way, I am using OS X...
Memoir package is very flexible for your special layouts.
Xetex uses your system fonts (Installed together with TexLive).
You could blend most of those elements to an EPS using imagemagick or gimp script-fu
There are several products out there that will build you a PDF programmatically. I've only used the Coldfusion Report Builder myself and that may not be practical/affordable for your application. If your budget allows I'd look into a commercial reporting product. I know Adobe have several that will generate Flash, FlashPaper or PDF output.