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.
Created attachment 188812 [details] Apple Pages source document
Created attachment 188813 [details] Results of export from Apple pages
Created attachment 188814 [details] Results of "Save As" from Apple Pages
Created attachment 188815 [details] Results of command-line-convert
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.
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.
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)