PDF dimensions in a column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
JurajM
Posts: 1
Joined: 12 Apr 2023 08:46

PDF dimensions in a column

Post 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.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: PDF dimensions in a column

Post 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
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

Post Reply