diff options
author | Nicolas Pena <npm@chromium.org> | 2017-06-28 15:31:56 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-28 19:58:25 +0000 |
commit | 9ba8fbc02e86a6b7cb5c4142d9481ae3238c1ec4 (patch) | |
tree | 3121a73de34a92edd84b982e04b2b900a878e90c /core/fpdfapi/page/cpdf_contentparser.h | |
parent | d4fb57a4e23ccc2e374c64ea5d5705f492fdd083 (diff) | |
download | pdfium-9ba8fbc02e86a6b7cb5c4142d9481ae3238c1ec4.tar.xz |
Set default graphics before generating page contents
In this CL, the content generator sets some default graphics states
before processing the page objects. In particular, a default ExtGState
is now set before processing, and the last CTM is now stored right
after parsing finishes: the only command to change matrix is ctm, and
it concatenates, so inverting requires knowing the current value.
Bug: pdfium:779
Change-Id: I35b1c07550ce91839fb0e20fbf717e3e80c9b9d6
Reviewed-on: https://pdfium-review.googlesource.com/7070
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_contentparser.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_contentparser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_contentparser.h b/core/fpdfapi/page/cpdf_contentparser.h index 58a977301f..b18e07036c 100644 --- a/core/fpdfapi/page/cpdf_contentparser.h +++ b/core/fpdfapi/page/cpdf_contentparser.h @@ -29,6 +29,7 @@ class CPDF_ContentParser { ~CPDF_ContentParser(); ParseStatus GetStatus() const { return m_Status; } + CPDF_StreamContentParser* GetParser() const { return m_pParser.get(); } void Start(CPDF_Page* pPage); void Start(CPDF_Form* pForm, CPDF_AllStates* pGraphicStates, |