[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

Cor Nouws  changed:

   What|Removed |Added

 CC||c...@nouenoff.nl

--- Comment #17 from Cor Nouws  ---
Hi Crun,

thanks for helping with this issue.

(In reply to crun from comment #8)

> But YES, if the LO intention was only to export LO bookmarks, then a feature
> request for automatically making NamedDestinations from ToC / PDF bookmarks
> is needed.

If you expect TOC entries, i.e. the headings in a file to be Named Destinations
too, then yes.

As Jos pointed out, Named Destinations are created. But only from the bookmarks
(to names objects). And the resulting Named Destinations are not visible as
bookmark in a PDF reader side panel, since it are destinations "to link to
those objects by name from other documents."

> In that case the wording / tooltip needs to be changed to remove the
> ambiguity between LO book marks and PDF bookmarks
> "Export LibreOffice bookmarks as Named Destinations"

What tooltip, please? What is the wording and what would you suggest?

> And the help should be edited also, as well as provinding an explanation of
> NamedDestinations. 

What would you propose to improve in
https://help.libreoffice.org/Common/Export_as_PDF#Export_bookmarks_as_named_destinations
?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #16 from Jos van den Oever  ---
LibreOffice can already write \FitR.

https://cgit.freedesktop.org/libreoffice/core/tree/vcl/source/gdi/pdfwriter_impl.cxx#n3699
https://cgit.freedesktop.org/libreoffice/core/tree/vcl/source/gdi/pdfwriter_impl.cxx#n5559

The destination name is indeed escaped. I cannot really follow the reasoning in
the comment of that function.

https://cgit.freedesktop.org/libreoffice/core/tree/vcl/source/gdi/pdfwriter_impl.cxx#n638

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #15 from Jos van den Oever  ---
There is no need to convert '_' in a bookmark name to 5F. In PDF 'The name may
include any regular characters, but not delimiter or white-space  characters 
(see  
Section  3.1,  “Lexical  Conventions”).'

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #14 from Jos van den Oever  ---
Created attachment 137941
  --> https://bugs.documentfoundation.org/attachment.cgi?id=137941&action=edit
pdf file created from nd.odt with named destinations

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #13 from Jos van den Oever  ---
Created attachment 137940
  --> https://bugs.documentfoundation.org/attachment.cgi?id=137940&action=edit
odt file with 

Converting this file to PDF with the option to convert bookmarks to named
destinations will create named destinations in the PDF.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #12 from Jos van den Oever  ---
An ODF with  that is exported to PDF with
'Export bookmarks as named destinations' will get a named destination
'Test5F2'. The character '_' is changed to '5F'.

The named destinations in PDF files can be investigated with qpdf.

qpdf --qdf --object-streams=disable in.pdf out.pdf

This gives e.g.:

```
%% Original object ID: 44 0
1 0 obj
<<
  /Dests 3 0 R
...
%% Original object ID: 29 0
3 0 obj
<<
  /Test5F1 [
6 0 R
/XYZ
56.7
773.1
0
  ]
  /Test5F15F1 [
6 0 R
/XYZ
56.7
736.2
0
  ]
```

The destinations that LO writes out are points on pages (/XYZ). One could point
to rectangles by using /FitR instead of /XYZ. Such a rectangle cannot span page
boundaries.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #11 from Buovjaga  ---
(In reply to Xisco Faulí from comment #10)
> @Buovjaga, Any change the documentation can be improved here? Should a
> different issue be created?

Not until we get feedback on how this stuff actually works.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-11-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

Xisco Faulí  changed:

   What|Removed |Added

 CC||xiscofa...@libreoffice.org

--- Comment #10 from Xisco Faulí  ---
@Buovjaga, Any change the documentation can be improved here? Should a
different issue be created?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

Buovjaga  changed:

   What|Removed |Added

   Keywords||needsDevAdvice

--- Comment #9 from Buovjaga  ---
The documentation is here:
https://help.libreoffice.org/Common/Export_as_PDF#Export_bookmarks_as_named_destinations

It says:
"The bookmarks (targets of references) in PDF files can be defined as
rectangular areas. Additionally, bookmarks to named objects can be defined by
their names. Enable the checkbox to export the names of objects in your
document as valid bookmark targets. This allows you to link to those objects by
name from other documents."

Frankly, I don't understand it. I tried creating some shapes in Writer, then
Format - Name to give them names (they show in the Navigator), but there is no
way I can *insert a bookmark pointing to them*. The named objects also do not
magically create "named destinations" as proven by the pdfresizer.com test.

I was also unable to "link to those objects by name from other documents" -
Insert - Link - Target in document does not show the named drawing shapes in
the list.

I have to consult some gurus.

One thing is clear: the documentation needs improvement.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #8 from crun  ---
I added LO bookmarks - still no named destinations.

So it does definitely appear to be a bug.

The help says this, which I interpret as meaning the ToC entries
---
"Export bookmarks

Select to export bookmarks of Writer documents as PDF bookmarks. Bookmarks are
created for all outline paragraphs (Tools - Outline Numbering) and for all
table of contents entries for which you did assign hyperlinks in the source
document."



But YES, if the LO intention was only to export LO bookmarks, then a feature
request for automatically making NamedDestinations from ToC / PDF bookmarks is
needed.

In that case the wording / tooltip needs to be changed to remove the ambiguity
between LO book marks and PDF bookmarks
"Export LibreOffice bookmarks as Named Destinations"
And the help should be edited also, as well as provinding an explanation of
NamedDestinations. (I would be happy to do this - better see if it is a wiki
and I can just do it)

Note that the L.O bookmarks don't appear in the PDF bookmarks or ToC. What are
they supposed to be for?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #7 from crun  ---
Created attachment 130249
  --> https://bugs.documentfoundation.org/attachment.cgi?id=130249&action=edit
Test file with LO bookmarks added

This version has 2x LO bookmakrs added.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #6 from Buovjaga  ---
(In reply to crun from comment #4)
> Thanks B. 
> You have attached the ODT, not PDF. When I try exporting it to PDF I don't
> get any nameddests

Yeah, sorry about the mistake.. I was also confused, as I had no actual idea,
what the named destinations were in practice. I thought it would be enough to
confirm the links are created in the PDF ToC. Apparently my ignorant guess was
wrong.

But the point is: you are talking about the option "Export bookmarks as named
destinations", while you have 0 bookmarks in your file. Bookmarks are created
with Insert - Bookmark.

Do you want to turn this report into an enhancement request about having an
option for turning ToC entries to named destinations?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

Buovjaga  changed:

   What|Removed |Added

 Attachment #130055|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #5 from crun  ---
Madar has put my NamedDestination lister online here: 

https://pdfresizer.com/list-named-destinations

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2017-01-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #4 from crun  ---
Thanks B. 
You have attached the ODT, not PDF. When I try exporting it to PDF I don't get
any nameddests


What I expect is that TOC entries which appear in the PDF-Bookmarks sidebar,
would also be PDF-NamedDestinations.
Note that the PDF-bookmarks (the bookmarks/index sidebar are not the same as
NamedDestinations, and there is no way to jump to them from the URL (blindingly
stupid though that is)


Madar has put my NamedDestination lister online here: 

https://pdfresizer.com/list-named-destinations

Can you see if you actually get NamedDestinations when you try your PDF file?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2016-12-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

Buovjaga  changed:

   What|Removed |Added

 CC||todven...@suomi24.fi

--- Comment #3 from Buovjaga  ---
Created attachment 130055
  --> https://bugs.documentfoundation.org/attachment.cgi?id=130055&action=edit
PDF file with OK result

Note that you have 0 bookmarks in your file. Check it with the Navigator.

Yet, even if I do not tick any checkboxes in PDF dialog Links tab, I do get the
Sec1 and Sec2 in the index of the PDF (checked with Okular).

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: fc0d4e6bc43d5f982452df07930f5ecf5927ad22
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on December 31st 2016

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2016-12-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #2 from crun  ---
Created attachment 129832
  --> https://bugs.documentfoundation.org/attachment.cgi?id=129832&action=edit
Python file that lists named destinations

I think acrobat pro will display them, otherwise use this to list them all.

usage: python ListNamedDestinations.py SomePDFFile.pdf

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2016-12-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

--- Comment #1 from crun  ---
Created attachment 129831
  --> https://bugs.documentfoundation.org/attachment.cgi?id=129831&action=edit
Small file that I would expect to contain named destinations

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 104804] PDF Export Named Destinations missing

2016-12-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=104804

Julien Nabet  changed:

   What|Removed |Added

Summary|PDF Export Named|PDF Export Named
   |Desitinations mssing|Destinations missing

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs