Tags: sergeytolkachyov/pdfparser
Tags
Fix encoding for encoding dictionary without Type item. (smalot#500) * Font::decodeContent() fixes to support Encoding dictionates without Type header. * Pass $unicode by reference in Font::decodeContentByEncoding(). * Add encoding initialization. * Font's initialized encoding in private property. * Add "ext-iconv" to "require" in composer.json * Delete unnecessary unicode string test for smalot#95 test. * Fix misprint. * Add comments + small refactoring. * Run dev-tools/vendor/bin/php-cs-fixer fix Fixed all files in 0.018 seconds, 12.000 MB memory used * Fixes by @k00ni suggestions. * Add test (with pdf file) for issue in PR smalot#500. * Add pdf-file for test. * Add comments to Font class methods. * Apply suggestions from code review Co-authored-by: Konrad Abicht <[email protected]> * Delete trows in phpDoc for test. * Fixes according to @k00ni suggestions. - Add return types to tests methods. - Fix todos in phpDocs. * Apply suggestions from code review Co-authored-by: Konrad Abicht <[email protected]> * Update test file (which opens without error in Adobe Acrobat Reader). * CS-fixer fix. * Avoid throwing error when encoding isn't found (previous behavior) Co-authored-by: Konrad Abicht <[email protected]> Co-authored-by: Jeremy Benoist <[email protected]>
Fixes smalot#478 (/Index problem) (smalot#479) * Add files via upload Fixing problem of incomplete analysis of the /Index entry. * Delete RawDataParser.php Wrong subdirectory. * Add files via upload Fix problem of uncomplete analysis of /Index entry. * Update RawDataParser.php optical changes * Update RawDataParser.php optical changes * Update RawDataParser.php optical changes * Add files via upload After adding a description to the file, the valid /Index entry now contains two entries (consisting of 2 values: first object number, number of objects): /Index[2 1 21 2] * Update RawDataParserTest.php Adding test for issue 479 * Update RawDataParserTest.php Forgot a { * Update RawDataParser.php Code style update * Update RawDataParserTest.php Added more description and more checks. * Update PageTest.php Issue smalot#331 is fixed by issue smalot#479: test updated * Update RawDataParserTest.php optical fix * Update PageTest.php optical changes * Update RawDataParser.php change to remove the native_function_invocation message * Update tests/Integration/PageTest.php Co-authored-by: Konrad Abicht <[email protected]> * Update RawDataParser.php Added comments... * Update RawDataParser.php Changes for CS fixer * Update PageTest.php Comment update * Update tests/Integration/PageTest.php Co-authored-by: Konrad Abicht <[email protected]> Co-authored-by: Konrad Abicht <[email protected]>
Fix TypeError on default font when no fonts available (smalot#466) * Add test for scenarios where either the page is null or there is no content, both failing on a return type for 'getDefaultFont' * Don't add the font to the set of available fonts when there is no font available * Run csfixer Co-authored-by: prinsfrank <[email protected]>
Fix TypeError on default font when no fonts available (smalot#466) * Add test for scenarios where either the page is null or there is no content, both failing on a return type for 'getDefaultFont' * Don't add the font to the set of available fonts when there is no font available * Run csfixer Co-authored-by: prinsfrank <[email protected]>
Fix invalid return type on unknown glyph (smalot#459) * Fix invalid return type on unknown glyphs * Fix invalid return type on unknown glyphs * Fix invalid return type on unknown glyphs * Fix invalid return type on unknown glyphs * Don't call assert statically as per the current project standard * Remove coverage annotation as it is currently not used in this project Co-authored-by: prinsfrank <[email protected]>
Fixes Out-of-memory errors during Scrutinizer run (smalot#443) * run gc_collect_cycles in testParseFile to avoid out-of-memory error * Added gc_collect_cycles() to setUp * Update ParserTest.php * Update ParserTest.php * simplified ParserTest::testParseFile only test a given set of files, not all in samples/bugs * check if scrutinizer fails only when executing testParseFile * restored ParserTest::testParseFile; refined testRetainImageContentImpact * restored old version of testParseFile; marked it and other tests as memory-heavy ... ... exclude all memory-heavy tests from scrutinizer run * refined memory checks in testRetainImageContentImpact * increased memory value in testRetainImageContentImpact: Reason is, that it otherwise fails in Github because more memory is used as in local development environment. Its still not an error!
Don't throw an exception if Encoding doesn't have BaseEncoding (smalo… …t#433) * Dont crash when a Encoding doesn't have BaseEncoding * Create a specific Exception for encoding not found * Fix phpdoc and change exception in catch * Improve test * Create a test for Encoding without BaseEncoding * Update src/Smalot/PdfParser/Font.php Co-authored-by: Konrad Abicht <[email protected]> * Update tests/Integration/FontTest.php Co-authored-by: Konrad Abicht <[email protected]> * Move EncodingNotFoundException to src/Smalot/PdfParser/Exception Co-authored-by: Konrad Abicht <[email protected]>
fixed last parameter lists with missing Config parameter (smalot#424)
Replaces smalot#403 (fix Call to a member function getFontSpaceLimit(… …) on null) (smalot#406) * try to trigger error which is mentioned in smalot#403 * allow CI to run on all push events * reverted changes to provoke error message, error: Call to a member function getFontSpaceLimit() on null * deployed fixes by @xfolder; added test case to reproduce error * refined test function * PHPUnit::expectNotToPerformAssertions not available when using PHP 5.6 and 7.0; Use doesNotPerformAssertions as PHP doc comment. Co-authored-by: Mirko <[email protected]>
PreviousNext