Does anyone know any library that can swap a page in the pdf with another without destroying the metadata?
I assume that within the file structure are things that enable an internal integrity check, such as maybe checksums or CRC's, which would necessarily be different if the file contents are different.