Silver-doped C3N4 supports (Ag-C3N4) were prepared by high temperature calcination of melamine pre-modified by silver nitrate, and then a Pd-based supporting catalyst was prepared based on this catalyst supports. The catalyst showed good catalytic activity in the catalytic dehydrogenation of formic acid. The crystal phase structure and microstructure of the catalyst were characterized by XRD, TEM, Mapping and XPS. The results show that Ag species can be doped into the bulk of C3N4 to obtain an Ag-containing C3N4 supports by calcining melamine pre-modified by silver nitrate at high temperature. It can be found that the introduction of Ag species can modulate the crystal phase structure and microstructure of C3N4. And the Pd-base catalysts supported onto our supports showed a good catalytic activity in the hydrogen reaction of formic acid decomposition. The catalyst activity test showed that the TOF of the optimized Ag3%-C3N4-Pd catalyst sample could reach 991h-1 at 323K, which is obviously higher than the Pd-based catalyst supported on C3N4 without any modification. The premodification of melamine with silver nitrate is helpful to obtain good catalyst support and to prepare high performance catalyst.