unwanted border on transparent image in libreoffice headless [SOLVED]

i was trying to convert .docx to .pdf with LibreOffice v7, note:there is an image(.png) on .docx,
and it’s successfully converted to pdf, but there’s is unwanted border on the image,

I’ve tried this with LibreOffice v6 and there is no unwanted border image in the pdf,

and I really curious is there a way to remove the unwanted border around the image with LibreOffice headless ( no GUI ) other than downgrading v7 to v6,

I’m so sorry, my English is pretty limited,
thank you in advance, for any answer :smiley:

(see pictures below)

image description

solved with this PR

I cannot reproduce the problem with me.

I always save documents created in Writer in ODT format.

The picture shows an detail from the generated PDF file.


Basically:

Always create and save your files in LibreOffice and save them in ODF format (ODT, ODS, etc.).
Always keep these files as their source. If you need other formats for distribution to partners, you can open an ODF file and save and distribute another format with ″ Save as… ″.

This way, you always have working files available in your system environment.

See:
https://wiki.documentfoundation.org/Faq/General/118

========================

Please report the behavior as a bug in Bugzilla .

Please announce the link from the bug here.

To do this, edit your initial question. Thank you.

With me Windows 10 Home; Version 20H2; 64-Bit;

LibreOffice - Version: 7.0.4.2 (x64)
Version: 7.0.4.2 (x64)

Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Hi ebot, thank you very much for your answer :),
its really weird,
in libreoffice previous version which is 6.x.x, i have no problem with this and the program is works really well., but after i use libreoffice to latest version which is v7.x, this problem is appear,

and unfortunately all of my documents that need to converted to pdf. is in docx format not in odt like yours :(,

and i’m really curious, is there a way to deactivate the border on pictures when convert docx format to pdf?

thank you~

You can try to start LibreOffice in Safe Mode (in menu Help>Start in Safe Mode... ) to see if the error goes away.

If the error is no longer present, you should reset your user profile.

LibreOffice user profile

it was solved by this

thank you ebot for you anwser~