Uh oh!
There was an error while loading. Please reload this page.
Updates from original repo - #4
Draft
kunaldi wants to merge 83 commits into
Draft
Conversation
When the license is explicitly included in `MANIFEST.in` it gets bundled with the source build.
Also add .pre-commit-config.yaml
Previously the function .extractText() reads the text in the PDF and returns without any spaces. In this fix the pdf.py file has been modified to add " " (space) in between two words Here is an example below:- Original Sentence : "The quick brown fox jumps over the lazy dog" Previous Output : "Thequickbrownfoxjumpsoverthelazydog" After the fix : "The quick brown fox jumps over the lazy dog"
Also: Adjust ground truth "crazyones" example text
This happens when the library is used with `-Werror`, since `\c` is not a valid Python escape sequence.
The default value of sys.stderr will be None in this case, so care should be taken to avoid causing an AttributeError when trying to show an otherwise nonfatal warning.
The constructor expects the page argument to be a reference to a page, rather than the integer index of the page in the document.
Also test Metadata
fixed a typo and added in a new feature for adding a title to the PDF metadata Co-authored-by: __ROLLER__ <techangel428@gmail.com> Co-authored-by: Martin Thoma <info@martin-thoma.de>
…3.3) (#458) * Simplify tox config * Drop Python 3.3 and add Python 3.6 and PyPy
Add Scripts (including `pdfcat`), Resources, Tests, and Sample_Code back to PyPDF2. It was removed by accident in 1.27.0, but might get removed with 2.0.0 See #718 for discussion
In test_writer.py, make sure tmp file is closed before removing it
Also: reStructured Text to Markdown conversion
Found issue where not closing file descriptors in Windows caused access issues whilst trying to rename generated PDF in the same program flow. Linux did not have an issue. On windows, its required to explicitly close the 'output' file.
* Update generic.py 修复BUG:Name Object 遇到GBK编码时会抛出PyPDF2.utils.PdfReadError: Illegal character in Name Object异常 * Update utils.py 修复BUG:遇到中文时latin-1无法编码抛出UnicodeEncodeError: 'latin-1' codec can't encode characters in position 8-9: ordinal not in range(256)异常 Chinese character can not use 'latin-1' encode
…row Exception in non-strict mode (#198) - If obj is None we can't write anything to the stream - Using self.strict to raise the exception, it could be useful to keep the use of this for some kind of PDFs.
Only distribute it in the source Closes#727
Everything in the Sample_Code folder is now in the docs: https://pypdf2.readthedocs.io/en/latest/
BUG: Two tests with the same name existed MAINT: Move _xobj_to_image from Scrips (image extractor) into PyPDF2. This reduces the overall code size and could be useful for others. I make it private for the moment as I'm uncertain if it should be in PyPDF2
- PKG: Make Tests not a subpackage (#728) - BUG: Fix ASCII85Decode.decode assertion (#729) - BUG: Error in Chinese character encoding (#463) - BUG: Code duplication in Scripts/2-up.py - ROBUST: Guard 'obj.writeToStream' with 'if obj is not None' - ROBUST: Ignore a /Prev entry with the value 0 in the trailer - MAINT: Remove Sample_Code (#726) - TST: Close file handle in test_writer (#722) - TST: Fix test_get_images (#730) - DEV: Make tox use pytest and add more Python versions (#721) - DOC: Many (#720, #723-725, #469)
Thank you MasterOdin! Closes#734
It's not fixed, but at least we can test it now easily. We still get: ValueError: invalid literal for int() with base 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Our repo has been diverged from forked-original repo.
Do not merge them, this is for reviewing only.
Could be mergeable if all commits seem healthy after a deep review