Bug 102497 - File conversion results garbled on windows and "parser error: document is empty" on centos command
Summary: File conversion results garbled on windows and "parser error: document is emp...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.1.2 release
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-24 02:23 UTC by longg
Modified: 2023-07-20 19:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
This is my source files testfile2.doc (100.21 KB, application/msword)
2016-09-24 02:23 UTC, longg
Details
result after transform to PDF (430.60 KB, application/pdf)
2023-07-20 19:06 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description longg 2016-09-24 02:23:40 UTC
Created attachment 127595 [details]
This is my  source files testfile2.doc

this file named "testfile2.doc".
when i open this file by libreoffice on windows7, file conversion results garbled .

when i convert this file by soffice command  on centos6.7,  the result is
[root@localhost ~]# /opt/yliyun/plugins/libreoffice/program/soffice.bin --headless --convert-to pdf --outdir /tmp /tmp/testfile2.doc
:1: parser error : Document is empty
MIME-version: 1.0
^
Comment 1 Buovjaga 2016-10-09 14:38:07 UTC
It is not a doc file, but an email file. Closing.
Comment 2 Urmas 2016-10-09 19:47:53 UTC
The document is recognizable by MS Word, so that's still a bug.
Comment 3 QA Administrators 2018-04-28 02:31:59 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2020-04-28 03:40:32 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2022-04-29 03:44:34 UTC Comment hidden (obsolete)
Comment 6 BogdanB 2023-07-20 19:05:48 UTC
I succeded to transform it into PDF

instdir/program/soffice --headless --convert-to pdf --outdir /home/ /home/testfile2.doc
convert /home/testfile2.doc as a Writer document -> /home/testfile2.pdf using filter : writer_pdf_Export

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 7 BogdanB 2023-07-20 19:06:17 UTC
Created attachment 188500 [details]
result after transform to PDF