pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1640576 - in /pdfbox/trunk: examples/src/main/java/org/apache/pdfbox/examples/acroforms/ examples/src/main/java/org/apache/pdfbox/examples/documentmanipulation/ examples/src/main/java/org/apache/pdfbox/examples/fdf/ examples/src/main/java/...
Date Wed, 19 Nov 2014 15:53:56 GMT
Author: lehmi
Date: Wed Nov 19 15:53:54 2014
New Revision: 1640576

URL: http://svn.apache.org/r1640576
Log:
PDFBOX-2430: loadNonSeq() -> load()

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/acroforms/FillFormField.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/documentmanipulation/SuperimposePage.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/SetField.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddImageToPDF.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddJavascript.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMessageToEachPage.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMetadataFromDocInfo.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateGradientShadingPDF.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFiles.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractMetadata.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractTTFFonts.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/GoToSecondBookmarkOnOpen.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintBookmarks.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintDocumentMetaData.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RemoveFirstPage.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceURLs.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStamp.java
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStampWithImage.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
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFHighlighter.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTest.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactoryTest.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImageTest.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFCloneUtilityTest.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFMergerUtilityTest.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestLayerUtility.java
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java
    pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportFDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportXFDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportFDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportXFDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/WriteDecodedDoc.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/acroforms/FillFormField.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/acroforms/FillFormField.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/acroforms/FillFormField.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/acroforms/FillFormField.java Wed Nov 19 15:53:54 2014
@@ -38,7 +38,7 @@ public class FillFormField
         
         // load the document
         PDDocument pdfDocument = PDDocument
