Bug 100415 - docx file opens in draw instead of writer
Summary: docx file opens in draw instead of writer
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.1.1.2 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-15 20:55 UTC by JPJ
Modified: 2016-06-15 22:06 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 JPJ 2016-06-15 20:55:50 UTC
The file https://www.clemson.edu/procurement/documents/travel/TravelReimbursementQuickGuide.docx opens in Draw instead of Writer both from within LibreOffice via the File -> Open... dialog and from the command line.  Then the file is displayed on a portrait oriented Draw page but it appears that the contents are landscape oriented with text running off the sides of the Draw page.

I first noticed this behavior in LibreOfficeDev 5.2 which produces no error when opening the file at the command line.  LibreOffice 5.1 does produce an error:

$ /opt/libreoffice5.1/program/swriter TravelReimbursementQuickGuide.docx 
:1: parser error : Document is empty
%PDF-1.3
^
:1: parser error : Document is empty
%PDF-1.3
^
:1: parser error : Document is empty
%PDF-1.3
^
$

Version: 5.1.1.2
Build ID: fe4d9e69c82c6ee6db3c27cd5e2d47558afa80ac
CPU Threads: 4; OS Version: Linux 3.13; UI Render: default;
Locale: en-US (en_US.UTF-8)
OS:  Kubuntu 14.04.4

Version: 5.2.0.0.beta2
Build ID: ae12e6f168ba39f137fc110174a37c482ce68fa4
CPU Threads: 4; OS Version: Linux 3.13; UI Render: default;
Locale: en-US (en_US.UTF-8)
OS:  Kubuntu 14.04.4
Comment 1 MM 2016-06-15 21:40:52 UTC
This file is a pdf with a docx extension. So it's fully correct it's opened in draw.
Comment 2 JPJ 2016-06-15 22:06:13 UTC
How bizarre.  I didn't think of someone creating a PDF file and calling it a docx file.  It does open fine with Okular.