I'm printing a barcode in an Argox Printer using PPLB to send the command. But now i need to print a Qr Code in the label.
I tried to see examples in the manual, but there is nothing about Qr code.
QR Codes did not exist at the time of PPLB,
The only addition really to the specification is the GWT graphics print command -
PPLB is the incorrect format to print QR Codes with. You may find a font template or build one I guess - but inherently it is not designed for it :)
Look at PPLZ or similar (something not built and designed for and in the era of DOS) - https://www.michaelkrug.de/Update/pplz_e.pdf#:~:text=The%20PPLZ%20command%20set%20is%20a%20software%20interface,the%20exact%20patterns%20for%20the%20host%20and%20user.
Page 31
Related
Video of the problem
The problem happens when there is a screen switch or browser minimization, and it only happens with the svg element. Has anyone encountered this? How to fix?
imagem here
I managed to correct
good through this post
Clipping path in SVG not working in Safari
and this post http://tutorials.jenkov.com/svg/clip-path.html
but I had to make some adaptations...
how did i fix this problem
1st first
had to change inline structure that comes before all sinline svgs
before:[enter image description here][1]
[1]: https://i.stack.imgur.com/W8Pbl.jpg
after:
enter image description here
so far I had already converted all patches into points
tools that helped me in this work:
1st crucial tool because it is possible to convert paths code into points codes for polygon
https://codepen.io/team/amcharts/full/zYORoNE software built on the code pen
2st another tool to remove parts of unnecessary text such as curly braces ({}) spaces and commas that because the conversion tool transforms results into arrray
http://www.unit-conversion.info/texttools/replace-text/
3st another tool to remove lines breaks
https://www.textfixer.com/tools/remove-line-breaks.php
4st another last tool but not less important because it is possible to test directly online before inserting it in the code definitively
https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_polygon
that was a good tool
final result :
before
before applying any new structure
after: after applying any new structure
I want to thank all the devs who collaborated with me, either by creating the free software and the post made, my thanks to everyone, the people of the stackoverflow, thanks!
I have a program that generates a text file with zpl code in it. The file is supposed to contain unique barcodes that I only want to be printed once. Is there a way to either guarantee a unique barcode or prevent a file from being printed more than once.
This problem seems to be far to complex for a ZPL-only solution.
Instead, your barcode sequence(s) and printing them should be handled by some sort of programming logic/algorithm which stores the used and unused barcodes in a database or textfile.
Okay, I get it, possible duplicate of Read binary QR Code with AVFoundation but I'll try to tackle this issue from a different angle.
I'm trying to scan a barcode (in this case, Aztec) in my swift app. It works for barcodes that have regular string data encoded. For my app though, I need to be able to scan a certain type of barcode (read more about this on SO) that stores the data in binary format.
Sadly, stringValue of AVMetadataMachineReadableCodeObject is (per Apple's docs)
The value of this property is an NSString created by decoding the
binary payload according to the format of the machine-readable code
so the output gets garbled, truncated and unusable (It's a zlib-encoded data stream).
My question is: is there a way to get to this binary payload other that stringValue? Can I override part of AVMetadataMachineReadableCodeObject and add my own binaryValue or something like it.
I'm willing to try anything, but I'd love this to work natively without resorting to ZXing or some other library, as this is a pretty compact project. If you know this to be working with a library, feel free to add a comment though.
Disclaimer: I'm coding this in Swift, but I think I could manage to abstract this from Obj-C code as well, if that is what you know.
With ZXing I found a solution (that is still work in progress, but I managed to inflate the deflated content with success using libz).
Go to ZXAztecDecoder.m and in the method + (NSString *)encodedData:(ZXBoolArray *)correctedBits you can use code given from + (int)readCode:(ZXBoolArray *)rawbits startIndex:(int)startIndex length:(int)length to create unsigned char.
So wherever I found a line of code trying to add characters to the NSString I also filled up a buffer of unsigned char (casted from int returned fro the readCode:rawBits:startIndex:length method).
I used the Aztec barcode from the question about parsing Deutche Ban tickets with Python that you posted. I was able to inflate the content and everything. The only problem is that inflate does not work for my Railway Company... So I'm left with figuring out what kind of algorithm that should inflate a stream that starts with 55 4E or 55 8E ...
Good luck! Your other questions I found helped a lot, so thanks.
EDIT:
Some code that might help: https://gist.github.com/johanhar/a421a14bef2f06ee2340
Inspired by answers to this question and other sites, I have created a gist that allows to extract binary from QR code or Aztec code, without using private APIs nor other library. It is a AVMetadataMachineReadableCodeObject extension presenting a binaryValue.
However, it only runs on iOS 11 and later, because of the CIQRCodeDescriptor use.
It is available here : https://gist.github.com/PetrusM/267e2ee8c1d8b5dca17eac085afa7d7c
For QR codes, it works only with 100% binary ones. But if they contain further parts, you can easily adapt it.
As it turns out, the raw binary data does exist in the AVMetadataMachineReadableCodeObject and can be read into an NSData object, but the method comes with a catch.
In my case I was trying to read an Aztec barcode, but it seems it works with anything iOS can detect. This SO answer has the solution:
Read binary QR Code with AVFoundation
I've gotten myself tangled up with QR codes and geolocations.
I have a MySQL table with latitudes and longitudes, and I have a whole batch of QR Code images. Instead of pre-making images, I'd like to generate them on the fly, then display them in Lightbox, with their name and address.
I've gotten to this point (xxx is the MySQL table)
<a href=<?php print "http://chart.apis.google.com/chart?cht=qr&chs=230x230&chl=".$xxx->latitude->CurrentValue.",".$xxx->longitude->CurrentValue."'";?> rel="lightbox" title=<? Php print "'".$xxx->name->CurrentValue.", ".$xxx->address->CurrentValue."'";?>
This generates an image, but if I then scan the image with a phone (say), I get something like "http://aa.aaaaaa,bb.bbbbb" as the link to the map. Of course, that doesn't work. I need a more definitive link.
I'm unsure where to go from here. Ideas would be welcome.
Paul
Well, I've come some of the way.
If I add "geo:" (no quotes) in the line like this:
http://chart.apis.google.com/chart?cht=qr&chs=230x230&chl=geo:"
I get something readable. Now I need to figure how to put a marker in there, and I'm done!
Paul
I got a pdf like this one :
81 11005589 THING MAXIME 4 PC2I TR1 - MERCREDI DE 07H45 A 09H45 4A7
71 11007079 STUFF QUENTIN 1 PC2I TR1 - LUNDI DE 10H00 A 12H00 1B4
74 10506940 HAHA YEZHOU 2 PC2I TR1 - LUNDI DE 13H30 A 15H30 2D5
http://i.stack.imgur.com/hbXg2.png
And I need to parse it. What I mean by that is take the 4th column, add the 3rd column and make an email adress out of it. For example with the first line : maxime.thing#something.com
I tried to c/p it to Google docs but it just c/p it in one cell instead of multiple cells.
I really don't know what to do here. I guess regex would help me but with what ?
If it is Java iText, if it is C# iTextSharp, both are free for non commercial use.
I've used Aspose before for parsing PDFs/Word docs/Excel docs/and some other docs before. I'm not sure what their capabilities are when it comes to parsing tables in a PDF but it wouldn't surprise me if they had something.
I'd start by looking at them but be warned: they have an unapologetically piss poor method for updating their libraries. I have had to rewrite code because they flat out DROP functionality when they release new versions. Not deprecated, just GONE. That said their support is alright and the tool-set is quite powerful.
I know they have libraries for .NET and Java. Beyond that I can't say.
If in PHP, you can use
exec('pdftotext '.$filepath, $outputAsArray); //execute the command pdftotext. Proabably installed if you're on linux, if not you can install it /// to transform the pdf to text,
then
$text = implode($outputAsArray,"\n"); //to have the output as text
then preg_replace is your friend.
You can't just use a regular expression to parse PDF. You need to extract the text. There are many libraries that can do this for different languages.
My company, Atalasoft, has a text extraction add-on for .NET -- http://www.atalasoft.com/products/dotimage/pdf-reader
For Java, take a look at PDFTextStream from Snowtide. http://www.snowtide.com.
You cannot be sure there is any structure in the PDF of that the text is visible. You really need to use an extraction tool. I wrote an article explaining what formatting is actually in a PDF file at http://www.jpedal.org/PDFblog/?p=228