Laser-induced forward transfer is a promising method for 3D printing of various materials, including metals. The ejection mechanism is complex and depends strongly on the experimental parameters, such as laser fluence and donor layer thickness. However, the process can be categorized by the physical condition of the ejected material, i.e., the donor layer is transferred in liquid phase or the material is transferred as a 'pellet' in solid phase. Currently, solid-phase transfer faces several problems. Large shearing forces, occurring at the pellet perimeter during transfer, limit the similarity between the desired pellet shape and the deposited pellet shape. Furthermore, the deposited pellet may be surrounded by debris particles formed by undesired transferred donor material. This work introduces a novel approach for laser-induced forward transfer of variable shaped solid-phase pellets. A liquidcrystal spatial light modulator (SLM) is used to apply grayscale intensity modulation to an incident laser beam to shape the intensity profile. Optimized beams consist of a high fluence perimeter around an interior characterized by a lower fluence level. These beams are used successfully to transfer solid-phase pellets out of a 100-nm Au donor layer using a single laser pulse. The flexibility of the SLM allows a variable desired pellet shape. The shapes of the resulting deposited pellets show a high degree of similarity to the desired shapes. Debris-free deposited pellets are achieved by pre-machining the donor layer, prior to the transfer, using a double-pulse process.