7
8
9
10
11
12
13
14
15
16
17
18
19
20
22#include "fxbarcode/cbc_pdf417i.h"
28#include "core/fxcrt/data_vector.h"
29#include "fxbarcode/pdf417/BC_PDF417Writer.h"
35constexpr size_t kMaxPDF417InputLengthBytes = 2710;
44bool CBC_PDF417I::
Encode(WideStringView contents) {
45 if (contents.GetLength() > kMaxPDF417InputLengthBytes)
50 auto* pWriter = GetPDF417Writer();
51 DataVector<uint8_t> data = pWriter->Encode(contents, &width, &height);
65CBC_PDF417Writer* CBC_PDF417I::GetPDF417Writer() {
66 return static_cast<CBC_PDF417Writer*>(m_pBCWriter.get());
BC_TYPE GetType() override
bool Encode(WideStringView contents) override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
bool RenderResult(pdfium::span< const uint8_t > code, int32_t codeWidth, int32_t codeHeight)
void RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix)