jspdf-barcode
Version:
barcode generator plugin for jspdf
12 lines (11 loc) • 360 B
TypeScript
import type { jsPDF, TextOptionsLight } from "jspdf";
declare type Options = {
fontSize: number;
textColor: string;
x: number;
y: number;
textOptions?: TextOptionsLight;
variant?: "A" | "B" | "C" | "AUTO";
};
declare const generateBarcode: (doc: jsPDF, barcodeValue: string, options?: Options) => jsPDF;
export default generateBarcode;