| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary | 1 #ifndef __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary |
| 2 #define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary | 2 #define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary |
| 3 | 3 |
| 4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
| 8 | 8 |
| 9 // Additional entry in an embedded file stream dictionary for an encrypted FDF f
ile | 9 // Additional entry in an embedded file stream dictionary for an encrypted FDF f
ile |
| 10 class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary { | 10 class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbe
ddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodo
foObj = from.fPodofoObj; return *this;} | 526 SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbe
ddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodo
foObj = from.fPodofoObj; return *this;} |
| 527 | 527 |
| 528 /** (Required if the FDF file is encrypted; PDF 1.4) The revision number of the | 528 /** (Required if the FDF file is encrypted; PDF 1.4) The revision number of the |
| 529 * FDF encryption algorithm used to encrypt the file. The only valid value | 529 * FDF encryption algorithm used to encrypt the file. The only valid value |
| 530 * defined at the time of publication is 1. | 530 * defined at the time of publication is 1. |
| 531 **/ | 531 **/ |
| 532 bool has_EncryptionRevision() const { | 532 bool has_EncryptionRevision() const { |
| 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encry
ptionRevision", "", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encry
ptionRevision", "", NULL)); |
| 534 } | 534 } |
| 535 | 535 |
| 536 long EncryptionRevision() const { | 536 long EncryptionRevision() const; |
| 537 long ret; | |
| 538 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncryptionR
evision", "", &ret)) return ret; | |
| 539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 540 return 0; | |
| 541 } | |
| 542 | |
| 543 }; | 537 }; |
| 544 | 538 |
| 545 #endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary | 539 #endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary |
| OLD | NEW |