-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PDF orientation and page size #5679
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define ENUM_DECLARATION_CPP | ||
#include "pdfdefinition.h" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef PDFDEFINITION_H | ||
#define PDFDEFINITION_H | ||
#include "enumutilities.h" | ||
|
||
DECLARE_ENUM(pdfPageSize, letter = 0, legal, executive, A0, A1, A2, A3, A4, A5, A6); // Cf https://doc.qt.io/qt-6/qpagesize.html#PageSizeId-enum | ||
|
||
#endif // PDFDEFINITION_H |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,16 +51,17 @@ | |
.jasp-table-primitive { | ||
page-break-inside: avoid; | ||
} | ||
.jasp-table table { | ||
/* .jasp-table table { | ||
table-layout:fixed !important; | ||
width: 20cm !important; | ||
} | ||
width: 100% !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why comment this out, now jasp-table will be cut-off while printing a multiple cols table. I think overlap is better than cut off because cut off cannot be noticed easily by users. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This css obliged the table to be 20 cm wide (even if the table is self much smaller). This allows table that are wider than 20 cm to fit in a A4 format, but most of the time it is not a valid solution since the table is squeezed, and the columns overlapped each other. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, set 20cm explicitly is only for A4. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could set the exact size for each different combination of pagesize + orientation. But I wouldnt want to hold up the PR for that :p |
||
} */ | ||
|
||
.jasp-table table td { | ||
white-space: pre-wrap !important; | ||
word-wrap: break-all !important; | ||
} | ||
.jasp-rsyntax-container { | ||
max-width: 20cm !important; | ||
max-width: 95% !important; | ||
} | ||
} | ||
@page { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok pagesize has more options then I thought. But the question still stands for portrait and landscape...