Get print size from PDF's name?

Post Reply
RytisT
Member
Posts: 135
Joined: Fri Aug 17, 2018 3:18 pm

Get print size from PDF's name?

Post by RytisT » Fri Sep 18, 2020 7:48 am

Hi. Sometimes we get PDF's that have all boxes (crop, trim, etc) same size but they're not supposed to be, let's say I have 210 x 297 mm design, that needs bleeds, and it's supposed to be:
Trim: 210x297mm
Bleed: 216x303mm,

what happens is some inexperienced people put trim and bleed at 216x303mm in which case, I can't know what is the correct size for design supposed to be.

What I want to do: I want to pull trim box size from pdf's name, example: "print_this_now_210x297mm.pdf" - My plan is to just pull the last sequence of numbers from the file name, and have Size A: 210, Size B: 297, does anyone know how can I put those two into variables? Is this possible without scripting? If not, perhaps anyone got any example that would get me on the right track?

Thanks.

User avatar
Terkelsen
Advanced member
Posts: 252
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Get print size from PDF's name?

Post by Terkelsen » Fri Sep 18, 2020 10:57 am

You could use a Regular Expression to extract the part of the filename you need and write these into Private Data. Then use the Private Data as your variable.

mart3223
Member
Posts: 27
Joined: Mon May 07, 2018 3:00 pm

Re: Get print size from PDF's name?

Post by mart3223 » Tue Sep 29, 2020 12:27 pm

You can search in the filename:

Code: Select all

[Job.Name:After="_",Before="x"]

Code: Select all

[Job.Name:After="x",Before="mm"]
Then use the app Metatagger to write it to private data https://www.enfocus.com/en/appstore/product/metatagger.
Working with: Enfocus Switch, Pitstop Server, Quite Imposing, Kodak Nexpress (max 640mm sheets and 500grs) with most options (HD, Clear, Gold, White, Light-Black and Matt fuser), Polar Mohr D80 (compucut), Multigraf, Heidelberg, GMP, Duplo, Hohner.

Post Reply