Merge pull request #11443 from Snuffleupagus/issue-11442
Support OpenAction dictionaries without `Type` entries when parsing `Print` actions (issue 11442)
This commit is contained in:
		
						commit
						c3a1c67950
					
				@ -625,7 +625,9 @@ class Catalog {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // Append OpenAction actions to the JavaScript array.
 | 
					    // Append OpenAction actions to the JavaScript array.
 | 
				
			||||||
    const openActionDict = this.catDict.get('OpenAction');
 | 
					    const openActionDict = this.catDict.get('OpenAction');
 | 
				
			||||||
    if (isDict(openActionDict, 'Action')) {
 | 
					    if (isDict(openActionDict) &&
 | 
				
			||||||
 | 
					        (isName(openActionDict.get('Type'), 'Action') ||
 | 
				
			||||||
 | 
					         !openActionDict.has('Type'))) {
 | 
				
			||||||
      const actionType = openActionDict.get('S');
 | 
					      const actionType = openActionDict.get('S');
 | 
				
			||||||
      if (isName(actionType, 'Named')) {
 | 
					      if (isName(actionType, 'Named')) {
 | 
				
			||||||
        // The named Print action is not a part of the PDF 1.7 specification,
 | 
					        // The named Print action is not a part of the PDF 1.7 specification,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user