Skip to content

Commit

Permalink
Merge pull request #29 from krishnasism/chore/fix-layout-of-docs-0115…
Browse files Browse the repository at this point in the history
…2024

Fix documentation layout
  • Loading branch information
krishnasism authored Jan 15, 2024
2 parents f8cb302 + e3b6ad2 commit 02a8a2e
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ API
hotpdf.utils
hotpdf.processor
hotpdf.helpers.nanoid
hotpdf.data.classes.HotCharacter
hotpdf.data.classes.Span
hotpdf.data.classes.ElementDimension
32 changes: 32 additions & 0 deletions docs/source/generated/hotpdf.data.classes.ElementDimension.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
hotpdf.data.classes.ElementDimension
====================================

.. currentmodule:: hotpdf.data.classes

.. autoclass:: ElementDimension


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::

~ElementDimension.__init__





.. rubric:: Attributes

.. autosummary::

~ElementDimension.span_id
~ElementDimension.x0
~ElementDimension.y0
~ElementDimension.x1
~ElementDimension.y1


32 changes: 32 additions & 0 deletions docs/source/generated/hotpdf.data.classes.HotCharacter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
hotpdf.data.classes.HotCharacter
================================

.. currentmodule:: hotpdf.data.classes

.. autoclass:: HotCharacter


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::

~HotCharacter.__init__





.. rubric:: Attributes

.. autosummary::

~HotCharacter.span_id
~HotCharacter.value
~HotCharacter.x
~HotCharacter.y
~HotCharacter.x_end


32 changes: 32 additions & 0 deletions docs/source/generated/hotpdf.data.classes.Span.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
hotpdf.data.classes.Span
========================

.. currentmodule:: hotpdf.data.classes

.. autoclass:: Span


.. automethod:: __init__


.. rubric:: Methods

.. autosummary::

~Span.__init__





.. rubric:: Attributes

.. autosummary::

~Span.characters
~Span.x0
~Span.y0
~Span.x_end
~Span.span_id


12 changes: 9 additions & 3 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
Usage
-----
=====

Basic usage is as follows:

Loading a file
---------------------
HotPdf Class
------------------------------------------

.. autoclass:: hotpdf.HotPdf

The HotPdf class is the wrapper around your PDF that allows for searching text and extracting text on your PDFs.

Loading a file
------------------------------------------

Before you can perform operations on your PDFs, you will need to load it first.

.. code-block:: python
Expand All @@ -24,6 +27,9 @@ Before you can perform operations on your PDFs, you will need to load it first.
File Operations
------------------------------------------

Length
^^^^^^^

The number of pages in the PDF file can be determined by checking the `len` of `pages` property of the hotpdf object.

.. code-block:: python
Expand Down

0 comments on commit 02a8a2e

Please sign in to comment.