Page 1 of 1
PDF dimensions in a column
Posted: 12 Apr 2023 08:53
by JurajM
Hi. I am looking for a file explorer that can read the dimensions (blueprint dimensions) from pdf and show them in the column. Is there a way XYplorer can do it and if so can you help me configure it?
Thank you, Juraj.
Re: PDF dimensions in a column
Posted: 12 Apr 2023 09:22
by highend
Get poppler:
https://github.com/oschwartz10612/poppl ... s/releases
Get the necessary Visual C++ Runtime (at least Visual C++ 2015 Update 1 (14.0) x64) and install them
Add a custom column and add this script (adapt the path to pdfinfo.exe^^)...
Code: Select all
$pdfinfo = "D:\Users\highend\Downloads\Release-23.01.0-0\Library\bin\pdfinfo.exe";
$output = runret("""$pdfinfo"" ""<cc_item>""", "%TEMP%", 65001);
return gettoken(regexmatches($output, "^page size:.+?(?=\r?\n|$)"), 2, ":", "t", 2);
2023-04-12_09-21-49.png