-
1. Re: How can i get the indirect object position in file when i open the PDF file?
lrosenth Jun 15, 2009 11:07 PM (in response to ChromeUser)Don't understand the question.
You mean you want the offset of a specific Cos object in the PDF?
-
2. Re: How can i get the indirect object position in file when i open the PDF file?
ChromeUser Jun 15, 2009 11:33 PM (in response to lrosenth)Sorry .
lrosenth wrote:
Don't understand the question.
You mean you want the offset of a specific Cos object in the PDF?
Yes, you are right.
I want the offset of Indirect Cos Object in the PDF when acrobat opening PDF.
-
3. Re: How can i get the indirect object position in file when i open the PDF file?
lrosenth Jun 16, 2009 1:10 AM (in response to ChromeUser)There is no way to do this.
Remember that with the introduction of compressed objects streams in PDF 1.5, there will be no actual file offset for most objects (since they live inside of a compressed stream of various objects). And with Acrobat 9, this feature is (almost) always used.
Can you explain why you need this information?
-
4. Re: How can i get the indirect object position in file when i open the PDF file?
ChromeUser Jun 16, 2009 1:32 AM (in response to lrosenth)After i signed the document,the other user may increment update the document.
So i want to check these updated object after my sig to judge my sig validity.
All these updated object's offset must have a larger offset than my sig,so i need the object offset infomation.
-
5. Re: How can i get the indirect object position in file when i open the PDF file?
lrosenth Jun 16, 2009 2:15 AM (in response to ChromeUser)Is your digital signature plugin uses the provided DS plugin architecture? We've not had this need from any other vendor, since the necessary information about byte ranges and such is passed to your plugin.
You can use CosDocEnumEOFs to find out how many (if any) incremental updates have taken place on the document. Using the information there, you can then use CosDocObjIsWithinRange to determine which update block a given object is in.
Does that help??
-
6. Re: How can i get the indirect object position in file when i open the PDF file?
ChromeUser Jun 16, 2009 2:59 AM (in response to lrosenth)I have not use DS architecture.
I'm just wirte the plugin using Cos object.
Our customer need that if they just add annother sig follow the previous sig,the prev sig should verify full valid,just as the sig range is the whole file.
So i need to check the update objects.
lrosenth wrote:
Is your digital signature plugin uses the provided DS plugin architecture? We've not had this need from any other vendor, since the necessary information about byte ranges and such is passed to your plugin.
You can use CosDocEnumEOFs to find out how many (if any) incremental updates have taken place on the document. Using the information there, you can then use CosDocObjIsWithinRange to determine which update block a given object is in.
Does that help??
I will try the method you mentioned.
Thanks for your help.
-
7. Re: How can i get the indirect object position in file when i open the PDF file?
lrosenth Jun 16, 2009 7:37 AM (in response to ChromeUser)Had you used the provided architecture for digital signature handlers, then you would be directly integrated into the Acrobat UI for signing and verification...
-
8. Re: How can i get the indirect object position in file when i open the PDF file?
ChromeUser Jun 16, 2009 6:24 PM (in response to lrosenth)The problem is my cert can not be recognized by acrobat or reader,when i signed the doc using my cert, it tell me "BER decoding error" during verifying.
I don't know why and search so many method to try,no one works.
Also my cert can not be changed and i know there are some oids in my cert cause the problem.
So i have to make a sig that can not be recognized by acrobat & reader. -
9. Re: How can i get the indirect object position in file when i open the PDF file?
lrosenth Jun 16, 2009 10:40 PM (in response to ChromeUser)That's fine - you can put whatever you want in your cert, we don't care...Just make sure you set the Filter and Subfilter correctly.
Read the documentation on custom signature handlers....
Leonard


