-
Notifications
You must be signed in to change notification settings - Fork 43
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
function withImage() return false #17
Comments
Hello @libedux , Thanks for asking.
|
Hello @ajaxray I am getting same issue, I am using this sample code use Ajaxray\PHPWatermark\Watermark; include 'watermark/autoload.php'; $watermark = new Watermark(__DIR__ . '/pdf/order.pdf'); print_r($watermark); $watermark->setPosition(Watermark::POSITION_TOP_RIGHT); $watermark->setOffset(50, 50); $watermark->setOpacity(.2); $watermark->setTiled(); var_dump($watermark->withImage(__DIR__ . '/img/logo.png', __DIR__ . '/pdf/result_img.pdf')); |
Hello @rajansinghrawat and @libedux I have added a section for debugging steps in README. |
I got the same issue with some extra text: if (File::exists($file_path)) {
$watermark = new Watermark($file_path);
$watermark->withImage(public_path('image.jpg'))
->setPosition(Watermark::POSITION_BOTTOM_RIGHT)
->write($file_path);
} It gives me:
Both |
@convers39 Can you please tell me your version of |
@convers39 I guess that you are using the v0.1.2,and running example in github.The style in v0.1.2 is like |
I am using this package to apply watermark on pdf files bu watermark does not merged with pdf file, instead withImage() function return false.
The problem is, it does not throw any error like file not exist or etc. it just returns false.
The text was updated successfully, but these errors were encountered: