404
+ +Page not found
+ + +diff --git a/docs/api.md b/doc-src/api.md similarity index 100% rename from docs/api.md rename to doc-src/api.md diff --git a/docs/index.md b/doc-src/index.md similarity index 100% rename from docs/index.md rename to doc-src/index.md diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..1f33a44 --- /dev/null +++ b/docs/404.html @@ -0,0 +1,124 @@ + + + +
+ + + + + + +Page not found
+ + +The library is constructed from 4 base modules:
+WIP
+
+Contains high-level classes for conversion of the fundamental pdf structures to other formats. This library includes 4 high-level conversion classes:
+These classes all extend the PDFConverter. To use them simply call the static method parse_file.
+from pdfmajor.converters import HTMLConverter
+
+input_file = open('path/to/input/file.pdf', 'rb')
+output_file = open('path/to/output/file.html', 'wb')
+HTMLConverter.parse_file(
+ input_file,
+ output_file
+)
+input_file.close()
+output_file.close()
+
+
+A high-level abstraction for the conversion classes.
+input_file: TextIOWrapper output_file: TextIOWrapper image_folder_path: str defaults to Nonecodec: str defaults to 'utf-8'maxpages: int defaults to 0 password: str defaults to None caching: bool defaults to True check_extractable: bool defaults to Truepagenos: List[int] defaults to Noneout_type: str defaults to 'html'from pdfmajor.converters import convert_file
+
+input_file = open('path/to/input/file.pdf', 'rb')
+output_file = open('path/to/output/file.html', 'wb')
+convert_file(
+ input_file,
+ output_file
+)
+input_file.close()
+output_file.close()
+
+
+Extends layouts.PDFLayoutAnalyzer.
rsrcmgr: PDFResourceManageroutfp: TextIOWrapperimagewriter: ImageWritercodec: str defaults to 'utf-8'pageno: int defaults to 1initialization function for the class
+returns the output file TextIOWrapper.
+input_file: TextIOWrapper output_file: TextIOWrapper image_folder_path: str defaults to Nonecodec: str defaults to 'utf-8'maxpages: int defaults to 0 password: str defaults to None caching: bool defaults to True check_extractable: bool defaults to Truepagenos: List[int] defaults to NoneWIP
+WIP
+ +PDF-Major is a fork of PDFMiner.six. It is meant to be a more light-weight implementation that makes fewer assumptions on the data. Additionally, this version intends to be more up to date with recent versions of python and make liberal use of the typing capabilities of python for improved future maintainability.
PDFMiner was designed to run in python 2.7>, PDFMiner.six was written to bring cross-version support for python 2 and 3. This versions intends to make use of the latest improvement in the python language while remaining fairly simple to develop with.
Note: We took out the layout-analysis process in this version (there is no more LTTextHorizontal or LTTextVertical). While the mathematics behind the grouping process was sound, the coupling of the layout-analysis process with the parsing and interpretation process produced unfriendly-code. This feature could be brought back by extending the pdfmajor.layouts.PDFLayoutAnalyzer class, but at the current time is not supported.
clone this repo
+git clone https://github.com/asosnovsky/pdfmajor
+ * install repo
python setup.py install
(This is so-called MIT/X License)
+Copyright (c) 2018-2019 Ariel Sosnovsky
Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions:
+The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ +