mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Finishing catalog object
This commit is contained in:
@@ -214,6 +214,11 @@ PDFCatalog PDFCatalog::parse(const PDFObject& catalog, const PDFDocument* docume
|
|||||||
catalogObject.m_pieceInfo = catalogDictionary->get("PieceInfo");
|
catalogObject.m_pieceInfo = catalogDictionary->get("PieceInfo");
|
||||||
catalogObject.m_perms = catalogDictionary->get("Perms");
|
catalogObject.m_perms = catalogDictionary->get("Perms");
|
||||||
catalogObject.m_legalAttestation = PDFLegalAttestation::parse(&document->getStorage(), catalogDictionary->get("Legal"));
|
catalogObject.m_legalAttestation = PDFLegalAttestation::parse(&document->getStorage(), catalogDictionary->get("Legal"));
|
||||||
|
catalogObject.m_requirements = catalogDictionary->get("Requirements");
|
||||||
|
catalogObject.m_collection = catalogDictionary->get("Collection");
|
||||||
|
catalogObject.m_xfaNeedsRendering = loader.readBooleanFromDictionary(catalogDictionary, "NeedsRendering", false);
|
||||||
|
catalogObject.m_associatedFiles = catalogDictionary->get("AF");
|
||||||
|
catalogObject.m_documentPartRoot = catalogDictionary->get("DPartRoot");
|
||||||
|
|
||||||
return catalogObject;
|
return catalogObject;
|
||||||
}
|
}
|
||||||
|
@@ -513,6 +513,11 @@ public:
|
|||||||
const PDFObject& getPieceInfo() const { return m_pieceInfo; }
|
const PDFObject& getPieceInfo() const { return m_pieceInfo; }
|
||||||
const PDFObject& getPerms() const { return m_perms; }
|
const PDFObject& getPerms() const { return m_perms; }
|
||||||
const PDFLegalAttestation* getLegalAttestation() const { return m_legalAttestation.has_value() ? &m_legalAttestation.value() : nullptr; }
|
const PDFLegalAttestation* getLegalAttestation() const { return m_legalAttestation.has_value() ? &m_legalAttestation.value() : nullptr; }
|
||||||
|
const PDFObject& getRequirements() const { return m_requirements; }
|
||||||
|
const PDFObject& getCollection() const { return m_collection; }
|
||||||
|
bool isXFANeedsRendering() const { return m_xfaNeedsRendering; }
|
||||||
|
const PDFObject& getAssociatedFiles() const { return m_associatedFiles; }
|
||||||
|
const PDFObject& getDocumentPartRoot() const { return m_documentPartRoot; }
|
||||||
|
|
||||||
/// Is document marked to have structure tree conforming to tagged document convention?
|
/// Is document marked to have structure tree conforming to tagged document convention?
|
||||||
bool isLogicalStructureMarked() const { return m_markInfoFlags.testFlag(MarkInfo_Marked); }
|
bool isLogicalStructureMarked() const { return m_markInfoFlags.testFlag(MarkInfo_Marked); }
|
||||||
@@ -568,6 +573,11 @@ private:
|
|||||||
PDFObject m_pieceInfo;
|
PDFObject m_pieceInfo;
|
||||||
PDFObject m_perms;
|
PDFObject m_perms;
|
||||||
std::optional<PDFLegalAttestation> m_legalAttestation;
|
std::optional<PDFLegalAttestation> m_legalAttestation;
|
||||||
|
PDFObject m_requirements;
|
||||||
|
PDFObject m_collection;
|
||||||
|
bool m_xfaNeedsRendering = false;
|
||||||
|
PDFObject m_associatedFiles;
|
||||||
|
PDFObject m_documentPartRoot;
|
||||||
|
|
||||||
// Maps from Names dictionary
|
// Maps from Names dictionary
|
||||||
std::map<QByteArray, PDFDestination> m_destinations;
|
std::map<QByteArray, PDFDestination> m_destinations;
|
||||||
|
Reference in New Issue
Block a user