mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Support textfield and choice widgets for printing
This commit is contained in:
parent
63e33a5895
commit
1747d259f9
7 changed files with 409 additions and 46 deletions
|
@ -727,10 +727,12 @@ class PartialEvaluator {
|
|||
|
||||
handleSetFont(resources, fontArgs, fontRef, operatorList, task, state) {
|
||||
// TODO(mack): Not needed?
|
||||
var fontName;
|
||||
var fontName,
|
||||
fontSize = 0;
|
||||
if (fontArgs) {
|
||||
fontArgs = fontArgs.slice();
|
||||
fontName = fontArgs[0].name;
|
||||
fontSize = fontArgs[1];
|
||||
}
|
||||
|
||||
return this.loadFont(fontName, fontRef, resources)
|
||||
|
@ -763,6 +765,8 @@ class PartialEvaluator {
|
|||
})
|
||||
.then(translated => {
|
||||
state.font = translated.font;
|
||||
state.fontSize = fontSize;
|
||||
state.fontName = fontName;
|
||||
translated.send(this.handler);
|
||||
return translated.loadedName;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue