Jump to content

Recommended Posts

Posted

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.

Posted

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 :)

Posted

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.
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...