diff --git a/pdf/src/primitive.rs b/pdf/src/primitive.rs index 7bd5f81a..c7f05acb 100644 --- a/pdf/src/primitive.rs +++ b/pdf/src/primitive.rs @@ -298,6 +298,12 @@ impl Deref for Name { &self.0 } } +impl From for Name { + #[inline] + fn from(s: String) -> Name { + Name(s.into()) + } +} impl From for Name { #[inline] fn from(s: SmallString) -> Name {