Skip to content

Commit

Permalink
First working v2.7 with zero test diff
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwhitington committed May 10, 2024
1 parent f29a855 commit 4a8cb76
Show file tree
Hide file tree
Showing 5 changed files with 12,212 additions and 9,832 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2.7 (August 2024)

o Feature update to 2.7

2.5 (August 2022)

o First release of coherentpdf.js library
22,016 changes: 12,205 additions & 9,811 deletions coherentpdf.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions cpdflibtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ cpdf.addText(false,
cpdf.topLeft, 20.0, 20.0,
1.0,
1,
cpdf.timesRoman,
"A",
20.0,
0.5,
0.5,
Expand Down Expand Up @@ -705,7 +705,7 @@ cpdf.displayDocTitle(pdf30, true);
console.log("---cpdf_getDisplayDocTitle()");
var displaydoctitle = cpdf.getDisplayDocTitle(pdf30);
console.log("---cpdf_nonFullScreenPageMode()");
cpdf.nonFullPageScreenMode(cpdf.useOutlines);
cpdf.nonFullPageScreenMode(pdf30, cpdf.useOutlines);
console.log("---cpdf_getNonFullScreenPageMode()");
var nonfullscreenpagemode = cpdf.getNonFullScreenPageMode(pdf30);
console.log("---cpdf_openAtPage()");
Expand Down Expand Up @@ -761,7 +761,7 @@ var pl = cpdf.getPageLabelStringForPage(pdf30, 1);
console.log("Label string is %s", pl);
console.log("---cpdf_compositionJSON()");
composition = cpdf.compositionJSON(1000000, pdf30);
console.log("Contains %i bytes of data", composition.length - 1); //float difference is ok.
console.log("Contains %i bytes of data", composition.length);
cpdf.deletePdf(pdf30);

// CHAPTER 12. File Attachments
Expand Down
15 changes: 0 additions & 15 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,3 @@ cpdf.js
=======

JavaScript PDF library built by compiling CamlPDF+CPDF+cpdflib with `js_of_ocaml`.

Expected test output differences
================================

1. 03rotatecontents.pdf
08stampee\_after.pdf

Last digit of floating point number differs by one. Difference in libc/js
float rounding.

2. 01tofileext.pdf
05squeezedinmemory.pdf
17draft.pdf

Differing zlib compression libraries.
5 changes: 2 additions & 3 deletions test.MD
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
Expected test output differences compared with other cpdflib implementations
============================================================================

1. 03rotatecontents.pdf
08stampee\_after.pdf
1. 08stampee\_after.pdf

Last digit of floating point number differs by one. Difference in libc/js
float rounding.

2. 01tofileext.pdf
05squeezedinmemory.pdf
17draft.pdf
99draft.pdf

Differing zlib compression libraries.

Expand Down

0 comments on commit 4a8cb76

Please sign in to comment.