I do not really like the idea to implement this padding as a new format class.
While padding could be used outside block ciphers it would be really uncommon
in my eyes. Using the format classes outside that scenario is not so uncommon.
PKCS#7 btw. is defined in
RFC 5652, which can be found here:
https://tools.ietf.org/html/rfc5652