如何将下载的 pdf 中的图像链接转换为制表符中的图像

问题描述

我是制表机的新手,也是新手。我使用制表符在我的 UI 中显示数据值。

表格如下:

const ForwardInventoryColumns=[
      {formatter:"responsiveCollapse",width:100,minWidth:100,align:"center",resizable:false,headerSort:false},{
        title: "",field: "",align: "center",headerSort:false,formatter: reactFormatter(<UpdateDataButton />),},// { title: "RowId",field: "rowid",visible:false},// {title: "FixtureNo",field: "fixtureNo",visible:false,// { title: "Date",field: "date",minWidth : 20,headerSort: false,headerFilter: 
      "input",headerFilterPlaceholder:"search...",visible:true},{ title: "Type",field: "type",minWidth : 50,headerFilter: "input",{ title: "CoilID",field: "id",{ title: "View",field: "desc",editor: "number",editorParams: {allowEmpty: false},cellEdited:this.updateTableData,validator:{type:"max",parameters:99999999 },{ title: "Delivery No",field: "vehicle",{ title: "Wagon No",field: "wagon",{ title: "Location",field: "location",headerFilter: 
       "input",{ title: "Date",field: "timeStamp",{ title: "Image",field: "imgurl",validator: 
       {type:"max",visible:true,formatter:"image",formatterParams: 
       {height:"100px",width:"100px",urlPrefix:"http://website.com/images/",urlSuffix:".png",}

所以我使用 formatter:"image" 在我的 UI 中显示带有链接的图像,如下所示:

enter image description here

但是,当我下载带有表格数据的 pdf 时,它会显示图像的链接,如下所示:

enter image description here

我正在为 pdf 数据使用以下函数中的下载按钮:

downloadData = () => {
  this.ref.table.download("pdf","data.pdf",{
    orientation:"landscape",//set page orientation to portrait
    title:"CQMS Report","autoTable":{
    "columnStyles":{
      0: {cellWidth: 100},1: {cellWidth: 80},2: {cellWidth: 80},3: {cellWidth: 80},4: {cellWidth: 80},5: {cellWidth: 80},6: {cellWidth: 80},7: {cellWidth: 100},}}
})}; 

我们可以在pdf中设置列的类型,以便在PDF中显示图像吗。

我该怎么做?请帮忙

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...