To edit a salary slip in a PDF file, you can use PDF editing software or online tools that allow you to modify the content of the document. However, it is important to note that altering official documents like salary slips without authorization is unethical and may have legal consequences.