From 1f10851dafc05215da338a4c52d2b0d8b9641027 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 10 Nov 2023 10:24:05 +0800 Subject: [PATCH] fix: PDF page numbers start at 1 --- src/settings/template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/template.ts b/src/settings/template.ts index c49b87b..096494b 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -208,7 +208,7 @@ export const renderArticleContnet = async ( labels: renderLabels(highlight.labels), color: highlight.color ?? 'yellow', positionPercent: highlight.highlightPositionPercent, - positionAnchorIndex: highlight.highlightPositionAnchorIndex, + positionAnchorIndex: highlight.highlightPositionAnchorIndex + 1, // PDF page numbers start at 1 }; }); const dateSaved = formatDate(article.savedAt, dateSavedFormat);