mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
track strokecolor/ colorspace / render
This commit is contained in:
parent
ca43b6ba4a
commit
78704cca61
@ -155,8 +155,8 @@ class HTMLRenderer : public OutputDev
|
|||||||
/*
|
/*
|
||||||
* Ugly implementation of save/restore
|
* Ugly implementation of save/restore
|
||||||
*/
|
*/
|
||||||
virtual void saveState(GfxState * state) {updateAll(state);}
|
virtual void saveState(GfxState * state) { updateAll(state); }
|
||||||
virtual void restoreState(GfxState * state) {updateAll(state);}
|
virtual void restoreState(GfxState * state) { updateAll(state); }
|
||||||
|
|
||||||
virtual void updateAll(GfxState * state);
|
virtual void updateAll(GfxState * state);
|
||||||
|
|
||||||
@ -172,7 +172,12 @@ class HTMLRenderer : public OutputDev
|
|||||||
virtual void updateCharSpace(GfxState * state);
|
virtual void updateCharSpace(GfxState * state);
|
||||||
virtual void updateWordSpace(GfxState * state);
|
virtual void updateWordSpace(GfxState * state);
|
||||||
|
|
||||||
|
virtual void updateRender(GfxState * state);
|
||||||
|
|
||||||
|
virtual void updateFillColorSpace(GfxState * state);
|
||||||
|
virtual void updateStrokeColorSpace(GfxState * state);
|
||||||
virtual void updateFillColor(GfxState * state);
|
virtual void updateFillColor(GfxState * state);
|
||||||
|
virtual void updateStrokeColor(GfxState * state);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -70,11 +70,28 @@ void HTMLRenderer::updateWordSpace(GfxState * state)
|
|||||||
{
|
{
|
||||||
word_space_changed = true;
|
word_space_changed = true;
|
||||||
}
|
}
|
||||||
|
void HTMLRenderer::updateRender(GfxState * state)
|
||||||
|
{
|
||||||
|
// currently Render is traced for color only
|
||||||
|
// might need something like render_changed later
|
||||||
|
color_changed = true;
|
||||||
|
}
|
||||||
|
void HTMLRenderer::updateFillColorSpace(GfxState * state)
|
||||||
|
{
|
||||||
|
color_changed = true;
|
||||||
|
}
|
||||||
|
void HTMLRenderer::updateStrokeColorSpace(GfxState * state)
|
||||||
|
{
|
||||||
|
color_changed = true;
|
||||||
|
}
|
||||||
void HTMLRenderer::updateFillColor(GfxState * state)
|
void HTMLRenderer::updateFillColor(GfxState * state)
|
||||||
{
|
{
|
||||||
color_changed = true;
|
color_changed = true;
|
||||||
}
|
}
|
||||||
|
void HTMLRenderer::updateStrokeColor(GfxState * state)
|
||||||
|
{
|
||||||
|
color_changed = true;
|
||||||
|
}
|
||||||
void HTMLRenderer::check_state_change(GfxState * state)
|
void HTMLRenderer::check_state_change(GfxState * state)
|
||||||
{
|
{
|
||||||
// DEPENDENCY WARNING
|
// DEPENDENCY WARNING
|
||||||
|
Loading…
Reference in New Issue
Block a user