Skip to content

Commit

Permalink
fix: PDF page numbers start at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Nov 10, 2023
1 parent be1119b commit 1f10851
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 @@ -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);
Expand Down

0 comments on commit 1f10851

Please sign in to comment.