Zend Framework

RunLengthDecode Filter support for PDF documents

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.9.7
  • Component/s: Zend_Pdf
  • Labels:
    None

Description

Hello,

It would be nice if the RunLengthDecode filter was in Zend_Pdf. I signed and sent the CLA a week ago but haven't gotten a response yet. So, I don't think it is safe for me to post my patch. Please advise.

  1. ZF-8396.patch
    16/Dec/09 8:50 AM
    11 kB
    Christopher Thomas
  2. ZF-8396.patch
    16/Dec/09 7:46 AM
    10 kB
    Christopher Thomas

Activity

Hide
Christopher Thomas added a comment -

I got my CLA approved. Attached is my patch. It includes a unit test.

Show
Christopher Thomas added a comment - I got my CLA approved. Attached is my patch. It includes a unit test.
Hide
Christopher Thomas added a comment -

Sorry. I forgot a couple of lines in the Stream.php file. Attached is the new patch.

Show
Christopher Thomas added a comment - Sorry. I forgot a couple of lines in the Stream.php file. Attached is the new patch.
Hide
Alexander Veremyev added a comment -

Christopher,

I've applied attached patch. Thanks for your job!

BTW Provided implementation produced 'Uninitialized string offset' at 'library/Zend/Pdf/Filter/RunLength.php:58' warning while running unit tests.

I also added some improvements: using strspn() and str_repeat() functions and non-repeatable character sequences recognition.

Show
Alexander Veremyev added a comment - Christopher, I've applied attached patch. Thanks for your job! BTW Provided implementation produced 'Uninitialized string offset' at 'library/Zend/Pdf/Filter/RunLength.php:58' warning while running unit tests. I also added some improvements: using strspn() and str_repeat() functions and non-repeatable character sequences recognition.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: