box / box/viewer.js

Printing the document

Open
#188 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
333
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Hello,
I managed to print the document page by page by looping through the svg `iframe` of each page:

``` js
// The actual pages' svg iframes start from the 1st one, not from 0th
for(i = 1; i++; i < window.frames.length) {
window.frames[i].focus();
window.frames[i].print();
}
```

This opens print preview for each page separately and you can print each of them just fine. But forcing user to click Print for each page is obviously a very bad UX.

Is it possible to print the whole document?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.