1. A system comprising: a processing system comprising one or more processors; and a memory system comprising one or more computer-readable media, wherein the one or more computer-readable media contain instructions that, when executed by the processing system, cause the processing system to perform operations comprising: receiving an instruction to print an N-up document; obtaining a document to be printed as the N-up document and a background form; receiving matchings of logical surfaces of the N-up document to the background form; decomposing the logical surfaces of the N-up document into raster images; generating a plurality of tags, wherein each tag is associated with a pixel of a logical surface of the N-up document and identifies the logical surface; combining raster images of the logical surfaces into an N-up raster image; merging, using the plurality of tags, the background form with the N-up raster image to generate a merged N-up raster image; and printing the merged N-up raster image.