Bug 144071 - Check page range correctness already in PDF export dialog
Summary: Check page range correctness already in PDF export dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected) release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Print-Dialog PDF-Export
  Show dependency treegraph
Reported: 2021-08-25 01:01 UTC by Alexander
Modified: 2021-09-17 07:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2021-08-25 01:01:31 UTC
When I export some pages to pdf from LibreOffice Draw, there are some bugs:
1. No checking of pages range (for example, if I select page number 235 from the 10 pages document - no problem :)
2. If I use 'Selected' page from the dialog for the export, only first page of the document exports to the resulting file.
Pease, check these bugs.

Best regards!

Actual Results:
No correct pages export to pdf

Expected Results:
Correct expot to pdf

Reproducible: Always

User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: ru
Module: DrawingDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 yellowplane 2021-09-16 16:11:01 UTC
Partially reproduced in

Version: (x86) / LibreOffice Community
Build ID: d5e55d204b71710eb5eb5d2c683dd6698626df3c
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_US); UI: en-US
Calc: threaded

For the first bug, I entered a page number that was not within the page range of the document (I had 3 pages and entered that I want to export page 5). I did not get an error message until after I attempted to save the document to my pc. There is a delayed check for the page range.

For the second bug, I used the "Selection" option under "Range" when exporting to PDF. I had three pages and only selected the 2nd and 3rd pages to export, but all 3 pages were exported.
Comment 2 Buovjaga 2021-09-16 17:06:48 UTC
Note: one issue per report.

Your second issue is bug 33982

Let's keep this for the first proposal and change summary accordingly. Let's ask what UX team thinks about erroring early regarding an out-of-range situation.
Comment 3 Heiko Tietze 2021-09-17 07:05:12 UTC
The PDF export dialog is even better in this regards then print as it shows an error message! Try print with "(o) Pages  = Hello World" - print to file asks for a filename but doesn't create any and on the next start you get the print dialog badly initialized and printing is not possible.

Back to the question: For proper usability the user input needs to be checked on every keypress. If the range is impossible to print or export we have to disable the confirmative button (Print/Export).