News for hackers. Stuff that matters.
Re:You can deeplink to a specific PDF page by helb on Friday July 12, 2024 @08:56AM (#40945111)
Looks like the pages are zero indexed? That sample link with page=70 got me to page 69 (in both Firefox and Chrome on Linux)
Re:You can deeplink to a specific PDF page by pimlottc on Friday July 12, 2024 @09:14AM (#40945263)
It's one-indexed, counting that actual pages in the PDF. The nominal page numbers (as seen on the header/footer) are often different since you don't typically number title pages and the like, which is called "front matter". [0]

0: https://kdp.amazon.com/en_US/help/topic/GDDYZG2C7RVF5N9J#fro...

Re:You can deeplink to a specific PDF page by chefandy on Friday July 12, 2024 @09:11AM (#40945229)
It's probably linking to the 'sequence number' rather than the page number. The cover is the first sequence number but doesn't have a page number. So if there was a few blank pages before the numbered pages started, it would probably be off by that many. I'll bet there are ways to mitigate that— PDF usually seems pretty good about dealing with the discrepancies between print and digital document structures.
Re:You can deeplink to a specific PDF page by Tomte on Friday July 12, 2024 @09:11AM (#40945231)
No. it's page 70 in the PDF. But the title page is visibly numbered "i" and only the following page is numbered "1". That offsets everything by one.
Re:You can deeplink to a specific PDF page by helb on Friday July 12, 2024 @09:21AM (#40945325)
Ah, i kinda expected the UI (https://i.vgy.me/beZtWa.png) to show the actual PDF page number, never noticed the "i" thing. Thanks.