|
@@ -28,6 +28,7 @@ struct Page {
|
|
|
Rectangle media_box;
|
|
|
Rectangle crop_box;
|
|
|
float user_unit;
|
|
|
+ int rotate;
|
|
|
};
|
|
|
|
|
|
class Document final : public RefCounted<Document> {
|
|
@@ -121,13 +122,14 @@ template<>
|
|
|
struct Formatter<PDF::Page> : Formatter<StringView> {
|
|
|
void format(FormatBuilder& builder, const PDF::Page& page)
|
|
|
{
|
|
|
- constexpr auto fmt_string = "Page {{\n resources={}\n contents={}\n media_box={}\n crop_box={}\n user_unit={}\n}}";
|
|
|
+ constexpr auto fmt_string = "Page {{\n resources={}\n contents={}\n media_box={}\n crop_box={}\n user_unit={}\n rotate={}\n}}";
|
|
|
auto str = String::formatted(fmt_string,
|
|
|
page.resources->to_string(1),
|
|
|
page.contents->to_string(1),
|
|
|
page.media_box,
|
|
|
page.crop_box,
|
|
|
- page.user_unit);
|
|
|
+ page.user_unit,
|
|
|
+ page.rotate);
|
|
|
Formatter<StringView>::format(builder, str);
|
|
|
}
|
|
|
};
|