Bug 106709 - Please add ability to add/delete/edit/manage table of contents of PDF
Summary: Please add ability to add/delete/edit/manage table of contents of PDF
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-22 22:17 UTC by yousifjkadom
Modified: 2018-02-23 16:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
example (6.15 MB, application/pdf)
2017-06-07 10:46 UTC, yousifjkadom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yousifjkadom 2017-03-22 22:17:08 UTC
Currently LibreOffice Draw has no such abilities. Please can you add these abilities?
Comment 1 Xisco Faulí 2017-03-23 10:43:28 UTC Comment hidden (obsolete)
Comment 2 yousifjkadom 2017-06-07 10:44:09 UTC
Hi. I'm so sory for this delay !

I mean by outline of PDF, table of contents (or some time called bookmarks).

Please open attached PDF file. It is a medical book about drugs. It contain an outline (table of contents) in the form of tree. Please open it in Okular & select outline instead of thumbnails

This is the outline of PDF.

So, I mean adding abilities to:

1) create such outline from scratch,

2) delete an outline (single outline), 

3) delete all outlines (delete table of contents: click on one of them then Ctrl+A then either right click then delete or click on "delete" key from keyboard),

4) ability to change depth of an outline within tree,

5) ability to change location to which an outline refer ....

---------------------

By the way, office & ODF documents also has option to add & modify table of contents, so why L.O draw has no such abilities for PDF files ? Currently L.O draw support thumbnails only.

Best.
Comment 3 yousifjkadom 2017-06-07 10:46:33 UTC
Created attachment 133894 [details]
example
Comment 4 yousifjkadom 2017-06-07 16:46:21 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2017-06-10 18:43:45 UTC
(In reply to yousifjkadom from comment #2)
> By the way, office & ODF documents also has option to add & modify table of
> contents, so why L.O draw has no such abilities for PDF files ? Currently
> L.O draw support thumbnails only.
> 
> Best.

Because PDF is not a dynamic document. It's like if you asked "why can't LibreOffice generate ToC from these carved stone tablets?". PDF is meant for printing, not editing. Thus editing it is kind of like editing a photograph in GIMP.

When you open a PDF in Draw, it stops being a PDF. It is converted to internal Draw elements.
Comment 6 Dieter 2017-07-11 20:31:51 UTC
(In reply to yousifjkadom from comment #0)
> Currently LibreOffice Draw has no such abilities. Please can you add these
> abilities?

I'm not sure, what you like to do. I assume that you want to export a document from Draw to PDF. This document should show the structure of the document (like in your example)

I have no experiences with that in Draw, but it is at least possible with writer. If you have headings in your document choose File => Export as PDF => General => Export bookmarks.

There are the same settings when you export a document in Draw. So have you already tried to export an document with bookmarks from Draw in this way?

Set to NEEDINFO
Comment 7 QA Administrators 2018-01-29 10:27:09 UTC Comment hidden (obsolete)
Comment 8 yousifjkadom 2018-02-23 15:57:02 UTC
@Dieter Praas

I did not talk in this bug about export PDF with bookmarks (outline). I meant: 

1) creating (adding) new (completely new) bookmarks from scratch to PDF by using L.O Draw,

2) using L.O Draw to modify (edit) already existing bookmarks of PDF.

Please read my comment 2 in this thread
Comment 9 Buovjaga 2018-02-23 16:22:01 UTC
(In reply to yousifjkadom from comment #8)
> 1) creating (adding) new (completely new) bookmarks from scratch to PDF by
> using L.O Draw,
> 
> 2) using L.O Draw to modify (edit) already existing bookmarks of PDF.

When you open a PDF in Draw, it stops being a PDF. Thus, everything you do after importing will produce a new file "from scratch".