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

How to add padding for Paragraph #2460

Open
Mushr0000m opened this issue Sep 5, 2023 · 0 comments
Open

How to add padding for Paragraph #2460

Mushr0000m opened this issue Sep 5, 2023 · 0 comments

Comments

@Mushr0000m
Copy link

Mushr0000m commented Sep 5, 2023

I read the documentation but can't find a way to add some padding on a Paragraph. I have a shading on the paragraph and need to add space arround it like that :
Capture d’écran 2023-09-05 à 17 40 57

Any direction would help !

Update : From my reading of the codebase, the PhpOffice\PhpWord\Writer\Word2007\Style\Paragraph is using the PhpOffice\PhpWord\Writer\Word2007\Style\MarginBorder where we can set the Size, Color and Style but the space is missing. This is responsible to generate the tag like :

<w:bottom w:val="single" w:sz="2" w:space="10" w:color="00FF00"/>

I think there is no way right now and it would be nice to add this space value on border.

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

No branches or pull requests

1 participant