Bug 98219

Summary: PDF export: Add page labels / consistent page numbering per W3C PDF17
Product: LibreOffice Reporter: Ophir LOJKINE <pere.jobs>
Component: Printing and PDF exportAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: cno, pere.jobs, rgb.mldc
Priority: medium Keywords: dataLoss, filter:pdf
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=52316
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103378    
Attachments: The original document
The PDF generated by LibreOffice
The PDF file that should have been generated
Compare generated and expected

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 ?