Merge pull request #1020 from padraiggalvin/link-annotation-flag

Set link annotation flag to print by default
This commit is contained in:
Luiz Américo 2019-11-13 19:32:04 -03:00 committed by GitHub
commit 51d4fdd0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 Annotation Flag
}
if (options.Subtype !== 'Link') {
if (options.C == null) {
options.C = this._normalizeColor(options.color || [0, 0, 0]);