Chapter 5. Folders and Multiple Documents

5.1.  Overview

For such tests almost all test methods are available, which exist for tests with a single PDF document. The following list shows the available methods The detailed description of each testing method can be found in the manual of PDFUnit-Java (to avoid redundant documentation). Follow this link: http://www.pdfunit.com/en/documentation/java/.

# Methods to validate a set of PDF documents:
# 
# The detailed descriptions can be found in the manual of PDFUnit-Java (to avoid redundancy).
# The names of the methods are exactly the same.
#
# see   http://www.pdfunit.com/en/documentation/java/ 
#  

->compliesWith()
   ->constraints(..)             
   ->din5008FormA()              
   ->din5008FormB()              
   ->pdfStandard()               
   ->zugferdSpecification(..)    

->containsOneImageOf(..)         
->hasAuthor()                    
->hasBookmark()                  
->hasBookmarks()                 
->hasEncryptionLength(..)        
->hasField(..)                   
->hasFields()                    
->hasFont()                      
->hasFonts()                     
->hasFormat(..)                  
->hasImage()                     
   ->withBarcode()               
   ->withQRcode()                
->hasJavaScript()                
->hasKeywords()                  
->hasLanguageInfo(..)            
->hasNoAuthor()                  
->hasNoImage()                   
->hasNoKeywords()                
->hasNoLanguageInfo()            
->hasNoProperty()                
->hasNoSubject()                 
->hasNoText()                    
->hasNoTitle()                   
->hasNoXFAData()                 
->hasNoXMPData()                 

->hasNumberOf...()               

->hasOwnerPassword(..)           
->hasPermission()                
->hasProperty(..)                
->hasSignatureField(..)          
->hasSignatureFields()           
->hasSubject()                   
->hasText(..)                    
->hasTitle()                     
->hasUserPassword(..)

...  continued
... continuation:

->hasVersion()                   
->hasXFAData()                   
->hasXMPData()                   
->hasZugferdData()               
->isCertified()                  
->isCertifiedFor(..)             
->isLinearizedForFastWebView()   
->isSigned()                     
->isSignedBy(..)                 
->isTagged()                     

->passedFilter(..)

A test with multiple documents or folders stops at the first detected error.

The next two chapters show tests using multiple documents and a folder.