Skip to content

Commit

Permalink
v0.2.22
Browse files Browse the repository at this point in the history
  • Loading branch information
yh202109 committed Aug 27, 2024
1 parent 76a4bce commit 02cdccc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/std_iso_pdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
}
},
"source": [
"## PDF File Summary\n",
"\n",
"To use `mtbp3.stdiso`:"
]
},
Expand Down Expand Up @@ -115,6 +117,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Image \n",
"\n",
"We can see that there is one image in the 3rd page from the summary above. \n",
"To extract the first image on the 3rd page:"
]
Expand Down Expand Up @@ -145,6 +149,7 @@
"source": [
"from IPython.display import Image \n",
"\n",
"img.resize(width=300)\n",
"display(img)"
]
},
Expand All @@ -156,7 +161,7 @@
}
},
"source": [
"To save the image to a file, add an existing folder path using `outfolder='add_path_here'`."
"To save the 2nd image on the 4th page to a file, add an existing folder path using `outfolder='add_path_here'`:"
]
},
{
Expand All @@ -170,7 +175,7 @@
"outputs": [],
"source": [
"img_path = pfr.get_image(page_index=3, image_index=1, outfolder='.')\n",
"img = Image(filename=img_path)\n",
"img = Image(filename=img_path, width=300)\n",
"display(img)"
]
},
Expand Down

0 comments on commit 02cdccc

Please sign in to comment.