Skip to content

Commit 3e8f1a3

Browse files
committed
Fixing tab spacing
1 parent da9fb76 commit 3e8f1a3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The above mentioned code takes a PDF file `src` as input and writes the text dat
9090
```julia {.line_numbers}
9191
"""
9292
​```
93-
getPDFText(src, out) -> Dict
93+
getPDFText(src, out) -> Dict
9494
​```
9595
- src - Input PDF file from where text is to be extracted
9696
- out - Output TXT file where the output will be written
@@ -99,27 +99,27 @@ return - A dictionary containing metadata of the document
9999
function getPDFText(src, out)
100100
# handle that can be used for subsequence operations on the document.
101101
doc = pdDocOpen(src)
102-
102+
103103
# Metadata extracted from the PDF document.
104-
# This value is retained and returned as the return from the function.
104+
# This value is retained and returned as the return from the function.
105105
docinfo = pdDocGetInfo(doc)
106106
open(out, "w") do io
107-
108-
# Returns number of pages in the document
109-
npage = pdDocGetPageCount(doc)
107+
108+
# Returns number of pages in the document
109+
npage = pdDocGetPageCount(doc)
110110

111111
for i=1:npage
112-
112+
113113
# handle to the specific page given the number index.
114114
page = pdDocGetPage(doc, i)
115-
116-
# Extract text from the page and write it to the output file.
115+
116+
# Extract text from the page and write it to the output file.
117117
pdPageExtractText(io, page)
118118

119-
end
119+
end
120120
end
121-
# Close the document handle.
122-
# The doc handle should not be used after this call
121+
# Close the document handle.
122+
# The doc handle should not be used after this call
123123
pdDocClose(doc)
124124
return docinfo
125125
end

0 commit comments

Comments
 (0)