[okular] [Bug 436388] Printing page ranges doesn't work with "Print to File (PDF)"

Bernie Innocenti bugzilla_noreply at kde.org
Fri Apr 30 05:26:22 BST 2021


https://bugs.kde.org/show_bug.cgi?id=436388

--- Comment #1 from Bernie Innocenti <bernie at codewiz.org> ---
This happens with all KDE apps. The bug is probably in Qt:
https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/printsupport/dialogs/qprintdialog_unix.cpp#L820

A similar bug was fixed in Qt long ago:
https://bugreports.qt.io/browse/QTBUG-77351

The commit message of the fix reads:

  Unix: Disable complex page ranges widget when printing to pdf

  It doesn't work since it relies on cups to do the heavy lifting and cups
  is not used when printing to PDF

The code is still present in the Qt 5.15 branch:

  // Disable complex page ranges widget when printing to pdf
  // It doesn't work since it relies on cups to do the heavy lifting and cups
  // is not used when printing to PDF
  options.pagesRadioButton->setEnabled(outputFormat != QPrinter::PdfFormat);

Yet, the radio button remains enabled for me. So perhaps it's not working as
intended.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list