From c87723b411a349efefdae27dbfe1929513aa928c Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Mon, 15 Oct 2018 10:58:19 +0000 Subject: [PATCH] Update to prepare PR --- pdf/internal/strutils/pdfdocenc_test.go | 5 +++++ pdf/model/flatten.go | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pdf/internal/strutils/pdfdocenc_test.go b/pdf/internal/strutils/pdfdocenc_test.go index ed611690..f51c510b 100644 --- a/pdf/internal/strutils/pdfdocenc_test.go +++ b/pdf/internal/strutils/pdfdocenc_test.go @@ -1,3 +1,8 @@ +/* + * This file is subject to the terms and conditions defined in + * file 'LICENSE.md', which is part of this source code package. + */ + package strutils import ( diff --git a/pdf/model/flatten.go b/pdf/model/flatten.go index 5493d6f4..d8645903 100644 --- a/pdf/model/flatten.go +++ b/pdf/model/flatten.go @@ -126,15 +126,15 @@ func (pdf *PdfReader) FlattenFields(allannots bool, appgen FieldAppearanceGenera name := page.Resources.GenerateXObjectName() page.Resources.SetXObjectFormByName(name, xform) - // XXX/TODO: Take Matrix and potential scaling of annotation Rect and appearance BBox into account. - // Have yet to find a case where that actually is required. + // TODO(gunnsth): Take Matrix and potential scaling of annotation Rect and appearance + // BBox into account. Have yet to find a case where that actually is required. // Placement for XForm. xRect := math.Min(rect.Llx, rect.Urx) yRect := math.Min(rect.Lly, rect.Ury) // Needed for rect in: govdocs 019693.pdf. // Generate the content stream to display the XForm. - // XXX/TODO: Creating the contentstream directly here as cannot import contentstream package into + // TODO(gunnsth): Creating the contentstream directly here as cannot import contentstream package into // model (as contentstream depends on model). Consider if we can change the dependency pattern. ops := []string{} ops = append(ops, "q")