Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Adding text to existing PDF file, can not move pdf file #1995

Closed
1 task done
unluckychild opened this issue Mar 8, 2024 · 0 comments
Closed
1 task done

Adding text to existing PDF file, can not move pdf file #1995

unluckychild opened this issue Mar 8, 2024 · 0 comments

Comments

@unluckychild
Copy link

Guidelines

Description of the bug

I have html code, which i want to add to existing pdf file. Problem is, text in html is long and stays over pdf file. Pdf file is like inmovable image on the background. I tried to add margin-bottom or somehow to move the object, but it doesnt move, only texts in html moved.

mPDF version

8.1.3

PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)

8

Reproducible PHP+CSS+HTML snippet suffering by the error

$template = 'Text with css styling ';

$mpdf = new Mpdf\Mpdf(['format' => 'A4-P']);
$mpdf->use_kwt = true;

$pagecount = $mpdf->setSourceFile('mypdf.pdf');
$tplId = $mpdf->importPage($pagecount);
$mpdf->useTemplate($tplId);

$mpdf->WriteHTML($template, 2);
$mpdf->Output();

@mpdf mpdf locked and limited conversation to collaborators Mar 9, 2024
@finwe finwe converted this issue into discussion #1996 Mar 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant