Click here to Skip to main content
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 18:54pm
chp845319
Edited 28-Mar-12 20:00pm
(no name)14.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 OriginalGriff 6,769
1 Sergey Alexandrovich Kryukov 6,338
2 DamithSL 5,408
3 Manas Bhardwaj 4,816
4 Maciej Los 4,195


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 29 Mar 2012
Copyright © CodeProject, 1999-2014
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