Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Integration: Add Function to CPDF Class for Adding Footer Images to All Pages #3408

Open
medab123 opened this issue Feb 28, 2024 · 1 comment

Comments

@medab123
Copy link

medab123 commented Feb 28, 2024

Could you please integrate the following function into the CPDF.php class? I would like to incorporate an image into the footer of all pages similar to the page_text function, as soon as possible.

public function page_image($img, $x, $y, $w, $h, $style = [])
{
    $this->processPageScript(function (int $pageNumber, int $pageCount) use ($img, $x, $y, $w, $h, $style) {
        $this->image($img, $x, $y, $w, $h);
    });
}
@bsweeney bsweeney changed the title "Request for Integration: Add Function to CPDF Class for Adding Footer Images to All Pages" Request for Integration: Add Function to CPDF Class for Adding Footer Images to All Pages Mar 3, 2024
@bsweeney
Copy link
Member

bsweeney commented Mar 3, 2024

Is this something you need to do through Cpdf? An image can be easily placed on all pages by styling it position: fixed. And even if you need to do it through the adapter you do not need a new method. There are a few ways you can achieve the same result, such as through page_script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants