Skip to content

How to retain image border when replacing image with setImageValue? #2807

@Ziyi014069

Description

@Ziyi014069

Hello, PHPWord team,

I would like to ask: how can I preserve the image border after replacing an image using the following code?

$templateProcessor->setImageValue($placeholder, [
'path' => $fullPath,
'width' => 8 * 37.8,
'height' => 5 * 37.8,
'ratio' => false,
]);
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions