toByteArray

Returns a fresh copy of the encoded PDF bytes.

The library never hands out its internal buffer; mutating the returned array does not affect future calls.