From 02cdccc42ee6a98eb5073ce630ee82dc9dfa8979 Mon Sep 17 00:00:00 2001 From: yh202109 Date: Tue, 27 Aug 2024 18:10:53 -0400 Subject: [PATCH] v0.2.22 --- docs/std_iso_pdf.ipynb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/std_iso_pdf.ipynb b/docs/std_iso_pdf.ipynb index a99beda..a37ad73 100644 --- a/docs/std_iso_pdf.ipynb +++ b/docs/std_iso_pdf.ipynb @@ -64,6 +64,8 @@ } }, "source": [ + "## PDF File Summary\n", + "\n", "To use `mtbp3.stdiso`:" ] }, @@ -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:" ] @@ -145,6 +149,7 @@ "source": [ "from IPython.display import Image \n", "\n", + "img.resize(width=300)\n", "display(img)" ] }, @@ -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'`:" ] }, { @@ -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)" ] },