https://bugs.kde.org/show_bug.cgi?id=518188
Bug ID: 518188
Summary: PDF Print Preview shows infinite loading spinner
(TypeError: displayPdf is not a function), but "Save"
button still works
Classification: Applications
Product: KleverNotes
Version First 1.2.5
Reported In:
Platform: NixOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Print
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 191044
--> https://bugs.kde.org/attachment.cgi?id=191044&action=edit
Print to PDF dialog showing infinite loading spinner (preview never renders).
Terminal output displays the error: TypeError: Property 'displayPdf' of object
MainPage_QMLTYPE_300 is not a function
SUMMARY
PDF Print Preview shows infinite loading spinner (TypeError: displayPdf is not
a function), but "Save" button still works
STEPS TO REPRODUCE
1. Launch KleverNotes from a terminal (to capture console output).
2. Open any note and press Ctrl+P (or click the Print icon).
3. Select "Print to pdf".
4. Observe the dialog:
- The main area shows a loading spinner that never completes.
- The top toolbar is visible and interactive (Color theme, Background,
Save).
5. Click the "Save" button.
6. Observe that the file saves successfully as a PDF, despite the broken
preview.
7. Check the terminal for the TypeError.
OBSERVED RESULT
- The preview area shows an infinite loading spinner and never renders the
document.
- The console logs: `TypeError: Property 'displayPdf' of object
MainPage_QMLTYPE_300(...) is not a function`
- However, the "Save" button works correctly and generates a valid PDF file.
- Changing "Color theme" or toggling "Background" correctly affects the styling
of the saved PDF, confirming that the export backend is functional.
EXPECTED RESULT
After selecting "Print to pdf", the main area of the dialog should render a
preview of the document (similar to a print preview), allowing the user to
verify the layout before saving.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS 25.05 (Warbler), packages from nixpkgs-unstable
(26.05pre)
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Additional packages used by KleverNotes:
- Kirigami: 6.14.1
- Kirigami Addons: 1.7.0
- qtwebengine: 6.9.1
ADDITIONAL INFORMATION
- Reproducibility: 100% (on every attempt).
- Workaround: Users can still export to PDF by ignoring the loading spinner and
clicking the "Save" button directly.
- Technical note: The error `qrc:/contents/ui/textEditor/TextDisplay.qml:87:
TypeError: Property 'displayPdf' is not a function` suggests that the
`displayPdf` function is missing or not properly exposed to the QML context,
causing the preview loader to hang while the export logic remains unaffected.
--
You are receiving this mail because:
You are watching all bug changes.