MCPcopy Create free account
hub / github.com/dannyedel/dspdfviewer / targetPageNumber

Method targetPageNumber

adjustedlink.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84uint AdjustedLink::targetPageNumber() const
85{
86 /* Although page numbers in a PDF are non-negative, poppler's pageNumber
87 * is a signed integer.
88 *
89 * numeric_cast checks that the number actually *is* non-negative.
90 */
91 return numeric_cast<unsigned>(lgt().destination().pageNumber()) -1u;
92}
93
94
95Poppler::LinkGoto const& AdjustedLink::lgt() const

Callers 1

HyperlinkAreaMethod · 0.80

Calls 1

pageNumberMethod · 0.45

Tested by

no test coverage detected