Community
Participate
Working Groups
I20071023-0800. StyledTextPrintOptions should offer place holder for page count. Currently there's only a place holder for the page number.
page count == total number of pages to be print ? In the case scope == PAGE_RANGE; pageStart == 10; pageEnd == 12. Page count is 3 in this case. I can see the app setting the footer to "page <page> of <pagecount>" and it would get, page 10 of 3, page 11 of 3, page 12 of 3. Maybe it would be better to offer page_start and page_end intead ?
Sorry, with page count I meant the total number of pages i.e. you would get page 10 of 30, page 11 of 30, page 12 of 30. This problem is dealt with quite differently on various apps. Some even offer to set the start page number, so that your example could end up being 1 of 3, 2 of 3, 3 of 3. Having pageStart/End would also be useful but I guess I'd use the total page count.
That is little bit more difficult cause I don't have the total number of pages when print start. I would have to initialize and measure all paragraphs to find the height of the document (number of pages == document height / page height). Then I would have to initialize (again) and draw each paragraph. this would make print slower.
How much slower do you think? Couldn't you reuse the information you gain from the first run? Also, why would pageEnd be cheaper to compute when I print everything?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.