First pass at getting PDF replicating. Untested.