Skip to content

Commit

Permalink
provide easier access to the FormDict
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed May 30, 2021
1 parent 92514c8 commit 390fec1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pdf/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ pub struct FormXObject {
pub operations: Vec<Op>,
pub stream: Stream<FormDict>,
}
impl FormXObject {
pub fn dict(&self) -> &FormDict {
&self.stream.info.info
}
}
impl Object for FormXObject {
/// Convert primitive to Self
fn from_primitive(p: Primitive, resolve: &impl Resolve) -> Result<Self> {
Expand Down

0 comments on commit 390fec1

Please sign in to comment.