mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 07:38:07 +02:00
Merge pull request #7832 from seanburke-wf/expose-userunit-on-page
Expose the optional UserUnit entry as a page property
This commit is contained in:
commit
9ff19985c0
4 changed files with 25 additions and 3 deletions
|
@ -769,6 +769,9 @@ describe('api', function() {
|
|||
it('gets ref', function () {
|
||||
expect(page.ref).toEqual({ num: 15, gen: 0 });
|
||||
});
|
||||
it('gets userUnit', function () {
|
||||
expect(page.userUnit).toEqual(1.0);
|
||||
});
|
||||
it('gets view', function () {
|
||||
expect(page.view).toEqual([0, 0, 595.28, 841.89]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue