Click here to Skip to main content
11,705,052 members (50,729 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C PDF
<</DecodeParms<</Columns 4/Predictor 12>>/Filter/FlateDecode/ID[]/Info 23 0 R/Length 59/Root 25 0 R/Size 24/Type/XRef/W[1 2 1]>>

I use zlib to inflate the data,the use png filter arithmetic to reverse the decompressed data:
First,i decompress the stream data,i get the result with 115 bytes:
columns=4
bpc=8;
a line is 4+1,
so I convert the data to 5f*23 metrix.
hex:
02 01 00 10 00
02 00 02 6B 00
02 00 00 82 00
02 00 02 0A 00
02 00 01 6F 00
02 00 04 9F 00
02 00 01 22 00
02 00 00 66 00
02 00 08 8F 00
02 00 EE 18 00
02 01 00 A8 00
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 00 00 00 01
02 FF 01 B4 F5
Then I use PNG filter 2 algorithm to decode the decompressed data,i get the reserverd data:
01 00 10 00
01 02 7B 00
01 02 ED 00
01 04 F8 00
..................
..................
accroding to w array:
i get the obj offset:16
but i can't find obj in the offset,
Who can tell me the in the pdf parse?
Posted 28-Mar-12 17:54pm
chp845319
Edited 28-Mar-12 19:00pm
(no name)16.2K
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 609
1 OriginalGriff 439
2 Andy Lanng 215
3 CPallini 202
4 F-ES Sitecore 160
0 OriginalGriff 8,958
1 Sergey Alexandrovich Kryukov 8,276
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 29 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100