Марфа Воробьева,
https://learn.javascript.ru/fetch
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
a{display: table-row}
</style>
<script>
document.addEventListener( "DOMContentLoaded" , function() {
let count = [21, 100]; //await fetch(url);
count.forEach(n => {
let a = document.createElement("a");
let href = `file:///C:/путь_к_книжке/Python_s_nulya.pdf#page=${n}`;
a.href = href;
a.text = href;
document.body.append(a)
})
});
</script>
</head>
<body>
</body>
</html>