A task: Scan datamatrix codes from pdf file and save them to csv.
Final result: 010466010514027621)ZPTsFWoUgqe,91009492ZCUruNv8/rQRlZyH/mZhkRY11D5aW4aLjpVn3DVxFIi7l9gV/pvguWxiVnpTRI0SFkNx1dPavcQYjiQ6DCSnNw==
I cannot form the structure of this code in my head.
I started to study libraries for working with pdf files, specifically PyPDF2, but ran into a problem. PyPDF2 finds absolutely nothing in the file. I tried to find the sequence in the code of the pdf file but did not understand anything.
Please help me with any piece of this code (except for writing to csv). It may be possible to extract information from the PDF without rendering into an image, since large amounts of codes and code speed play a role.
If there are people who know the structure of pdf, tell me if it will be possible to draw out the location of each pixel (black square) of the datamatrix code and will it be possible to translate all this into the final form.
I would be grateful for any information. Thank you.
You can use my solution: