In the replies to how to remove the password from a pdf file, some solutions (e.g. by ghostscript) require no password, while some (e.g. by pdftk) do.
Is knowing the password necessary for removing it from a pdf file? If not, then
why do some solutions (e.g. by pdftk) require the password? What are their advantages over those solutions that don't require the password?
what is the purpose of setting up a password for a pdf file? Does it try to prevent those without the password from reading and writing the pdf file? Does it prevent those without the password from printing/copying the pdf file to another pdf file without any password, an indirect way to read the original pdf file, and the idea of the pdftk and ghostscript solutions?