Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在函数中移动图像_Php - Fatal编程技术网

Php 在函数中移动图像

Php 在函数中移动图像,php,Php,我有下面的代码,我需要移动一个图像,以便我的其余数据 以pdf格式显示不会与徽标本身重叠 function do_print(&$focus) { $this->set_focus($focus); $this->filename = $this->create_filename(); $this->new_page(); $this->print_logo(); //logo print details -- need

我有下面的代码,我需要移动一个图像,以便我的其余数据
以pdf格式显示不会与徽标本身重叠

function do_print(&$focus) {

    $this->set_focus($focus);
    $this->filename = $this->create_filename();
    $this->new_page();
    $this->print_logo();  //logo print details -- need to move this so rest dont overlap it.
    if(method_exists($this->layout, 'printCompanyAddress'))
        $this->layout->printCompanyAddress($this);
    $this->print_details();
    $this->print_extra_head();
    if($this->layout_name == 'QuotePDF')
        $this->print_addresses();
    else
        $this->layout->print_addresses($this);
    $this->print_main();
    //$this->print_notes();
    $this->print_terms();
    $this->print_extra_foot();
}

查看print_details()函数。您将在那里找到y偏移。只要增加偏移量,文本就会被向下推到页面上

为什么这是带标签的JavaScript?我遗漏了什么吗?print_logo()是什么样子的?你的问题是我喜欢把我的床移到左边。这是我厨房的一张图片:-)这个问题缺少太多的信息,无法回答。我已经删除了
javascript
标记。有没有办法让当前时刻的日期显示在那里?我对代码还不是很在行,所以非常感谢您的帮助。当然,请看一下打印功能。首先在pdf上打印任何文本,然后切换到日期并调整位置。如果没有更多的代码,我们就无法帮助您