code: def get_palette_pdf_string(self):
          "Returns palette pre-formatted for use in PDF"
          buflen = len('< ') + len(' rrggbb') * self._cdata.ncolors + len('>')
          buf = ffi.buffer(self._cdata.cmapdatahex, buflen)
          return bytes(buff get_palette_pdf_string(self):
          "Returns palette pre-formatted for use in PDF"
          buflen = len('< ') + len(' rrggbb') * self._cdata.ncolors + len('>')
          buf = ffi.buffer(self._cdata.cmapdatahex, buflen)
          return bytes(buf)
docs: Returns palette pre-formatted for use in PDF