Hello , I have been trying to parse a PDF and decode Javascript which is embedded within the PDF. The problem I am facing is with the decoding of the Flatedecode object. I have been using zlib_udf.au3 by w00ter and also Zlib function provided by Ward without any success. while using w00ter's udf am getting -3 as the error i.e. $Z_DATA_ERROR any inputs ? regards Deltarocked The SOLVED code. Huge thanks to ProgAndy and Ward. Post no 7 by ProgAndy : use the modifications done by Prog