[librsvg: 9/35] Comment on what a PDF dimensions mean




commit 0aaa2db0f2ba68c11d228138228dfb16bc6ac16c
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jun 11 15:50:04 2021 -0500

    Comment on what a PDF dimensions mean
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/547>

 tests/src/predicates/pdf.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/tests/src/predicates/pdf.rs b/tests/src/predicates/pdf.rs
index 5f364dc9..d90c9e62 100644
--- a/tests/src/predicates/pdf.rs
+++ b/tests/src/predicates/pdf.rs
@@ -73,10 +73,13 @@ enum Detail {
     CreationDate(DateTime<Utc>),
 }
 
+/// A PDF page's dimensions from its `MediaBox`.
+///
+/// Note that `w` and `h` given in `UserUnit`, which is by default 1.0 = 1/72 inch.
 #[derive(Debug)]
 struct Dimensions {
     w: i64,
-    h: i64,    //
+    h: i64,
     unit: f64, // UserUnit, in points (1/72 of an inch)
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]