From d9dad3a1915973d113f1f8685474a5a8c1f4faac Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 6 Apr 2017 14:44:02 -0400 Subject: Add title (/T) extraction for PDF tagged structures This CL adds the ability to extract the title from a tagged structure element if one exists. Bug: pdfium:672 Change-Id: I22e2a8371db4f08b8a70dd77002f1befab97f530 Reviewed-on: https://pdfium-review.googlesource.com/3819 Reviewed-by: Lei Zhang Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- core/fpdfdoc/cpdf_structelement.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/fpdfdoc/cpdf_structelement.h') diff --git a/core/fpdfdoc/cpdf_structelement.h b/core/fpdfdoc/cpdf_structelement.h index ba0685e895..c65363db53 100644 --- a/core/fpdfdoc/cpdf_structelement.h +++ b/core/fpdfdoc/cpdf_structelement.h @@ -39,6 +39,7 @@ class CPDF_StructElement : public CFX_Retainable { friend CFX_RetainPtr pdfium::MakeRetain(Args&&... args); const CFX_ByteString& GetType() const { return m_Type; } + const CFX_ByteString& GetTitle() const { return m_Title; } CPDF_Dictionary* GetDict() const { return m_pDict; } int CountKids() const; @@ -58,6 +59,7 @@ class CPDF_StructElement : public CFX_Retainable { CPDF_StructElement* const m_pParent; CPDF_Dictionary* const m_pDict; CFX_ByteString m_Type; + CFX_ByteString m_Title; std::vector m_Kids; }; -- cgit v1.2.3