Download it now!
Bug 98219 - PDF export: Add page labels / consistent page numbering per W3C PDF17
Summary: PDF export: Add page labels / consistent page numbering per W3C PDF17
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: dataLoss, filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2016-02-27 10:20 UTC by Ophir LOJKINE
Modified: 2017-11-23 15:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The original document (8.89 KB, application/vnd.oasis.opendocument.text)
2016-02-27 10:20 UTC, Ophir LOJKINE
Details
The PDF generated by LibreOffice (15.51 KB, application/octetstream)
2016-02-27 10:22 UTC, Ophir LOJKINE
Details
The PDF file that should have been generated (15.64 KB, application/octetstream)
2016-02-27 10:34 UTC, Ophir LOJKINE
Details
Compare generated and expected (36.82 KB, image/jpeg)
2016-02-27 16:57 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ophir LOJKINE 2016-02-27 10:20:57 UTC
Created attachment 123027 [details]
The original document

When exporting a document with custom page numbers, the page numbers are not exported.

The pdf file format supports "page labels", that allow to restart page numbering inside a document, so that the page numbers displayed by the PDF reader will match the page numbers of the document.

The attached odt file has two pages, which both have "1" as a page number.
When the file is exported in PDF, the PDF won't have Page Labels. That means that the second page will be attributed a page number of "2"  instead of "1".
Comment 1 Ophir LOJKINE 2016-02-27 10:22:39 UTC
Created attachment 123028 [details]
The PDF generated by LibreOffice

The PDF exported by libreoffice doesn't have page labels.
Comment 2 Ophir LOJKINE 2016-02-27 10:34:11 UTC
Created attachment 123030 [details]
The PDF file that should have been generated

This is the pdf exported by libreoffice, to which I added page number informations manually. Open it in a PDF viewer that supports page annotation (Adobe reader, and evince do) to see the difference in displayed page numbers in the GUI of the reader.
Comment 3 Ophir LOJKINE 2016-02-27 12:23:36 UTC
Explanations about the /PageLabel functionality of the PDF file format: https://www.w3.org/TR/WCAG20-TECHS/PDF17.html
Comment 4 Timur 2016-02-27 16:57:01 UTC
Created attachment 123043 [details]
Compare generated and expected
Comment 5 Cor Nouws 2017-11-23 15:01:20 UTC
Is this option included in PDF/A-2, or ?