Skip to content

Commit ff6b299

Browse files
committed
PDFBOX-5660: improve comments
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923984 13f79535-47bb-0310-9956-ffa450edef68
1 parent 47e688d commit ff6b299

File tree

1 file changed

+3
-1
lines changed
  • pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form

1 file changed

+3
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public void flatten(List<PDField> fields, boolean refreshAppearances) throws IOE
260260
// preserve all non widget annotations
261261
for (PDPage page : pages)
262262
{
263+
// get the widgets that are to be flattened for this page
263264
Set<COSDictionary> widgetsForPageMap = pagesWidgetsMap.get(page.getCOSObject());
264265

265266
// indicates if the original content stream
@@ -760,7 +761,8 @@ private Rectangle2D getTransformedAppearanceBBox(PDAppearanceStream appearanceSt
760761
}
761762

762763
/**
763-
* Build a map of pages => widgets
764+
* Build a map of page => set of widgets to be flattened
765+
*
764766
* @param fields a list of fields to be flattened
765767
* @param pages the page tree
766768
* @return

0 commit comments

Comments
 (0)