Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Nov 12, 2023
1 parent a8b784d commit 7a3f761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf/examples/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() -> Result<(), PdfError> {
Op::Close,
Op::Stroke,
]);
let mut new_page = PageBuilder::from_content(content);
let mut new_page = PageBuilder::from_content(content, &NoResolve)?;
new_page.media_box = Some(pdf::object::Rect {
left: 0.0,
top: 0.0,
Expand All @@ -50,7 +50,7 @@ fn main() -> Result<(), PdfError> {
resources.fonts.insert("f1", font);
*/

new_page.resources = Some(MaybeRef::Indirect(builder.storage.create(resources)?));
new_page.resources = resources;
pages.push(new_page);

let catalog = CatalogBuilder::from_pages(pages);
Expand Down

0 comments on commit 7a3f761

Please sign in to comment.