This might have been fixed. I'm seeing 1 as the page number on a page that follows 2 hidden spreads.
I came across this feature request while I was looking for the same issue concerning "document (true) last page" number when some spreads are hidden. My current document for example has 11 pages, 2 being hidden. This text variable (document last page) returns 11, which should've been 9, taking hidden pages into consideration.
This might have been fixed. I'm seeing 1 as the page number on a page that follows 2 hidden spreads.
I came across this feature request while I was looking for the same issue concerning "document (true) last page" number when some spreads are hidden. My current document for example has 11 pages, 2 being hidden. This text variable (document last page) returns 11, which should've been 9, taking hidden pages into consideration.