-                .loadNonSeq(new File(formTemplate),null);
+                .load(new File(formTemplate),null);
 
         // get the document catalog
         PDAcroForm acroForm = pdfDocument.getDocumentCatalog().getAcroForm();

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/documentmanipulation/SuperimposePage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/documentmanipulation/SuperimposePage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/documentmanipulation/SuperimposePage.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/documentmanipulation/SuperimposePage.java Wed Nov 19 15:53:54 2014
@@ -57,7 +57,7 @@ public class SuperimposePage {
             // This will handle the actual import and resources
             LayerUtility layerUtility = new LayerUtility(aDoc);
 
-            PDDocument toBeImported = PDDocument.loadNonSeq(new File(args[0]));
+            PDDocument toBeImported = PDDocument.load(new File(args[0]));
             
             // Get the page as a PDXObjectForm to place it
             PDFormXObject mountable = layerUtility.importPageAsForm(

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java Wed Nov 19 15:53:54 2014
@@ -142,7 +142,7 @@ public class PrintFields
             }
             else
             {
-                pdf = PDDocument.loadNonSeq(new File(args[0]));
+                pdf = PDDocument.load(new File(args[0]));
                 PrintFields exporter = new PrintFields();
                 if (pdf.isEncrypted())
                 {

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/SetField.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/SetField.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/SetField.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/SetField.java Wed Nov 19 15:53:54 2014
@@ -84,7 +84,7 @@ public class SetField
             else
             {
                 SetField example = new SetField();
-                pdf = PDDocument.loadNonSeq(new File(args[0]));
+                pdf = PDDocument.load(new File(args[0]));
                 example.setField(pdf, args[1], args[2]);
                 pdf.save(args[0]);
             }

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/lucene/LucenePDFDocument.java Wed Nov 19 15:53:54 2014
@@ -371,7 +371,7 @@ public class LucenePDFDocument
         PDDocument pdfDocument = null;
         try
         {
-            pdfDocument = PDDocument.loadNonSeq(is, "");
+            pdfDocument = PDDocument.load(is, "");
 
             // create a writer where to append the text content.
             StringWriter writer = new StringWriter();

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddImageToPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddImageToPDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddImageToPDF.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddImageToPDF.java Wed Nov 19 15:53:54 2014
@@ -59,7 +59,7 @@ public class AddImageToPDF
         PDDocument doc = null;
         try
         {
-            doc = PDDocument.loadNonSeq( new File(inputFile) );
+            doc = PDDocument.load( new File(inputFile) );
 
             //we will add the image to the first page.
             PDPage page = doc.getPage(0);

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddJavascript.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddJavascript.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddJavascript.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddJavascript.java Wed Nov 19 15:53:54 2014
@@ -52,7 +52,7 @@ public class AddJavascript
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 PDActionJavaScript javascript = new PDActionJavaScript(
                     "app.alert( {cMsg: 'PDFBox rocks!', nIcon: 3, nType: 0, cTitle: 'PDFBox Javascript example' } );");
                 document.getDocumentCatalog().setOpenAction( javascript );

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMessageToEachPage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMessageToEachPage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMessageToEachPage.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMessageToEachPage.java Wed Nov 19 15:53:54 2014
@@ -57,7 +57,7 @@ public class AddMessageToEachPage
         PDDocument doc = null;
         try
         {
-            doc = PDDocument.loadNonSeq( new File(file) );
+            doc = PDDocument.load( new File(file) );
 
             PDFont font = PDType1Font.HELVETICA_BOLD;
             float fontSize = 36.0f;

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMetadataFromDocInfo.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMetadataFromDocInfo.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMetadataFromDocInfo.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddMetadataFromDocInfo.java Wed Nov 19 15:53:54 2014
@@ -64,7 +64,7 @@ public class AddMetadataFromDocInfo
 
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     System.err.println( "Error: Cannot add metadata to encrypted document." );

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java Wed Nov 19 15:53:54 2014
@@ -57,7 +57,7 @@ public class CreateBookmarks
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     System.err.println( "Error: Cannot add bookmarks to encrypted document." );

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateGradientShadingPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateGradientShadingPDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateGradientShadingPDF.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateGradientShadingPDF.java Wed Nov 19 15:53:54 2014
@@ -132,7 +132,7 @@ public class CreateGradientShadingPDF
             document.close();
             
             // render the PDF and save it into a PNG file
-            document = PDDocument.loadNonSeq(new File(file));
+            document = PDDocument.load(new File(file));
             BufferedImage bim = new PDFRenderer(document).renderImageWithDPI(0, 300);
             ImageIO.write(bim, "png", new File(file + ".png"));
             document.close();

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFiles.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFiles.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFiles.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFiles.java Wed Nov 19 15:53:54 2014
@@ -67,7 +67,7 @@ public class ExtractEmbeddedFiles
             {
                 File pdfFile = new File(args[0]);
                 String filePath = pdfFile.getParent() + System.getProperty("file.separator");
-                document = PDDocument.loadNonSeq(pdfFile );
+                document = PDDocument.load(pdfFile );
                 PDDocumentNameDictionary namesDictionary = 
                         new PDDocumentNameDictionary( document.getDocumentCatalog() );
                 PDEmbeddedFilesNameTreeNode efTree = namesDictionary.getEmbeddedFiles();

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractMetadata.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractMetadata.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractMetadata.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractMetadata.java Wed Nov 19 15:53:54 2014
@@ -66,7 +66,7 @@ public class ExtractMetadata
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq(new File(args[0]));
+                document = PDDocument.load(new File(args[0]));
                 PDDocumentCatalog catalog = document.getDocumentCatalog();
                 PDMetadata meta = catalog.getMetadata();
                 if (meta != null)

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractTTFFonts.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractTTFFonts.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractTTFFonts.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ExtractTTFFonts.java Wed Nov 19 15:53:54 2014
@@ -122,7 +122,7 @@ public class ExtractTTFFonts
                 PDDocument document = null;
                 try
                 {
-                    document = PDDocument.loadNonSeq(new File(pdfFile));
+                    document = PDDocument.load(new File(pdfFile));
 
                     if (document.isEncrypted())
                     {

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/GoToSecondBookmarkOnOpen.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/GoToSecondBookmarkOnOpen.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/GoToSecondBookmarkOnOpen.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/GoToSecondBookmarkOnOpen.java Wed Nov 19 15:53:54 2014
@@ -57,7 +57,7 @@ public class GoToSecondBookmarkOnOpen
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     System.err.println( "Error: Cannot add bookmark destination to encrypted documents." );

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintBookmarks.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintBookmarks.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintBookmarks.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintBookmarks.java Wed Nov 19 15:53:54 2014
@@ -52,7 +52,7 @@ public class PrintBookmarks
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 PrintBookmarks meta = new PrintBookmarks();
                 PDDocumentOutline outline =  document.getDocumentCatalog().getDocumentOutline();
                 if( outline != null )

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintDocumentMetaData.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintDocumentMetaData.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintDocumentMetaData.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintDocumentMetaData.java Wed Nov 19 15:53:54 2014
@@ -54,7 +54,7 @@ public class PrintDocumentMetaData
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]));
+                document = PDDocument.load( new File(args[0]));
                 PrintDocumentMetaData meta = new PrintDocumentMetaData();
                 meta.printMetadata( document );
             }

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java Wed Nov 19 15:53:54 2014
@@ -65,7 +65,7 @@ public class PrintURLs
             }
             else
             {
-                doc = PDDocument.loadNonSeq( new File(args[0]) );
+                doc = PDDocument.load( new File(args[0]) );
                 int pageNum = 0;
                 for( PDPage page : doc.getPages() )
                 {

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RemoveFirstPage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RemoveFirstPage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RemoveFirstPage.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RemoveFirstPage.java Wed Nov 19 15:53:54 2014
@@ -51,7 +51,7 @@ public class RemoveFirstPage
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     throw new IOException( "Encrypted documents are not supported for this example" );

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceURLs.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceURLs.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceURLs.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceURLs.java Wed Nov 19 15:53:54 2014
@@ -65,7 +65,7 @@ public class ReplaceURLs
             }
             else
             {
-                doc = PDDocument.loadNonSeq( new File(args[0]) );
+                doc = PDDocument.load( new File(args[0]) );
                 int pageNum = 0;
                 for( PDPage page : doc.getPages() )
                 {

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStamp.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStamp.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStamp.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStamp.java Wed Nov 19 15:53:54 2014
@@ -56,7 +56,7 @@ public class RubberStamp
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     throw new IOException( "Encrypted documents are not supported for this example" );

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStampWithImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStampWithImage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStampWithImage.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/RubberStampWithImage.java Wed Nov 19 15:53:54 2014
@@ -76,7 +76,7 @@ public class RubberStampWithImage
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     throw new IOException( "Encrypted documents are not supported for this example" );

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=1640576&r1=1640575&r2=1640576&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 Wed Nov 19 15:53:54 2014
@@ -56,7 +56,7 @@ public class ExtractTextByArea
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 PDFTextStripperByArea stripper = new PDFTextStripperByArea();
                 stripper.setSortByPosition( true );
                 Rectangle rect = new Rectangle( 10, 280, 275, 60 );

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=1640576&r1=1640575&r2=1640576&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 Wed Nov 19 15:53:54 2014
@@ -81,7 +81,7 @@ public class PrintImageLocations extends
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 PrintImageLocations printer = new PrintImageLocations();
                 int pageNum = 0;
                 for( PDPage page : document.getPages() )

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=1640576&r1=1640575&r2=1640576&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 Wed Nov 19 15:53:54 2014
@@ -65,7 +65,7 @@ public class PrintTextLocations extends 
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     try

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=1640576&r1=1640575&r2=1640576&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 Wed Nov 19 15:53:54 2014
@@ -62,7 +62,7 @@ public class RemoveAllText
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq( new File(args[0]) );
+                document = PDDocument.load( new File(args[0]) );
                 if( document.isEncrypted() )
                 {
                     System.err.println( "Error: Encrypted documents are not supported for this example." );

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Wed Nov 19 15:53:54 2014
@@ -899,9 +899,9 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(File file) throws IOException
+    public static PDDocument load(File file) throws IOException
     {
-        return loadNonSeq(file, "", false);
+        return load(file, "", false);
     }
 
     /**
@@ -914,9 +914,9 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(File file, boolean useScratchFiles) throws IOException
+    public static PDDocument load(File file, boolean useScratchFiles) throws IOException
     {
-        return loadNonSeq(file, "", useScratchFiles);
+        return load(file, "", useScratchFiles);
     }
 
     /**
@@ -929,9 +929,9 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(File file, String password) throws IOException
+    public static PDDocument load(File file, String password) throws IOException
     {
-        return loadNonSeq(file, password, false);
+        return load(file, password, false);
     }
 
     /**
@@ -945,7 +945,7 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(File file, String password, boolean useScratchFiles) throws IOException
+    public static PDDocument load(File file, String password, boolean useScratchFiles) throws IOException
     {
         NonSequentialPDFParser parser = new NonSequentialPDFParser(file, password, useScratchFiles);
         parser.parse();
@@ -961,9 +961,9 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(InputStream input) throws IOException
+    public static PDDocument load(InputStream input) throws IOException
     {
-        return loadNonSeq(input, "", false);
+        return load(input, "", false);
     }
 
     /**
@@ -976,9 +976,9 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(InputStream input, boolean useScratchFiles) throws IOException
+    public static PDDocument load(InputStream input, boolean useScratchFiles) throws IOException
     {
-        return loadNonSeq(input, "", useScratchFiles);
+        return load(input, "", useScratchFiles);
     }
 
     /**
@@ -991,10 +991,10 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(InputStream input, String password)
+    public static PDDocument load(InputStream input, String password)
             throws IOException
     {
-        return loadNonSeq(input, password, false);
+        return load(input, password, false);
     }
 
     /**
@@ -1008,7 +1008,7 @@ public class PDDocument implements Close
      * 
      * @throws IOException in case of a file reading or parsing error
      */
-    public static PDDocument loadNonSeq(InputStream input, String password, boolean useScratchFiles)
+    public static PDDocument load(InputStream input, String password, boolean useScratchFiles)
             throws IOException
     {
         NonSequentialPDFParser parser = new NonSequentialPDFParser(input, password, useScratchFiles);

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Overlay.java Wed Nov 19 15:53:54 2014
@@ -181,7 +181,7 @@ public class Overlay
 
     private PDDocument loadPDF(String pdfName) throws IOException
     {
-        return PDDocument.loadNonSeq(new File(pdfName));
+        return PDDocument.load(new File(pdfName));
     }
 
     /**

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFHighlighter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFHighlighter.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFHighlighter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFHighlighter.java Wed Nov 19 15:53:54 2014
@@ -156,7 +156,7 @@ public class PDFHighlighter extends PDFT
             }
             String[] highlightStrings = new String[ args.length - 1];
             System.arraycopy( args, 1, highlightStrings, 0, highlightStrings.length );
-            doc = PDDocument.loadNonSeq( new File(args[0]) );
+            doc = PDDocument.load( new File(args[0]) );
 
             xmlExtractor.generateXMLHighlight(
                 doc,

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFMergerUtility.java Wed Nov 19 15:53:54 2014
@@ -206,7 +206,7 @@ public class PDFMergerUtility
                     sourceFile = sit.next();
                     if (isNonSeq)
                     {
-                        source = PDDocument.loadNonSeq(sourceFile, null);
+                        source = PDDocument.load(sourceFile, null);
                     }
                     else
                     {

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java Wed Nov 19 15:53:54 2014
@@ -202,7 +202,7 @@ public class TestSymmetricKeyEncryption 
         PDDocument doc;
         if (nonSeq)
         {
-            doc = PDDocument.loadNonSeq(
+            doc = PDDocument.load(
                     new ByteArrayInputStream(inputFileAsByteArray),
                     password);
         }
@@ -367,7 +367,7 @@ public class TestSymmetricKeyEncryption 
         // test with owner password => full permissions
         if (nonSeq)
         {
-            encryptedDoc = PDDocument.loadNonSeq(pdfFile, ownerpassword);
+            encryptedDoc = PDDocument.load(pdfFile, ownerpassword);
         }
         else
         {
@@ -382,7 +382,7 @@ public class TestSymmetricKeyEncryption 
         // test with owner password => restricted permissions
         if (nonSeq)
         {
-            encryptedDoc = PDDocument.loadNonSeq(pdfFile, userpassword);
+            encryptedDoc = PDDocument.load(pdfFile, userpassword);
         }
         else
         {

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java Wed Nov 19 15:53:54 2014
@@ -119,7 +119,7 @@ public class TestPDDocument extends Test
         assertEquals("%%EOF\n", new String(Arrays.copyOfRange(pdf, pdf.length - 6, pdf.length), "UTF-8"));
 
         // Load
-        PDDocument loadDoc = PDDocument.loadNonSeq(new ByteArrayInputStream(pdf));
+        PDDocument loadDoc = PDDocument.load(new ByteArrayInputStream(pdf));
         assertEquals(1, loadDoc.getNumberOfPages());
         loadDoc.close();
     }
@@ -148,7 +148,7 @@ public class TestPDDocument extends Test
         assertEquals("%%EOF\n", new String(Arrays.copyOfRange(pdf, pdf.length - 6, pdf.length), "UTF-8"));
 
         // Load
-        PDDocument loadDoc = PDDocument.loadNonSeq(targetFile);
+        PDDocument loadDoc = PDDocument.load(targetFile);
         assertEquals(1, loadDoc.getNumberOfPages());
         loadDoc.close();
     }

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTest.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTest.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTest.java Wed Nov 19 15:53:54 2014
@@ -84,7 +84,7 @@ public class CCITTFactoryTest extends Te
         document.save(testResultsDir + "/singletiff.pdf");
         document.close();
         
-        document = PDDocument.loadNonSeq(new File(testResultsDir, "singletiff.pdf"), null);
+        document = PDDocument.load(new File(testResultsDir, "singletiff.pdf"), null);
         assertEquals(2, document.getNumberOfPages());
         
         document.close();  
@@ -134,7 +134,7 @@ public class CCITTFactoryTest extends Te
         document.save(testResultsDir + "/multitiff.pdf");
         document.close();
         
-        document = PDDocument.loadNonSeq(new File(testResultsDir, "multitiff.pdf"), null);
+        document = PDDocument.load(new File(testResultsDir, "multitiff.pdf"), null);
         assertEquals(countTiffImages, document.getNumberOfPages());
         
         document.close();  

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactoryTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactoryTest.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactoryTest.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/LosslessFactoryTest.java Wed Nov 19 15:53:54 2014
@@ -105,7 +105,7 @@ public class LosslessFactoryTest extends
         document.save(pdfFile);
         document.close();
         
-        document = PDDocument.loadNonSeq(pdfFile, null);
+        document = PDDocument.load(pdfFile, null);
         new PDFRenderer(document).renderImage(0);
         document.close();
     }
@@ -342,7 +342,7 @@ public class LosslessFactoryTest extends
         File pdfFile = new File(testResultsDir, pdfFilename);
         document.save(pdfFile);
         document.close();
-        document = PDDocument.loadNonSeq(pdfFile, null);
+        document = PDDocument.load(pdfFile, null);
         new PDFRenderer(document).renderImage(0);
         document.close();
     }

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImageTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImageTest.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImageTest.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImageTest.java Wed Nov 19 15:53:54 2014
@@ -178,7 +178,7 @@ public class PDInlineImageTest extends T
         document.save(pdfFile);
         document.close();
 
-        document = PDDocument.loadNonSeq(pdfFile, null);
+        document = PDDocument.load(pdfFile, null);
         new PDFRenderer(document).renderImage(0);
         document.close();
 

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/ValidateXImage.java Wed Nov 19 15:53:54 2014
@@ -108,7 +108,7 @@ public class ValidateXImage
         document.save(pdfFile);
         document.close();
 
-        document = PDDocument.loadNonSeq(pdfFile, null);
+        document = PDDocument.load(pdfFile, null);
         assertEquals(1, count(document.getPage(0).getResources().getXObjectNames()));
         new PDFRenderer(document).renderImage(0);
         document.close();

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFCloneUtilityTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFCloneUtilityTest.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFCloneUtilityTest.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFCloneUtilityTest.java Wed Nov 19 15:53:54 2014
@@ -89,8 +89,8 @@ public class PDFCloneUtilityTest extends
         // save and reload PDF, so that one can see that the files are legit
         dstDoc.save(TESTDIR + CLONEDST);
         PDDocument.loadLegacy(new File(TESTDIR + CLONESRC)).close();
-        PDDocument.loadNonSeq(new File(TESTDIR + CLONESRC), null).close();
+        PDDocument.load(new File(TESTDIR + CLONESRC), null).close();
         PDDocument.loadLegacy(new File(TESTDIR + CLONEDST)).close();
-        PDDocument.loadNonSeq(new File(TESTDIR + CLONEDST), null).close();
+        PDDocument.load(new File(TESTDIR + CLONEDST), null).close();
     }
 }

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFMergerUtilityTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFMergerUtilityTest.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFMergerUtilityTest.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/PDFMergerUtilityTest.java Wed Nov 19 15:53:54 2014
@@ -68,7 +68,7 @@ public class PDFMergerUtilityTest extend
     private void checkMergeIdentical(String filename1, String filename2, String mergeFilename)
             throws IOException
     {
-        PDDocument srcDoc1 = PDDocument.loadNonSeq(new File(SRCDIR, filename1), null);
+        PDDocument srcDoc1 = PDDocument.load(new File(SRCDIR, filename1), null);
         int src1PageCount = srcDoc1.getNumberOfPages();
         PDFRenderer src1PdfRenderer = new PDFRenderer(srcDoc1);
         BufferedImage[] src1ImageTab = new BufferedImage[src1PageCount];
@@ -78,7 +78,7 @@ public class PDFMergerUtilityTest extend
         }
         srcDoc1.close();
 
-        PDDocument srcDoc2 = PDDocument.loadNonSeq(new File(SRCDIR, filename2), null);
+        PDDocument srcDoc2 = PDDocument.load(new File(SRCDIR, filename2), null);
         int src2PageCount = srcDoc2.getNumberOfPages();
         PDFRenderer src2PdfRenderer = new PDFRenderer(srcDoc2);
         BufferedImage[] src2ImageTab = new BufferedImage[src2PageCount];
@@ -95,7 +95,7 @@ public class PDFMergerUtilityTest extend
         pdfMergerUtility.mergeDocumentsNonSeq(null);
 
         PDDocument mergedDoc
-                = PDDocument.loadNonSeq(new File(TARGETTESTDIR, mergeFilename), null);
+                = PDDocument.load(new File(TARGETTESTDIR, mergeFilename), null);
         PDFRenderer mergePdfRenderer = new PDFRenderer(mergedDoc);
         int mergePageCount = mergedDoc.getNumberOfPages();
         assertEquals(src1PageCount + src2PageCount, mergePageCount);

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestLayerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestLayerUtility.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestLayerUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestLayerUtility.java Wed Nov 19 15:53:54 2014
@@ -64,8 +64,8 @@ public class TestLayerUtility extends Te
         File overlay1 = createOverlay1();
         File targetFile = new File(testResultsDir, "text-with-form-overlay.pdf");
 
-        PDDocument targetDoc = PDDocument.loadNonSeq(mainPDF);
-        PDDocument overlay1Doc = PDDocument.loadNonSeq(overlay1);
+        PDDocument targetDoc = PDDocument.load(mainPDF);
+        PDDocument overlay1Doc = PDDocument.load(overlay1);
         try
         {
             LayerUtility layerUtil = new LayerUtility(targetDoc);

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java Wed Nov 19 15:53:54 2014
@@ -198,7 +198,7 @@ public class TestPDFToImage extends Test
         try
         {
             new FileOutputStream(new File(outDir + file.getName() + ".parseerror")).close();
-            document = PDDocument.loadNonSeq(file, null);
+            document = PDDocument.load(file, null);
             String outputPrefix = outDir + file.getName() + "-";
             int numPages = document.getNumberOfPages();
             if (numPages < 1)
@@ -243,7 +243,7 @@ public class TestPDFToImage extends Test
             // test to see whether file is destroyed in pdfbox
             File tmpFile = File.createTempFile("pdfbox", ".pdf");
             document.save(tmpFile);
-            PDDocument.loadNonSeq(tmpFile, null).close();
+            PDDocument.load(tmpFile, null).close();
             tmpFile.delete();
         }
         catch (Exception e)

Modified: pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java (original)
+++ pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java Wed Nov 19 15:53:54 2014
@@ -49,7 +49,7 @@ public abstract class AbstractTestAction
     protected PreflightContext createContext() throws Exception
     {
         DataSource ds = new FileDataSource("src/test/resources/pdfa-with-annotations-square.pdf");
-        PDDocument doc = PDDocument.loadNonSeq(ds.getInputStream());
+        PDDocument doc = PDDocument.load(ds.getInputStream());
         PreflightDocument preflightDocument = new PreflightDocument(doc.getDocument(), Format.PDF_A1B);
         PreflightContext ctx = new PreflightContext(ds);
         ctx.setDocument(preflightDocument);

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/DecompressObjectstreams.java Wed Nov 19 15:53:54 2014
@@ -62,7 +62,7 @@ public class DecompressObjectstreams 
 
         PDDocument doc = null;
         try {
-            doc = PDDocument.loadNonSeq(new File(inputFilename));
+            doc = PDDocument.load(new File(inputFilename));
             for(COSObject objStream : doc.getDocument().getObjectsByType(COSName.OBJ_STM)) {
                 COSStream stream = (COSStream)objStream.getObject();
                 PDFObjectStreamParser sp = new PDFObjectStreamParser(stream, doc.getDocument());

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportFDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportFDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportFDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportFDF.java Wed Nov 19 15:53:54 2014
@@ -69,7 +69,7 @@ public class ExportFDF
             }
             else
             {
-                pdf = PDDocument.loadNonSeq( new File(args[0]) );
+                pdf = PDDocument.load( new File(args[0]) );
                 PDAcroForm form = pdf.getDocumentCatalog().getAcroForm();
                 if( form == null )
                 {

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportXFDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportXFDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportXFDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExportXFDF.java Wed Nov 19 15:53:54 2014
@@ -69,7 +69,7 @@ public class ExportXFDF
             }
             else
             {
-                pdf = PDDocument.loadNonSeq( new File(args[0]) );
+                pdf = PDDocument.load( new File(args[0]) );
                 PDAcroForm form = pdf.getDocumentCatalog().getAcroForm();
                 if( form == null )
                 {

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractImages.java Wed Nov 19 15:53:54 2014
@@ -159,7 +159,7 @@ public class ExtractImages
         PDDocument document = null;
         try
         {
-            document = PDDocument.loadNonSeq(new File(pdfFile), password);
+            document = PDDocument.load(new File(pdfFile), password);
             AccessPermission ap = document.getCurrentAccessPermission();
             if (! ap.canExtractContent())
             {

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java Wed Nov 19 15:53:54 2014
@@ -197,7 +197,7 @@ public class ExtractText
                 {
                     outputFile = new File( pdfFile.substring( 0, pdfFile.length() -4 ) + ext ).getAbsolutePath();
                 }
-                document = PDDocument.loadNonSeq(new File( pdfFile ), password);
+                document = PDDocument.load(new File( pdfFile ), password);
                 
                 AccessPermission ap = document.getCurrentAccessPermission();
                 if( ! ap.canExtractContent() )
@@ -268,7 +268,7 @@ public class ExtractText
                                     PDDocument subDoc = null;
                                     try 
                                     {
-                                        subDoc = PDDocument.loadNonSeq(fis);
+                                        subDoc = PDDocument.load(fis);
                                     } 
                                     finally 
                                     {

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportFDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportFDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportFDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportFDF.java Wed Nov 19 15:53:54 2014
@@ -89,7 +89,7 @@ public class ImportFDF
             {
                 ImportFDF importer = new ImportFDF();
 
-                pdf = PDDocument.loadNonSeq( new File(args[0]) );
+                pdf = PDDocument.load( new File(args[0]) );
                 fdf = FDFDocument.load( args[1] );
                 importer.importFDF( pdf, fdf );
 

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportXFDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportXFDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportXFDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ImportXFDF.java Wed Nov 19 15:53:54 2014
@@ -89,7 +89,7 @@ public class ImportXFDF
             else
             {
                 ImportFDF importer = new ImportFDF();
-                pdf = PDDocument.loadNonSeq( new File(args[0]) );
+                pdf = PDDocument.load( new File(args[0]) );
                 fdf = FDFDocument.loadXFDF( args[1] );
 
                 importer.importFDF( pdf, fdf );

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFDebugger.java Wed Nov 19 15:53:54 2014
@@ -386,7 +386,7 @@ public class PDFDebugger extends javax.s
      */
     private void parseDocument( File file, String password )throws IOException
     {
-        document = PDDocument.loadNonSeq(file, password);
+        document = PDDocument.load(file, password);
     }
 
     /**

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFReader.java Wed Nov 19 15:53:54 2014
@@ -372,7 +372,7 @@ public class PDFReader extends JFrame
 
     private void parseDocument(File file, String password) throws IOException
     {
-        document = PDDocument.loadNonSeq(file, password);
+        document = PDDocument.load(file, password);
         renderer = new PDFRenderer(document);
     }
 

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFSplit.java Wed Nov 19 15:53:54 2014
@@ -123,7 +123,7 @@ public class PDFSplit
             List<PDDocument> documents = null;
             try
             {
-                document = PDDocument.loadNonSeq(new File(pdfFile), password);
+                document = PDDocument.load(new File(pdfFile), password);
 
                 int numberOfPages = document.getNumberOfPages();
                 boolean startEndPageSet = false;

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PDFToImage.java Wed Nov 19 15:53:54 2014
@@ -183,7 +183,7 @@ public class PDFToImage
             PDDocument document = null;
             try
             {
-                document = PDDocument.loadNonSeq(new File(pdfFile), password);
+                document = PDDocument.load(new File(pdfFile), password);
 
                 ImageType imageType = ImageType.RGB;
                 if ("bilevel".equalsIgnoreCase(color))

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/PrintPDF.java Wed Nov 19 15:53:54 2014
@@ -97,7 +97,7 @@ public class PrintPDF
         PDDocument document = null;
         try
         {
-            document = PDDocument.loadNonSeq(new File(pdfFile), password);
+            document = PDDocument.load(new File(pdfFile), password);
 
             PrinterJob printJob = PrinterJob.getPrinterJob();
             printJob.setJobName(new File(pdfFile).getName());

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/WriteDecodedDoc.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/WriteDecodedDoc.java?rev=1640576&r1=1640575&r2=1640576&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/WriteDecodedDoc.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/WriteDecodedDoc.java Wed Nov 19 15:53:54 2014
@@ -60,7 +60,7 @@ public class WriteDecodedDoc
         PDDocument doc = null;
         try
         {
-            doc = PDDocument.loadNonSeq(new File(in), password);
+            doc = PDDocument.load(new File(in), password);
             doc.setAllSecurityToBeRemoved(true);
             for (Iterator<COSObject> i = doc.getDocument().getObjects().iterator(); i.hasNext();)
             {



Mime
View raw message