Move PDF Files of Certain Page Dimensions?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Move PDF Files of Certain Page Dimensions? Sat Oct 31, 2020 3:09 pm • by ckizer
I often print PDF shipping labels from the internet. All labels are 4x6 page dimensions. I tried getting Hazel to run a rule based on point size of the files, but I'm not having any luck.

Unfortunately the file names are always random so the only way I'll be able to do a rule is based on the dimensions. Any tips?
ckizer
 
Posts: 12
Joined: Sat Oct 31, 2020 2:34 pm

Select the PDF and do "Get Info". You can see the attributes available to you there. Many PDFs provide "Resolution" which may not be totally accurate but maybe good enough for your needs.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Move PDF Files of Certain Page Dimensions? Thu Nov 05, 2020 12:23 pm • by ckizer
Mr_Noodle wrote:Select the PDF and do "Get Info". You can see the attributes available to you there. Many PDFs provide "Resolution" which may not be totally accurate but maybe good enough for your needs.


Unfortunately This PDF doesn’t have resolution. It only has page dimensions I tried every dimension to get it to match against the file from one pixel to 10,000 I even tried dpi which isn’t sad is there anyway to get it based on macOS previous page dimension in inches?

I’ll share one of the PDF files someone can tell me if it’s possible
ckizer
 
Posts: 12
Joined: Sat Oct 31, 2020 2:34 pm

Re: Move PDF Files of Certain Page Dimensions? Sat Nov 07, 2020 4:01 pm • by ckizer
I'm linking to a redacted PDF shipping label. It's strange that Safari doesn't attach a Where From URL in get info. I preview the PDF in the browser than hit the download button on the PDF toolbar to save it to downloads.

Only the Shippo.com label has 1 line of metadata which is the PDF generation tool. The UPS labels are images, not copyable text like this example might show. (I Think PDF Pen tried to OCR it)

Generally my thermal labels are from the following sites:
Amazon Seller Central
Shopify
Shippo.com

Attached PDF Label:
https://www.dropbox.com/s/7kysqo3ze5cp0 ... 3.pdf?dl=1

Screenshot of metadata: (only Shippo label has this metadata)
https://cln.sh/h1r0B1
ckizer
 
Posts: 12
Joined: Sat Oct 31, 2020 2:34 pm

your rule should be like this

Your pdf Document is H: 433.7008 B: 289.1339

you can find page width under "Other..."

Code: Select all
if all of the following conditions are met
Kind is PDF
Page width is greater then 288
Page width is less than 290
Page height is greater then 432
Page height is less than 434


Do the following to the matched file or folder:
Code: Select all
Display notification with pattern: send Niels a free Hazel license


lol
Ni€ls
 
Posts: 20
Joined: Thu May 16, 2019 10:50 am


Return to Support