Hwp file convert to pdf

Unable to convert this hwp file into pdf example.hwp

When running this command as bellow

/opt/libreoffice7.2/program/soffice -env:SingleAppInstance=false -env:UserInstallation=file:///tmp/tmp-258-gwdtLJdGCI4r --headless --convert-to txt --outdir /tmp/tmp-258-gwdtLJdGCI4r /usr/src/app/public/task/615e893534a1aa25e0ed1728/example.hwp

I am getting this error
Error: source file could not be loaded

But same command works ok for this file
https://bugs.documentfoundation.org/attachment.cgi?id=87091
Here is the command

/opt/libreoffice7.2/program/soffice -env:SingleAppInstance=false -env:UserInstallation=file:///tmp/tmp-258-4cAwIqi4d4R6 --headless --convert-to txt --outdir /tmp/tmp-258-4cAwIqi4d4R6 /usr/src/app/public/task/615e890434a1aa25e0ed1723/hangul97.hwp

Trying to open example.hwp with Writer says “The file is corrupt”. This means either the input filter/converter does not understand some encoding (the file is saved in a newer format version) or the file has been damaged by some manipulation.

Check the original file with a Hangul processor capable of handling .hwp.

1 Like

A cargo cult detected, with a configuration from a PortableApps launcher’s INI file misused in a LibreOffice-specific -env: switch, where is is not handled in any way.

You are not telling us that you are storing arbitrary documents from the internet under /usr/scr/…, are you? Possibly even as root?

Anyway, if you do such nasty thing then check the directory and file permissions if the user you’re running soffice with can actually access them. And no, running that as root is not a solution.

The user has proper permission. I understand your concerns. But it is out of the context of the question

Try this extension, H2Orestart » Extensions.
HWP supports in Libreoffice is for the old “hwp” format. Around 1997.

For newer format version, you will need that extension.