I need to read PDF417 barcode for Iraqi passport and extract the information from it.
I scanned the barcode successfully and it contains two parts, first part is the MRZ and the second part is an encoded/encrypted text. so is there a way to know the method used to encode this text and how to decode it?
this is the encoded/encrypted part:
|Rk1SACAyMAAAAADcAAABYAF9AMUAxQEAAQA/IEBLAFt0AEBNAH98AEBZAJYAAEBjAMP8AEBmATj0AEB+AEmMAEClADEoAECLAC0oAECJAHEMAECqALQIAECLALgAAECoANsEAEB7AMiAAEB+AUF4AEDIAF0gAEDGAFCkAECzAFIgAECvAKeMAEDlAJQcAEDjAGQgAEDfAPUIAEDCAOOMAEC7AP8AAEDVAVEAAEDBAVCAAEDYASKAAIDFAT0AAED2AJqcAED8AJQcAEDsAQUEAEEVAPmUAEDqAVGEAA==|
Go to https://www.base64decode.org/, copy and paste your text and remove the bar | symbol from the beginning and ending. Then select ISO-8859-6 as the character set and click the DECODE button. You'd have to exclude certain characters from the result to piece together the actual contents.
Related
I have a text file like the one uploaded and I want to extract information from it and convert it to a dictionary in Python like the example uploaded above.
But I was to extract information only if the the Status is up so the key should be the IP address and the value are the ports numbers. I tried many codes but none of them unfortunately worked. The code should be in Python. Thank you.
enter image description here
enter image description here
I have a window, containing some fill-in fields. One of them is meant to contain a date, having 99/99/9999 as a format. Due to that format, when emptying the field (selecting the content and press the DEL button), I see "__/__/____" on screen (the underscores mean spaces).
In order to check if this fill-in field is empty, currently the source code does this as follows:
IF Date_Fill-In:SCREEN-VALUE <> "/ /"
As you can see, this is heavily dependent on the format of the fill-in field.
Is there a built-in function I can use to check if the screen-value of a fill-in field is empty, without needing to check the format?
Thanks in advance
Dominique
Check for the INPUT-VALUE property returning ?.
My crystal report display not in correct format when I allow one field of it to "Can Grow".
Before allow "Can Grow" :
After Allow :
So how to solve the problem?
Here is what I have set :
Last edit:
Or try this.
Create a text Object.
Insert all your fields in that text Object base in your order.
How to insert? Cut the field then edit text object then paste.
Then in the properties of text object check the Suppress Embedded
Field Blank Line.
Then You can check also if you want the Can grow of text object
This is the Sample Output inside the Textobject
And the output is this
Cotabato to House is the Company name.
Sinsuat to Philippines is the Address.
Then Numbers is the contact.
They compres because i shorten the size of textobject so that they will execute the funtion of can grow
Your Output must be like this. hmmm
Your Final Output must be like this. No more '[' or ']' that can be seen inside the textobject.
Data was just Sample
If it's possible for you, you can create a section just for this field.
If you put your field which can grows and take 2, 3 or more lines in it's own section it will display all the lines but keep it separate from the other fields.
And in the case that it has one line the display will be like you want as well.
Edit : Advantage of this method : you can create a formula in the suppress formula of this new section, like if your text is null or empty, just suppress the section. Like that you can win some space in your report
Regards,
I am currently learning about GTKTextTags and the application to GtkTextView and GtkTextBuffer. I did notice this question but was not looking to export my data to a rich text file which I understood to be the main purpose of the question
I have an application which stores the contents of a GtkTextBuffer into a TEXT field of a SQLITE3 database. Having read the GtkTextWidget Overview and the documentation on GtkTextTag, I (mistakenly) understood that the tag system worked much like a mark up language such as XML/HTML.
I was under the impression (after setting the &start and &end GtkTextIters) when I called gtk_text_buffer_get_text (...) with gboolean include_hidden_chars set to TRUE I would essentially obtain a gchar* that would also include GtkTextTags so the string might look like <b>some text</b> (but obviously with GtkTextTag formatters not HTML). I realise now this is not the case.
Problem: I store the gchar* obtained from gtk_text_buffer_get_text(...) into the database TEXT field. At a later time, or when I reopen the application, I want to reload this data into the GtkTextBuffer and do so by retrieving the relevant TEXT field data from my database and setting text with gtk_text_buffer_set_text (...). At this point I discover all of the formatting tags are gone and formatting somewhat becomes moot. What I would like to be able to do is store the text from the GtkTextBuffer into the TEXT field of the database and when it reloads the formatting is retained.
Q: Is there a way to store both text and tags from a GtkTextBuffer into a SQLITE3 database so that when reloading this text to the GtkTextBuffer formating is retained?
I had considered using a BLOB field rather than a TEXT field in the database but was uncertain if there is a better way to achieve what I am after.
I would suggest using gtk_text_buffer_register_serialize_tagset() and then gtk_text_buffer_serialize() to get a byte array (guint8[]) that you can then read back into another text buffer later with gtk_text_buffer_deserialize().
I think you will have to use a BLOB field rather than TEXT, since the return value of gtk_text_buffer_serialize() is a byte array rather than a string.
I have a file text1 where fields are like:
box|domain|service|Consumer|organisation
Eg.for two such fields:
Datapower|utility|accountLog|verizon|google
Datapower|utility|accountLog|veri|google
Another lookup file text2 which is used for mapping is like:
Verizon|myself
What I am looking for is whenever fourth field verizon exists in text1 it should be replaced by second field myself using the mapping done in lookup file text2. But at the same time, I also need to keep in mind that if no matching is found for veri in text1 by doing lookup in text2, that row should be printed as such. Please suggest.
Thanks,
MT
The easiest way is to read first the whole files into two vectors with structure elements and then make the specified changes on it. Finally rewrite all into the same file.
The stepping file operations are hard in text files and in this case also the exchange of words would be difficult having they different lengths.