The final size of the barcode shouldn't matter. A PDF417 code is made from a fixed grid of big ol' pixels, so even a 1 bit TIFF can be scaled to infinity.
You definitely should not resample the generated image, it's designed to be 'BAPPI' (Bugger-All Pixels Per Inch).