Bug 156643 - FILEOPEN: missing table of contents in Apple Pages document
Summary: FILEOPEN: missing table of contents in Apple Pages document
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libetonyek (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Apple-iWork
  Show dependency treegraph
 
Reported: 2023-08-06 22:12 UTC by Patrick
Modified: 2024-04-27 02:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Apple Pages source document (88.15 KB, application/x-iwork-pages-sffpages)
2023-08-06 22:14 UTC, Patrick
Details
Results of export from Apple pages (19.45 KB, application/pdf)
2023-08-06 22:15 UTC, Patrick
Details
Results of "Save As" from Apple Pages (19.11 KB, application/pdf)
2023-08-06 22:15 UTC, Patrick
Details
Results of command-line-convert (14.88 KB, application/pdf)
2023-08-06 22:15 UTC, Patrick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2023-08-06 22:12:51 UTC
Description:
There seem to be difference between an Apple Pages document generated using command-line and through GUI . 

When I generate the file using the command-line, the table of contents is missing.

I expect that the file generated through the command line should also include the table of contents.

I used the following command to generate the PDF:

/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to pdf:"writer_pdf_Export" --infilter="Apple Pages" "Untitled.pages"     


Steps to Reproduce:
1. Download Untitled.pages

2. Run the following command in the folder with Untitled.pages. Notice that the table of contents is missing on page 2.

/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to pdf:"writer_pdf_Export" --infilter="Apple Pages" "Untitled.pages"     
 
3. Open Untitled.pages in Apple Pages, File > Export to > PDF then click Save. Notice that the table of contents is not missing.

4. Open Untitled.pages in Apple Pages, File > Print, click the pdf button, click the save button. Notice that the table of contents is not missing.

Actual Results:
The table of contents is missing in the command-line-generated file.

Expected Results:
I expect the table of contents to be present in the command-line-generated file.


Reproducible: Always


User Profile Reset: No

Additional Info:
% /Applications/LibreOffice.app/Contents/MacOS/soffice --version 
LibreOffice 7.5.5.2 ca8fe7424262805f223b9a2334bc7181abbcbf5e
%

% sw_vers
ProductName:		macOS
ProductVersion:		13.4.1
ProductVersionExtra:	(c)
BuildVersion:		22F770820d
% 

I am running a Macbook pro M2.
Comment 1 Patrick 2023-08-06 22:14:11 UTC
Created attachment 188812 [details]
Apple Pages source document
Comment 2 Patrick 2023-08-06 22:15:16 UTC
Created attachment 188813 [details]
Results of export from Apple pages
Comment 3 Patrick 2023-08-06 22:15:37 UTC
Created attachment 188814 [details]
Results of "Save As" from Apple Pages
Comment 4 Patrick 2023-08-06 22:15:54 UTC
Created attachment 188815 [details]
Results of command-line-convert
Comment 5 Stéphane Guillou (stragu) 2023-08-28 08:07:42 UTC
Thank you for the report, Patrick.
When you open the file in LibreOffice, do you see the Table of Contents?
I don't see it in lo 7.5.5 or 7.6.0 on Linux, so the issue might not be specific to the export filter you used, but rather to the import filter.
Comment 6 Patrick 2023-08-28 17:55:00 UTC
Thank you for your response, Stéphane.

When I open Untitled.pages in LibreOffice, I do NOT see the table of contents on Page 2 like I do when I open the file in Apple Pages.
Comment 7 Stéphane Guillou (stragu) 2023-08-28 22:12:29 UTC
OK let's set to NEW, and adapt the summary as this looks like an import filter issue.

Confirmed in:

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

As well as:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e7496f41562b75ea9732ca48f9aa0c07b69e424f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

(in 7.1, Pages documents were imported empty)