Skip to content

Commit 07d682a

Browse files
authored
Merge pull request #2866 from HackbrettXXX/fix-xref-table
fix XREF table generation
2 parents d6d6640 + 22b7e25 commit 07d682a

File tree

147 files changed

+70
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+70
-70
lines changed

src/jspdf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,16 +2872,16 @@ function jsPDF(options) {
28722872

28732873
out("xref");
28742874
out("0 " + (objectNumber + 1));
2875-
out("0000000000 65535 f");
2875+
out("0000000000 65535 f ");
28762876
for (var i = 1; i <= objectNumber; i++) {
28772877
var offset = offsets[i];
28782878
if (typeof offset === "function") {
2879-
out((p + offsets[i]()).slice(-10) + " 00000 n");
2879+
out((p + offsets[i]()).slice(-10) + " 00000 n ");
28802880
} else {
28812881
if (typeof offsets[i] !== "undefined") {
2882-
out((p + offsets[i]).slice(-10) + " 00000 n");
2882+
out((p + offsets[i]).slice(-10) + " 00000 n ");
28832883
} else {
2884-
out("0000000000 00000 n");
2884+
out("0000000000 00000 n ");
28852885
}
28862886
}
28872887
}

test/reference/2pages.pdf

23 Bytes
Binary file not shown.

test/reference/3pages.pdf

25 Bytes
Binary file not shown.

test/reference/FitWindow.pdf

21 Bytes
Binary file not shown.

test/reference/HideMenubar.pdf

21 Bytes
Binary file not shown.

test/reference/HideToolbar.pdf

21 Bytes
Binary file not shown.

test/reference/HideWindowUI.pdf

21 Bytes
Binary file not shown.

test/reference/NumCopies.pdf

21 Bytes
Binary file not shown.

test/reference/PrintPageRange.pdf

37 Bytes
Binary file not shown.
21 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)