mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
[api-minor] Add a new getXfaPageViewport
helper function to support printing
This patch provides an overall simpler *and* more consistent way of handling the `viewport` parameter during printing of XFA forms, since it's now again guaranteed to always be an instance of `PageViewport`. Furthermore, for anyone attempting to e.g. implement custom printing of XFA forms this probably cannot hurt either.
This commit is contained in:
parent
45c1390c42
commit
87be43c193
6 changed files with 28 additions and 16 deletions
|
@ -743,8 +743,10 @@ class PDFDocumentProxy {
|
|||
}
|
||||
|
||||
/**
|
||||
* NOTE: This is (mostly) intended to support printing of XFA forms.
|
||||
*
|
||||
* @type {Object | null} An object representing a HTML tree structure
|
||||
* to render the XFA, or `null` when no XFA form exists.
|
||||
* to render the XFA, or `null` when no XFA form exists.
|
||||
*/
|
||||
get allXfaHtml() {
|
||||
return this._transport._htmlForXfa;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue