Skip to content

marklife


marklife / core/src / encodeCpclJob

Function: encodeCpclJob() ​

encodeCpclJob(engine, page): Uint8Array

Encode a marklife-cpcl print job.

Width padding to a byte boundary is the bitmap library's job (padBitmap({ widthMod: 8 })); this encoder does not pre-transform.

Parameters ​

engine ​

CpclEngine

page ​

CpclPage

Returns ​

Uint8Array