diff --git a/.version b/.version index 558ceca..1b0c03e 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v1.3.2c \ No newline at end of file +v1.3.3 \ No newline at end of file diff --git a/pdfmajor/__init__.py b/pdfmajor/__init__.py index 9f140c7..b98bfe8 100644 --- a/pdfmajor/__init__.py +++ b/pdfmajor/__init__.py @@ -24,7 +24,7 @@ See documentation [here](https://asosnovsky.github.io/pdfmajor/). ## Basic Example ```py -from pdfmajor.interpreter import PageInterpreter +from pdfmajor.interpreter import PDFInterpreter for page in PDFInterpreter("/path/to/pdf.pdf"): print("page start", page.page_num) @@ -97,7 +97,7 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -__version__ = (1, 3, 2c) +__version__ = (1, 3, 3) if __name__ == '__main__': print( diff --git a/pdfmajor/interpreter/commands/__init__.py b/pdfmajor/interpreter/commands/__init__.py index b9fe649..a8e2d1e 100644 --- a/pdfmajor/interpreter/commands/__init__.py +++ b/pdfmajor/interpreter/commands/__init__.py @@ -48,7 +48,7 @@ def process_command_stream(streams: List[PDFStream], font_cache: dict = None, st for complete_item in state.complete_layout_items: if isinstance(complete_item, LTXObject): xobj_state = prep_state( - state=PDFGraphicState(), + state=PDFStateStack(), ctm=complete_item.t_matrix, resources=complete_item.resources, font_cache=font_cache diff --git a/setup.py b/setup.py index 807c0dc..8395f3d 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ import sys with open('README.md') as readme_file: SETUP = { "name": "pdfmajor", - "version": "1.3.2c", + "version": "1.3.3", "packages": find_packages(include=['pdfmajor*']), "install_requires": [ 'pycryptodome',