Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 5b78e20

Browse files
committed
intermediate
1 parent ffc4497 commit 5b78e20

File tree

1,993 files changed

+1803
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,993 files changed

+1803
-9
lines changed

example/test.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@
20932093
],
20942094
"metadata": {
20952095
"kernelspec": {
2096-
"display_name": "Python 3",
2096+
"display_name": "Python3.9",
20972097
"language": "python",
20982098
"name": "python3"
20992099
},
@@ -2107,7 +2107,7 @@
21072107
"name": "python",
21082108
"nbconvert_exporter": "python",
21092109
"pygments_lexer": "ipython3",
2110-
"version": "3.7.7"
2110+
"version": "3.9.0"
21112111
}
21122112
},
21132113
"nbformat": 4,

fusus/pdf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414

1515
def pdf2png(inPdf, outDir, silent=True):
16+
"""Extract all images in a PDF to an output directory.
17+
"""
18+
1619
doc = fitz.open(inPdf)
1720
if not os.path.exists(outDir):
1821
os.makedirs(outDir, exist_ok=True)

source/Untitled.ipynb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"a = b\n"
10+
]
11+
}
12+
],
13+
"metadata": {
14+
"kernelspec": {
15+
"display_name": "Python3.9",
16+
"language": "python",
17+
"name": "python3"
18+
},
19+
"language_info": {
20+
"codemirror_mode": {
21+
"name": "ipython",
22+
"version": 3
23+
},
24+
"file_extension": ".py",
25+
"mimetype": "text/x-python",
26+
"name": "python",
27+
"nbconvert_exporter": "python",
28+
"pygments_lexer": "ipython3",
29+
"version": "3.9.0"
30+
}
31+
},
32+
"nbformat": 4,
33+
"nbformat_minor": 4
34+
}

source/getText.ipynb

Lines changed: 1757 additions & 0 deletions
Large diffs are not rendered by default.

source/splitPdf.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": 2,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 2,
16+
"execution_count": 3,
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -22,18 +22,18 @@
2222
},
2323
{
2424
"cell_type": "code",
25-
"execution_count": 3,
25+
"execution_count": 4,
2626
"metadata": {},
2727
"outputs": [],
2828
"source": [
29-
"name = \"fusus-affifi\"\n",
30-
"source = f\"../_local/source/{name}.pdf\"\n",
31-
"dest = f\"../_local/processed/{name}\""
29+
"name = \"Affifi1\"\n",
30+
"source = f\"../_local/source/{name}/{name.lower()}.pdf\"\n",
31+
"dest = f\"../ur/{name}/in\""
3232
]
3333
},
3434
{
3535
"cell_type": "code",
36-
"execution_count": 4,
36+
"execution_count": 5,
3737
"metadata": {},
3838
"outputs": [
3939
{

0 commit comments

Comments
 (0)