From 91dce52c776610bac1e926ff2fe2018bff397eed Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 10 Nov 2023 10:53:26 +0800 Subject: [PATCH] fix: PDF page numbers start at 1 (#155) --- 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 0e73038..b3411d0 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -209,7 +209,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);