Black line on the right side of the edge of the paper

I’am using a HP laserjet 1020, when i print an adobe file there is a black line on the right side of the paper, but when I print a word document this black line didnt show. I replaced the toner of this printer it didnt help. I tried to print from another printer and use the same adobe file no problem at all. Is there any solution that can rectify this kind problem? If there is someone who knows how to rectify it could you please share it with us. Thanks!