Created
July 25, 2021 07:57
-
-
Save hack-r/f27bd31782f6af8ec9163d4b359384f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM by Jason | |
REM for TJ | |
REM Run this file by double-clicking it. | |
REM Download and install these free and open source apps/libraries first. | |
REM https://www.imagemagick.org/script/download.php#windows | |
REM http://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10-setup.exe/download | |
REM https://www.ghostscript.com/download/gsdnld.html | |
for %%F in (*.pdf) do ( | |
convert -density 150 %%F -quality 90 %%F.png | |
C:\"Program Files (x86)"\ZBar\bin\zbarimg.exe -q --raw "%%F.png" >> barcode_values_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment