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

setImageValue added image doesn't have common image properties #2603

Open
mohammedsiraj opened this issue Apr 4, 2024 · 0 comments
Open

Comments

@mohammedsiraj
Copy link

The image added through setImageValue using TemplateProcessor is not showing image properties as image with png or jpg so am not able to convert it to pdf using other libraries such as unoconv

<?php
$document = new \PhpOffice\PhpWord1\TemplateProcessor($docx_temp_file_path);
 $document->setImageValue('image', 'path to image');
  • PHP Version:5.6
  • PHPWord Version:1.2.0
    Screenshot (15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant