You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/09/14 21:57:00 UTC
svn commit: r1703045 - in
/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples:
signature/ShowSignature.java util/ExtractTextByArea.java
util/PrintImageLocations.java util/PrintTextLocations.java
util/RemoveAllText.java
Author: tilman
Date: Mon Sep 14 19:57:00 2015
New Revision: 1703045
URL: http://svn.apache.org/r1703045
Log:
PDFBOX-2852: don't throw Exception, throw specific Exception instead
Modified:
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/ExtractTextByArea.java
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java
Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java?rev=1703045&r1=1703044&r2=1703045&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java Mon Sep 14 19:57:00 2015
@@ -47,7 +47,8 @@ public class ShowSignature
*
* @param args The command-line arguments.
*
- * @throws Exception If there is an error reading the file.
+ * @throws IOException If there is an error reading the file.
+ * @throws CertificateException
*/
public static void main( String[] args ) throws IOException, CertificateException
{
Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/ExtractTextByArea.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/ExtractTextByArea.java?rev=1703045&r1=1703044&r2=1703045&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/ExtractTextByArea.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/ExtractTextByArea.java Mon Sep 14 19:57:00 2015
@@ -22,6 +22,7 @@ import org.apache.pdfbox.text.PDFTextStr
import java.awt.Rectangle;
import java.io.File;
+import java.io.IOException;
/**
* This is an example on how to extract text from a specific area on the PDF document.
@@ -43,9 +44,9 @@ public class ExtractTextByArea
*
* @param args The command line arguments.
*
- * @throws Exception If there is an error parsing the document.
+ * @throws IOException If there is an error parsing the document.
*/
- public static void main( String[] args ) throws Exception
+ public static void main( String[] args ) throws IOException
{
if( args.length != 1 )
{
Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java?rev=1703045&r1=1703044&r2=1703045&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java Mon Sep 14 19:57:00 2015
@@ -67,9 +67,9 @@ public class PrintImageLocations extends
*
* @param args The command line arguments.
*
- * @throws Exception If there is an error parsing the document.
+ * @throws IOException If there is an error parsing the document.
*/
- public static void main( String[] args ) throws Exception
+ public static void main( String[] args ) throws IOException
{
if( args.length != 1 )
{
Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java?rev=1703045&r1=1703044&r2=1703045&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java Mon Sep 14 19:57:00 2015
@@ -49,9 +49,9 @@ public class PrintTextLocations extends
*
* @param args The command line arguments.
*
- * @throws Exception If there is an error parsing the document.
+ * @throws IOException If there is an error parsing the document.
*/
- public static void main( String[] args ) throws Exception
+ public static void main( String[] args ) throws IOException
{
if( args.length != 1 )
{
Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java?rev=1703045&r1=1703044&r2=1703045&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java Mon Sep 14 19:57:00 2015
@@ -26,6 +26,7 @@ import org.apache.pdfbox.pdmodel.common.
import org.apache.pdfbox.contentstream.operator.Operator;
import java.io.File;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@@ -51,9 +52,9 @@ public class RemoveAllText
*
* @param args The command line arguments.
*
- * @throws Exception If there is an error parsing the document.
+ * @throws IOException If there is an error parsing the document.
*/
- public static void main( String[] args ) throws Exception
+ public static void main( String[] args ) throws IOException
{
if( args.length != 2 )
{