Merge pull request #1352 from cesargdm/patch-1

Update getting_started.md
This commit is contained in:
Libor M 2022-03-09 11:27:11 +01:00 committed by GitHub
commit 3f69586f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ numbers to a document.
// see the range of buffered pages
const range = doc.bufferedPageRange(); // => { start: 0, count: 2 }
for (i = range.start, end = range.start + range.count, range.start <= end; i < end; i++;) {
for (i = range.start, end = range.start + range.count, range.start <= end; i < end; i++) {
doc.switchToPage(i);
doc.text(`Page ${i + 1} of ${range.count}`);
}