In this paper, the relativistic DIRAC equation in one dimension is investigated for a particle in an external electromagnetic field, with the property of position-dependent effective mass approximation (PDEM), in the absence of vector potential. By removing the lower spinor component and combining the pair of equations, a Schrö dinger-like equation is obtained for the upper spinor component. Using canonical transformations and introducing two first-order Hermitian and anti-Hermitian differential OPERATORs, a formalism for pseudohermitic Hamiltonians with parity-time reversal symmetry (PT) has been obtained. Comparing the equation derived from pseudo-Hermitian Hamiltonian with the non-relativistic Schrö dinger equation leads to a general formalism for one-dimensional solvable imaginary non-Hermitian potentials with real energy spectra. Also, using this process, the complex potentials of Pö schl-Teller and Scarf II with real energy spectra in DIRAC equation with PDEM approximation and PT symmetry have been investigated and their application has been expressed. For some particular parameters we will see the phenomenon of energy-levels crossing. In fact, it means that energy levels disappear from the spectrum. Also, for the mentioned examples, potential figures are drawn.