Set link annotation flag to print

This commit is contained in:
Pádraig Galvin 2019-09-05 16:41:00 +02:00
parent 1228c259bd
commit f6cd98666e

View File

@ -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]);