dpoh61610 2013-08-20 14:46 采纳率: 100%
浏览 52

插入图像时,FPDF在单元格中生成数值

Im using FPDF to render data in a table layout. All fine, until i want to insert a image into a Cell (or MultiCell. Both do the same). The image apears but it also produces a numeric value.

The number seems to be the number of times the image is used throughout the document...

    $interal_icon = 'resources/img/logo-icon.png';
    $im = $pdf->Image($interal_icon,$pdf->GetX(),$pdf->GetY(),0,0,'','','C',false,300,'',false,false,0,false,false,false,'');
    $pdf->Cell( 30, 8, $im, 0 , 0, '' , false,'',0,false,'','C' );

When i align the image different, the number will be aligned with it, so it has something to do with the image function i guess...

Anyone got an idea? thanks.

  • 写回答

2条回答 默认 最新

  • duan2891 2013-08-20 14:57
    关注

    I think that you should use the image function 'inline' instead of referring to a variable and using that one. That is at least what I read in this topic.

    评论

报告相同问题?

悬赏问题

  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条