11"""
2- Contributors: Alexander Jüstel, Arthur Endlein Correia, Florian Wellmann, Marius Pischke
2+ Contributors: Alexander Jüstel, Arthur Endlein Correia, Florian Wellmann, Marius Pischke.
33
44GemGIS is a Python-based, open-source spatial data processing library.
55It is capable of preprocessing spatial data such as vector data
3333
3434def load_pdf (path : str ,
3535 save_as_txt : bool = True ) -> str :
36- """Function to load pdf containing borehole data
36+ """
37+ Load PDF file containing borehole data.
3738
3839 Parameters
3940 __________
40-
4141 path : str
42- Name of the PDF file, e.g. ``path='file.pdf'``
43-
44- save_as_txt : bool
42+ Name of the PDF file, e.g. ``path='file.pdf'``.
43+ save_as_txt : bool, default: ``True``
4544 Variable to save the extracted data as txt file.
46- Options include: ``True`` or ``False``, default set to ``True``
45+ Options include: ``True`` or ``False``.
4746
4847 Returns
4948 _______
50-
51- page_content : str
52- Extracted page content from borehole data
49+ str
50+ Extracted page content from borehole data.
5351
5452 .. versionadded:: 1.0.x
5553
@@ -66,14 +64,11 @@ def load_pdf(path: str,
6664
6765 See Also
6866 ________
69-
70- get_meta_data : Getting the meta data of a well
71- get_meta_data_df : Getting the meta data of wells as DataFrame
72- get_stratigraphic_data : Getting the stratigraphic data of a well
73- get_stratigraphic_data_df : Getting the stratigraphic data of wells as DataFrame
74-
67+ get_meta_data : Get the meta data of a well.
68+ get_meta_data_df : Get the meta data of wells as DataFrame.
69+ get_stratigraphic_data : Get the stratigraphic data of a well.
70+ get_stratigraphic_data_df : Get the stratigraphic data of wells as DataFrame.
7571 """
76-
7772 # Trying to import PyPDF2 but returning error if tqdm is not installed
7873 try :
7974 import PyPDF2
0 commit comments