Skip to content

Commit

Permalink
fix: PDF page numbers start at 1 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Nov 10, 2023
1 parent 673b3db commit 91dce52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 91dce52

Please sign in to comment.