Corrupted .rtf file with embeded fonts

Hello everyone!
I’m working on a program written in Java that uses LibreOffice to convert documents to .pdf format. Clients on their side use Microsoft Word.

The functionality of the program is such that through the program interface, clients upload documents to their server. It turns out that at first, the program reads the format and content of the document, then saves the content in .pdf and saves this document on the server.

I ran into a problem when working with a .rtf document that has the embed fonts option enabled. The problem is that when working with a document in Microsoft Word, everything works well. But if this document is opened in LibreOffice Writer (it doesn’t matter the version, I tried from 6.0.0.1 to 7.3.1), then the document is damaged, even if these are done manually, for example, on the Desktop in Windows. That is, the table inside the document is not displayed correctly. If I open it again in Microsoft Word, the document remains “damaged”. But if BEFORE these manipulations in Microsoft Word turn off the embed fonts option and then open it in LibreOffice or upload it to the server through my program, then everything will work fine. This error occurs both when working through the code and if this is done manually.

I think that the problem is related to this topic for the .doc and .docx format, but here I solved everything by switching from Windows Server 2016 to Windows Server 2019, but even on Windows Server 2019, the problem with .rtf remains. The same problem exists in Windows 10.

Can you tell me how to fix the problem so that the embed fonts function remains active? Because I can’t tell clients not to use embed fonts.

Thanks!

P.S.
Sorry, I can’t provide the actual file. It contains very important customer information. When editing or replacing text and after saving, the file is also saved damaged for the Word program. Therefore, I will leave a link to the image of the “normal” file and the damaged one, to make it clear what “corrupted” is.

Repetition?

In the last topic, nothing was suggested to me, except that clients do not save the file in .rtf format. Moreover, the answer was such that no one really understood and did not even study the question itself.
I want to know if this is a bug or if there is any solution before creating a topic and spamming in Bugzilla.

Avoid posting duplicates:

  • you clutter the site,
  • you confuse users, not knowing to which post to answer,
  • you confuse yourself because your duplicates may receive contradictory answers contributors won’t even be aware of because they don’t spend their time looking for potential duplicates.

If you want to “refresh” your question, simply edit it, adding a single line at bottom mentioning the issue is still important to you. This will bring it back at the top on the home page.

So now, please, close this duplicate to prevent partial answers and refresh the other one.

Never do anything like this before creating bug reports. You do no one any good. If something works not the way it should, just go ahead and file a bug.

You are asking some people here to do some work, prior to your asking other people at bug tracker to do some work. What is the difference - except for asking twice as much work?

And the worst that can happen with the bug report is being closed NOTABUG with explanation.

Avoid posting duplicates

Thank you, I understand and I’m sorry. I will close the previous topic. In this thread, I have described a bit more information.

I don’t ask anyone to do some. I ask for an answer to my question. And I’m trying to describe the question completely.

How do I know if this is a bug or not, maybe someone has come across this, and maybe it’s just me doing something wrong?

If I did something terrible with my question, I’m sorry. Now I will write only in Bugzilla. Thanks.

I am writing all that to you as both contributor here on Ask, a Bugzilla triager, someone who filed many bugs himself, and a developer. So I really know the topic.

When you see a document corrupted, there is no way it is an “intended” situation. It is obviously a bug. Of course, there are cases when it’s unclear, but definitely not in this case :wink:

When you ask a question, you do ask someone to do something - at least to answer (if they know it from the top of their heads), and most often, to check (even if they know that by heart, it never hurts to double-check, if e.g. a newest version didn’t break stuff; and if they don’t know - then by testing and seeing what you see, they might see the problem). But actually, what’s worse, you yourself are doing twice as much work - you have to write here, then you need to repeat it there. It’s really often that users get frustrated by doing work many times - which is the most prominent reason why I always advocate to file bugs without much ado - it is better to have a bug that is closed NOTABUG, than to not have a real bur reported just because the user got tired half way :wink:

I am writing as someone who hasn’t filed many bugs and doesn’t understand the topic. That’s why I’m asking. So I don’t know if this is a “special” case or not. It’s not obvious to me, no matter how incompetent I look.

Once again - thank you, I am writing to Bugzilla.