Bug 167123 - QR code created in .docx file after saving and reopening turns into image only, in Linux
Summary: QR code created in .docx file after saving and reopening turns into image onl...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
25.2.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-19 21:31 UTC by dano.blisst
Modified: 2025-12-30 17:54 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
docx with QR-code turned into image only (correct for scanning, but image only) (10.21 KB, application/octet-stream)
2025-06-19 21:34 UTC, dano.blisst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dano.blisst 2025-06-19 21:31:11 UTC
Description:
As simple as that. Either converting .odt to .docx, or creating .docx from scratch, the QR-codes show as such only during first editing/creation. Save and reopen, and QR-codes are no more, just correcly looking images that when scanned give the right content.
Is that the maximum that can be achieved with .docx files?
Of course it is clear who it is to blame, I wouldn't ever use their product, but interoperability is a must.
Any way in the world to get QR-codes in .docx files be QR-codes, and not just images?

Steps to Reproduce:
open a new file, save it as .docx file.
Do:
 Insert > OLE Object > QR or Barcode
enter some content in it, preferable a URL, and save it.
Open it. 

Actual Results:
QR-code after save and open the .docx becomes only an image.

Expected Results:
that created/converted from .odt QR-codes remain QR-codes, and not (just correct-looking) images


Reproducible: Always


User Profile Reset: No

Additional Info:
will try the instruct below to reset profile (but I doubt it's the case)
will attach a file that shows a correct looking image that is not, but was created as, QR-code.
It'll have meta info in it that shows it's linux and more.
Comment 1 dano.blisst 2025-06-19 21:34:58 UTC
Created attachment 201365 [details]
docx with QR-code turned into image only (correct for scanning, but image only)

The QR-code is not anymore a QR-code, but was created as such.
Comment 2 m_a_riosv 2025-06-20 00:45:25 UTC
Please attach a sample file(s), that works fine with Word,
and paste in the answer the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 3 dano.blisst 2025-06-20 14:26:25 UTC
> and paste in the answer the information in Menu/Help/About LibreOffice, there
> is a copy icon.

Version: 25.2.3.2 (X86_64) / LibreOffice CommunityBuild ID: 520(Build:2)
CPU threads: 16; OS: Linux 6.15; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Debian package version: 4:25.2.3-2
Calc: threaded

> Please attach a sample file(s), that works fine with Word,
However, I don't have Word so I can't check. The thing is, LiberOffice on my machine, when new file is open as .docx, can edit and create QR-codes.
My LibreOffice can also convert a previously created .odt file into .docx file. Simply by opening it and saving as .docx.
And it does allow editing of the QR-code, deleting of it, and creating new, anything, basically.
However, as soon as it is saved, upon reopening the QR-code is not it anymore, it is correctly looking image of the QR-code, meaning when scanned it gives the right content, but it is just an image, it is not editable as QR-code anymore.

I hope some pure-Linux (no Windows) user can confirm this issue.

Thanks for looking into this.
Comment 4 Takenori Yasuda 2025-06-21 01:09:13 UTC
I looked into this briefly while checking how MS Word handles QR codes.

From what I could gather, Word's QR code capability is quite different from LibreOffice's. It appears to rely on MS Access integration, mainly for address database scenarios, and doesn't offer a general-purpose QR code generator like LibreOffice does.

Without that integration, it seems there's no way to create comparable QR codes in Word—so the feature in LibreOffice is essentially unique and not something Word can natively handle.

Given that, the behavior described here—where QR codes turn into static images after saving and reopening in .docx—seems consistent with the limitations of the format and Word's lack of support for this kind of object.

Personally, I would see this as either "Not a bug", "Not our bug", or possibly "Won’t fix", since it appears to be functioning as designed given the interoperability constraints.
Comment 5 dano.blisst 2025-06-21 11:37:59 UTC
Some context.
Looking up at:
https://ask.libreoffice.org/latest
and looking up the half year's worth of the latest topics, there are only two that contain QR in the title.

And only this one is in English:
https://ask.libreoffice.org/t/qr-codes-on-labels-data-in-spreadsheet/121079

And, reading it, one gets to the 6 years old bug:
https://bugs.documentfoundation.org/show_bug.cgi?id=128779

I'm not sure if solving that bug (still in the NEW status) would help here.
A confirmation by a solely-Linux user would indeed be very helpful.

However, since I've been suggested to change the status back to UNCONFIRMED, I will comply.

Sad to read what Takenori found in comment:
https://bugs.documentfoundation.org/show_bug.cgi?id=167123#c4

If QR-codes are an important part of your write document, apparently, it is, and will remain, impossible to create documents with QR-codes that don't turn to static images, in LO, after save and reopen (albeit images that give correct content when scanned).

And that means that editing the QR-codes in those documents can only be done by re-creating those codes. And that's a gross setback for the eventual colleage who wants to edit such documents. say if I create them in LO in Linux, and offer them to her who only has MS Windows Office.

Will mark status back, and will occasionally follow here, if there are, who knows, real solutions, or good workaround for this.
Comment 6 Telesto 2025-06-22 10:53:17 UTC
The QR-codes are stored as SVG in ODT. The are converted to PNG on DOCX export. DOCX doesn't support SVG too my knowledge. I have no idea about the QR implementation in Word

Somewhat related: bug 51510
Comment 7 Buovjaga 2025-12-30 17:54:40 UTC
(In reply to dano.blisst from comment #5)
> Some context.
> Looking up at:
> https://ask.libreoffice.org/latest
> and looking up the half year's worth of the latest topics, there are only
> two that contain QR in the title.
> 
> And only this one is in English:
> https://ask.libreoffice.org/t/qr-codes-on-labels-data-in-spreadsheet/121079
> 
> And, reading it, one gets to the 6 years old bug:
> https://bugs.documentfoundation.org/show_bug.cgi?id=128779
> 
> I'm not sure if solving that bug (still in the NEW status) would help here.

It would not help as the request is just about making it possible to create QR codes via the API.