The bullet and the case wouldn’t be much of a problem. The primer and powder is not something that can be printed.
Would be easier to make modern day gyro jet 3D pistols, bullets are actually rockets, don’t need primers or powders but save basically rocket propellant.
Gyrojets were made many years ago but are not effective at close ranges, you could actually dodge them, but they sped up faster as they traveled.