Bug 104666 - Error: no export filter for docx found, aborting.
Summary: Error: no export filter for docx found, aborting.
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-14 05:59 UTC by ghazel
Modified: 2018-12-24 21:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ghazel 2016-12-14 05:59:06 UTC
$ cd /tmp
$ wget https://www.irs.gov/pub/irs-pdf/fw4.pdf
$ /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to docx fw4.pdf
Error: no export filter for /private/tmp/fw4.docx found, aborting.
Error: no export filter
Comment 1 Telesto 2016-12-14 07:57:13 UTC
Confirming with
Version: 5.4.0.0.alpha0+
Build ID: b52167df08511239c3d08904a3d12a3c92141f38
CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-12-09_23:41:33
Locale: nl-NL (nl_NL.UTF-8); Calc: group
Comment 2 Tess 2017-03-31 20:29:55 UTC Comment hidden (obsolete)
Comment 3 Tess 2017-03-31 20:37:40 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2018-04-02 02:27:45 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2018-12-24 20:22:16 UTC
Mike, are we have opportunity to convert from PDF to docx?
Comment 6 Mike Kaganski 2018-12-24 21:43:56 UTC
This is not a bug. Using --convert-to includes normal opening a document detecting the appropriate module; and then exporting from that module's data to a chosen format, *if such export filter exists for that module*.

As you possibly know, using LibreOffice GUI to handle PDFs opens them in Draw. You need to choose Writer's import filter explicitly to open PDF in Writer. And only from Writer you can export to a text document format like DOCX.

That is also true for CLI. The command line from comment 0 opens the PDF in Draw component, and then fails to find a suitable export filter.

You need to define import filter explicitly, like here:

> soffice --infilter="writer_pdf_import" --convert-to docx file.pdf

Closing NOTABUG.