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

PDF Overlay #313

Open
jayomayan opened this issue Sep 15, 2023 · 3 comments
Open

PDF Overlay #313

jayomayan opened this issue Sep 15, 2023 · 3 comments

Comments

@jayomayan
Copy link

Not sure what's wrong with this but i just followed the docs.

$file_name='original.pdf';
$overlay='overlay.pdf';

$pdf = new \mikehaertl\pdftk\Pdf($file_name);
$result = $pdf->stamp($overlay)
    ->saveAs('merge.pdf');

if ($result === false) {
    $error = $pdf->getError();
}

It does not overlay, no output file created.
Any help would be much appreciated.

@mikehaertl
Copy link
Owner

What about $error? Does it contain something?

@jayomayan
Copy link
Author

sorry took a long time to response..
but no error.. the result = 1.

@mikehaertl
Copy link
Owner

Hmm, no idea then. I would try on the command line with raw pdftk (without this library at all). Just to find out if it works in principle.

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

No branches or pull requests

2 participants