Bug 393869

Summary: Markdown backend: Set page format
Product: [Applications] okular Reporter: Gregor Mi <codestruct>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 1.3.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gregor Mi 2018-05-05 09:19:32 UTC
I discovered that Okular and the Markdown backend do a pretty good job in rendering markdown to pdf including clickable hyperlinks: Open md file and use File -> Export -> PDF.

It would be nice if the output paper format was configurable. On my system it seems to be fixed at A4.
Comment 1 kde 2021-11-05 17:47:26 UTC
The relevant code is located at https://invent.kde.org/graphics/okular/-/blob/master/core/textdocumentgenerator.cpp#L489-499.

Currently only QPrinter::setOutputFormat() is called; QPrinter::setPageSize() needs to be added for this to work.