mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
[api-minor] Expose the existence of a Collection
dictionary via the getMetadata
API method (issue 10555)
Given the complexity of this functionality, and the fact that it doesn't seem widely used, I highly doubt that it'd ever make sense to support Collections; see also https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#M11.9.39646.2Heading.824.Collections
This commit is contained in:
parent
81f5835cd7
commit
60f6d49ff7
2 changed files with 17 additions and 2 deletions
|
@ -846,6 +846,7 @@ describe('api', function() {
|
|||
expect(info['IsLinearized']).toEqual(false);
|
||||
expect(info['IsAcroFormPresent']).toEqual(false);
|
||||
expect(info['IsXFAPresent']).toEqual(false);
|
||||
expect(info['IsCollectionPresent']).toEqual(false);
|
||||
|
||||
expect(metadata instanceof Metadata).toEqual(true);
|
||||
expect(metadata.get('dc:title')).toEqual('Basic API Test');
|
||||
|
@ -874,6 +875,7 @@ describe('api', function() {
|
|||
expect(info['IsLinearized']).toEqual(false);
|
||||
expect(info['IsAcroFormPresent']).toEqual(false);
|
||||
expect(info['IsXFAPresent']).toEqual(false);
|
||||
expect(info['IsCollectionPresent']).toEqual(false);
|
||||
|
||||
expect(metadata).toEqual(null);
|
||||
expect(contentDispositionFilename).toEqual(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue