question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML (altchunk) not supported/displayed when opening in LibreOffice

See original GitHub issue

Wanted to use docx templates in our process to generate a pdf report. Just spotted that LibreOffice isn’t displaying that HTML rendered with docx-templates altchunk at all.

Is it only me who is experiencing such problems? Is there any other option to render HTML that’s gonna be opened by LibreOffice?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
carlos-perucommented, May 18, 2021

So apparently this is due to lack of support for altchunk as it seems to be non-standard. Even MS Word re-formats/re-parses the files with altchunk if you “save as” the docx.

1reaction
FelixRellicommented, Dec 15, 2022

Instead of relying on altchunks it could be done similar to what https://www.npmjs.com/package/html-to-docx does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why LibreOffice doesn't show AltChunks in docx document?
I open Word and see this AltChunk . But LibreOffice doesn's show me this AltChunk . In case when i open document in...
Read more >
Docx generated using content control not compatible with libre ...
I have a document generating api in C# that fills the word template created using content controls. (literal, pics and altchunk). The api...
Read more >
HTML file doesn't open properly on LibreOffice 5
Hi, I am trying to convert an HTML file to PDF. But when I open the HTML file with LibreOffice 5 it doesn't...
Read more >
Word documents with injected MHTML - Ask LibreOffice
I tried to open such documents in LO Writer and I got empty document. ... The Word documents that using altchunks are not...
Read more >
Why isn't my formatting being saved in html - Ask LibreOffice
When I save my document in html, the formatting is not being saved. ... Opened with LibreOffice Writer it shows a (sorry) gauche...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found