gemgis.misc.load_pdf#

gemgis.misc.load_pdf(path: str, save_as_txt: bool = True) str#

Load PDF file containing borehole data.

Parameters
  • path (str) – Name of the PDF file, e.g. path='file.pdf'.

  • save_as_txt (bool, default: True) – Variable to save the extracted data as txt file. Options include: True or False.

Returns

Extracted page content from borehole data.

Return type

str

New in version 1.0.x.

Example

>>> # Loading Libraries and File
>>> import gemgis as gg
>>> content = gg.misc.load_pdf(path='file.pdf')
>>> content
'Stammdaten    -     2521/ 5631/ 1         -          Bnum: 196747  .  .  Objekt / Name :B. 19  ESCHWEILER
Bohrungs- / Aufschluß-Nr. :19  Archiv-Nr. :  Endteufe [m] :70.30  Stratigraphie der Endteufe :Karbon
.  TK 25 :Eschweiler [TK 5103]  Ort / Gemarkung :Eschweiler/Weißweiler  GK   R...'

See also

get_meta_data

Get the meta data of a well.

get_meta_data_df

Get the meta data of wells as DataFrame.

get_stratigraphic_data

Get the stratigraphic data of a well.

get_stratigraphic_data_df

Get the stratigraphic data of wells as DataFrame.