mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Set link annotation flag to print
This commit is contained in:
parent
1228c259bd
commit
f6cd98666e
@ -3,6 +3,11 @@ export default {
|
||||
options.Type = 'Annot';
|
||||
options.Rect = this._convertRect(x, y, w, h);
|
||||
options.Border = [0, 0, 0];
|
||||
|
||||
if (options.Subtype === 'Link' && typeof options.F === 'undefined') {
|
||||
options.F = 1 << 2; // Print Annotaion Flag
|
||||
}
|
||||
|
||||
if (options.Subtype !== 'Link') {
|
||||
if (options.C == null) {
|
||||
options.C = this._normalizeColor(options.color || [0, 0, 0]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user