Lazycat Posted January 19, 2007 Author Posted January 19, 2007 I would like to have multi-page tiffs support in my UDF, but I'm have very little free time now. Anyway, it's need a look out specs. I'm googled specs and found this tag info: PageNumber Tag = 297 (129) Type = SHORT N = 2 This tag is used to specify page numbers of a multiple page (e.g. facsimile) document. Two SHORT values are specified. The first value is the page number; the second value is the total number of pages in the document. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
sanchopanza Posted January 19, 2007 Posted January 19, 2007 I would like to have multi-page tiffs support in my UDF, but I'm have very little free time now. Anyway, it's need a look out specs. I'm googled specs and found this tag info: PageNumber Tag = 297 (129) Type = SHORT N = 2 This tag is used to specify page numbers of a multiple page (e.g. facsimile) document. Two SHORT values are specified. The first value is the page number; the second value is the total number of pages in the document. I also found this tag but don´t get the right info out of this tag. I put the following into your UDF and get a number of 131073 but the multitiff only has 158 pages ! Func _ImageGetInfoTIFF($hFile, $nByteOrder) Local $anSize[2], $pos = 2, $sInfo = "", $aTag[1][2] ... _AddPair($aTag, 0x0129, "PageNumber") ... Perhaps I make a mistake
Lazycat Posted January 22, 2007 Author Posted January 22, 2007 I also found this tag but don´t get the right info out of this tag. I put the following into your UDF and get a number of 131073 but the multitiff only has 158 pages ! Func _ImageGetInfoTIFF($hFile, $nByteOrder) Local $anSize[2], $pos = 2, $sInfo = "", $aTag[1][2] ... _AddPair($aTag, 0x0129, "PageNumber") ... Perhaps I make a mistake How you get pages number? In docs is sentence: "Two SHORT values are specified... the second value is the total number of pages". So you should get second short value. Maybe this is the reason. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
sanchopanza Posted January 22, 2007 Posted January 22, 2007 Sorry, but I don´t get it work :"> I´m not a very good programmer - I learned a little bit of C+ 10 years ago and now I use this knowledge to make some scripts. But your UDF seems to be a little bit to much for me. I tried changing some values in the function _ReadTag but it doesn´t work - how I said - that´s to high for me :"> Can you please help me if you have a little bit of time ? Thanks
sanchopanza Posted January 26, 2007 Posted January 26, 2007 Lazycat, don´t you have any idea ? Could you please help me a little bit ? :"> Thanks in advance
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now