参考:http://jingyan.baidu.com/article/e75057f2ad6481ebc81a897b.html

首先下载对应的 dll (已经上传到博客园文件)

然后就是Delphi代码了:

function SetPdfConFile(confile: PChar):PChar;stdcall;external 'EnCodePdf.dll';
function EnPdfText(txtdata:PChar; outfile:PChar):PChar;stdcall; external 'EnCodePdf.dll'

SetPdfConFile(PChar('MakeBarCode.ini')); //加载配置
EnPdfText(PChar('123456'),PChar('pdf417.bmp'));  //将文本保存成二维码图片

 

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2021-11-21
  • 2021-11-21
  • 2021-11-23
  • 2022-01-08
  • 2021-07-28
  • 2021-11-06
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-01-07
  • 2021-12-06
  • 2021-08-10
  • 2022-01-26
  • 2021-11-21
相关资源
相似解决方案