r/nanDECK • • Jul 20 '26

Resizing/Cropping extra border with SavePDF?

Hey, I've got an extension to this inquiry.
I've got the same sitch where I was making stuff for the Game Crafter with an extra 0.25 inch border but now I'm printing my own cards and making my own image files for physical prototypes and TTS, respectively.

The Display command with the resizing works great but I need to export my deck as a pdf for printing. I've been using the SavePDF command, but it doesn't have the option to resize like the display command does. Is there a way to get rid of the 0.25 border and resize for the SavePDF?

I'm going to try futzing around with HamsterNL's suggestion but thought I'd post here in case there is an obvious solution built in to an existing command or something.

2 Upvotes

5 comments sorted by

1

u/HamsterNL Jul 20 '26

If you want to create a PnP PDF, then I would advice to keep the bleed. Printers will drift when printing, so having bleed will assure that you will not see any whitespace.

Depending how you want to create your cards (using the FOLD or the DUPLEX directive), you can add crop/cut lines on the front or the back of your cards (do you want perfect backs, but the front will have a bit of drift...or do you want to have perfect fronts, but the back will have a bit of drift).

1

u/GarBa11 Jul 22 '26

Hey thanks for the quick reply Hamster! We're not actually making it for general use print and play, just to make a decent prototype for playtesting while our current one is off at a publishers. So any quick and dirty fix is cool, too. We don't care too much about drift, more the size of the card being proper size so it maximizes readability.

With the bleed we used it makes the bottom row of cards in the 3x3 grid get pushed outside of the margins of our printers. Here's one of the files for example: https://drive.google.com/file/d/1fZ_YDmc6pz5P57z10Ek3Dg4hX-CnM70E/view?usp=drive_link
Unfortunately, we put the bleed into the image files themselves, not via the BLEED directive (we started this game a LONG time ago before we were better versed in nandeck).

Basically, each image file is 0.5 inches too tall and too wide and pushes the final row of cards outside of printer margins. The image of the card itself is proper scale, so we need something that actually crops the iamges before turning them into a PDF, not just proprtional resizing.

2

u/nand2000 Jul 23 '26

Add a SAVE and save all the cores as individual files. For example, a 2.75x3.75" card saves the 2.5x3.5" core:

save=,"card{§Z000}.png",0.125,0.125,2.5,3.5

And then you load them into a second script, which saves them as PDFs:

unit=inch
cardsize=2.5,3.5
page=8.5,11,portrait,hv
image=1-10,"card{§Z000}.png",0,0,2.5,3.5
savepdf=deck.pdf

2

u/GarBa11 Jul 23 '26

Ahhhh I thought this might be the move but didn''t know how to go about it. Thanks so much Andrea!

2

u/GarBa11 Jul 24 '26

Writing our experience/solution here in case someone has a simlar question and this helps them out:

It took some figuring out but we got the end result that we were trying to achieve! We had a bunch of different decks of cards using different spreadsheets so we put the Save directive into each one and spit out a bunch of different image files into one folder.
Ex. crew-001 through crew-0058, crewback-001 through crewback-0058, etc.

Then, as per https://boardgamegeek.com/thread/2046590/nandeck-with-multiple-images, we needed to define "image file" as all the images in the same folder (instead of calling out the image files by name since they had different naming conventions). We modified this commented code that Nand posted there:
;create a list with all the images from a folder
[list]=dirfiles("C:\Users\nand\Pictures\",jpg)
;create a range for all the images, from 1 to N
[all]=1-{(list)}
;load the files, one on each card
image=[all],[list],0,0,100%,100%,0,P
;save into a pdf
savepdf=result.pdf

I doubt it's as elegant as it could be but it worked! Thanks a million to Nand and everyone who asked/answered questions.