diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-07-11 21:19:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-11 21:19:22 +0000 |
commit | b4bcf69210719810ca563b9f8c0179719e80d212 (patch) | |
tree | 1a809ee9a2c7b20db29e33918b6eecfa0aae8a2b /core/fpdfapi/edit/cpdf_pagecontentgenerator.h | |
parent | 10a7ddb596f0089ba12d0db29b5752a61919a208 (diff) | |
download | pdfium-b4bcf69210719810ca563b9f8c0179719e80d212.tar.xz |
Write marked content operators when generating a stream.
The marked content operators are BMC, BDC and EMC. In the case of
BDC, it is preceded by a direct dict or a property name.
Bug: pdfium:1118
Change-Id: I3ee736ff7be3e7d7dde55ef581af3444a325e887
Reviewed-on: https://pdfium-review.googlesource.com/37470
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_pagecontentgenerator.h')
-rw-r--r-- | core/fpdfapi/edit/cpdf_pagecontentgenerator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h index 13b8431f18..029a77935b 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h @@ -16,6 +16,7 @@ #include "core/fxcrt/fx_system.h" #include "core/fxcrt/unowned_ptr.h" +class CPDF_ContentMark; class CPDF_Document; class CPDF_ImageObject; class CPDF_Object; @@ -44,6 +45,11 @@ class CPDF_PageContentGenerator { ByteString GetOrCreateDefaultGraphics() const; ByteString RealizeResource(const CPDF_Object* pResource, const ByteString& bsType) const; + const CPDF_ContentMark* ProcessContentMarks(std::ostringstream* buf, + const CPDF_PageObject* pPageObj, + const CPDF_ContentMark* pPrev); + void FinishMarks(std::ostringstream* buf, + const CPDF_ContentMark* pContentMark); // Returns a map from content stream index to new stream data. Unmodified // streams are not touched. |