convert docx to pdf, image of header became larger

I used soffice/libreoffice convert docx to pdf, the image’s size of header became larger and it cover part of the text area. How could I convert docx to pdf with the same image’s size

Supplementary notes(2021-04-21):
I tried libreoffice versions 6.5-7.1 on macOS and Ubuntu, they all enlarge image of header in the special docx file, while I convert some other docx file, they could convert nomally. And attached is a sample docx document which header image will be enlarged when convert-to pdf.sample.docx

Supplementary notes(2021-04-22):
Thanks for comments, after I convert docx to pdf, it seems normally in visual like the following left picture. But when I click the left-top image(gray rectangle area) in page-header, It appeared a larger rectangle area which was an image like the following right picture. That was what I mean.

Supplementary notes(2021-04-22):
The original size of the imgae in header is normal. In the following screenshot, I click the left-top image in docx-file opened in LibreOffice 7.1.1.2 and click the same postion in pdf-file.

Impossible to say anything without information about your LO version, a sample DOCX, and possibly your OS and LO source (TDF package/distro package manager/snap/…). If it’s in a latest version, and is not specific to a distro, then maybe it’s for a bug report.

Works fine for me with 7.0.5 on Xubuntu 20.10:

C:\fakepath\PDF_picture.png

Open ths docx-file with libresoffice and export as pdf, then open the pdf-file, you will find the image in header become laerger

Don’t you see in the screenshot above that the bottom window is Writer and the top window (behind Writer) is the PDF reader (Foxit Redaer in this case)? I thought it would be obvious.

Supplementary notes(2021-04-21): I tried libreoffice versions 6.5-7.1

I’m afraid there’s some mistake: there was no version 6.5 released (unless you are talking about very early pre-alpha internal builds of development branch prior to deciding that the next one will be 7.0).

There was tdf#134736, fixed in the next 7.1.3, which seemed to be related.

I checked with PDF/A-1b and 2b, with and without the reduce image feature and it still exports correctly.

@Hagar_Delest Same here, but obviously OP has some problem - interesting what are their settings?

@Hagar_Delest @mikekaganski Thanks for your opinions, i supply some new description. Try to click the image in header and have a look, maybe it was a bug in libreoffice.

I see what you describe now; and I think it’s just how the cropped image gets exported to PDF (your image there is cropped, and likely its original size would be like what is selected when you click on the image there…?)

I suppose that PDF export could actually crop images (only keeping the visible part) if the crop is rectangular, but that would be an enhancement request.

@mikekaganski The original image is in docx-file, its original size is normal, I supply a new screenshot in question description.

By the way, instead of that cropped bitmap, I’d use a simple rectangle with a gradient area fill.

The original image is in docx-file, its original size is normal

I see what you to tell. But look into the image properties, Crop tab; and see that the image is cropped.

I see the same also on Windows 10. I can even copy and retrieve the full picture (it seems).

Personally, I never crop pics in Writer, I edit them in a picture manager before inserting them to avoid this kind of risk.