File tree Expand file tree Collapse file tree
debugger/src/main/java/org/apache/pdfbox/debugger/pagepane
main/java/org/apache/pdfbox
test/java/org/apache/pdfbox/pdmodel/interactive/form Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,18 +133,11 @@ public void init()
133133
134134 private void initRectMap ()
135135 {
136- try
137- {
138- collectFieldLocations ();
139- collectLinkLocations ();
140- }
141- catch (IOException ex )
142- {
143- LOG .error (ex .getMessage (), ex );
144- }
136+ collectFieldLocations ();
137+ collectLinkLocations ();
145138 }
146139
147- private void collectLinkLocations () throws IOException
140+ private void collectLinkLocations ()
148141 {
149142 for (PDAnnotation annotation : page .getAnnotations ())
150143 {
@@ -155,7 +148,7 @@ private void collectLinkLocations() throws IOException
155148 }
156149 }
157150
158- private void collectLinkLocation (PDAnnotationLink linkAnnotation ) throws IOException
151+ private void collectLinkLocation (PDAnnotationLink linkAnnotation )
159152 {
160153 if (linkAnnotation .getRectangle () == null )
161154 {
@@ -201,7 +194,7 @@ private void collectLinkLocation(PDAnnotationLink linkAnnotation) throws IOExcep
201194 }
202195 }
203196
204- private void collectFieldLocations () throws IOException
197+ private void collectFieldLocations ()
205198 {
206199 // get Acroform without applying fixups to enure that we get the original content
207200 PDDocumentFixup fixup = ViewMenu .isRepairAcroformSelected () ? new AcroFormDefaultFixup (document ) : null ;
Original file line number Diff line number Diff line change @@ -1507,7 +1507,7 @@ else if (subEntry instanceof COSDictionary)
15071507 * @param page the new page
15081508 * @param structParentOffset the offset which should be applied
15091509 */
1510- private void updateStructParentEntries (PDPage page , int structParentOffset ) throws IOException
1510+ private void updateStructParentEntries (PDPage page , int structParentOffset )
15111511 {
15121512 int structParents = page .getStructParents ();
15131513 if (structParents >= 0 )
Original file line number Diff line number Diff line change @@ -775,10 +775,9 @@ private Rectangle2D getTransformedAppearanceBBox(PDAppearanceStream appearanceSt
775775 * @param fields a list of fields to be flattened
776776 * @param pages the page tree
777777 * @return
778- * @throws IOException
779778 */
780779 private Map <COSDictionary ,Set <COSDictionary >> buildPagesWidgetsMap (
781- List <PDField > fields , PDPageTree pages ) throws IOException
780+ List <PDField > fields , PDPageTree pages )
782781 {
783782 Map <COSDictionary ,Set <COSDictionary >> pagesAnnotationsMap = new HashMap <>();
784783 boolean hasMissingPageRef = false ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class TestListBox
5353 PDListBox choice ;
5454
5555 @ BeforeEach
56- void setUp () throws IOException
56+ void setUp ()
5757 {
5858 // export values
5959 exportValues = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments