Bug 393869 - Markdown backend: Set page format
Summary: Markdown backend: Set page format
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.3.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-05 09:19 UTC by Gregor Mi
Modified: 2022-12-20 23:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.