Revert "Update credocument.lua"

This reverts commit 7d8f8a3d076f4d12171e43fe54756dea4b20560c.
Revert "Update pdfdocument.lua"

This reverts commit 0fc8ddaf486d9da84adb48e415bbaabda3bdda6a.