From f06ac93fe6899a0cf8c3b688a012d1c0114bb092 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 6 Jun 2011 13:33:44 -0700 Subject: [PATCH] new option disable_tiling_pattern_fills --- lib/pdf/VectorGraphicOutputDev.cc | 4 ++++ lib/pdf/VectorGraphicOutputDev.h | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/pdf/VectorGraphicOutputDev.cc b/lib/pdf/VectorGraphicOutputDev.cc index 715aa8f8..9194a026 100644 --- a/lib/pdf/VectorGraphicOutputDev.cc +++ b/lib/pdf/VectorGraphicOutputDev.cc @@ -127,6 +127,8 @@ void VectorGraphicOutputDev::setParameter(const char*key, const char*value) this->config_multiply=1; } else if(!strcmp(key,"disable_polygon_conversion")) { this->config_disable_polygon_conversion = atoi(value); + } else if(!strcmp(key,"disable_tiling_pattern_fills")) { + this->config_disable_tiling_pattern_fills = atoi(value); } this->charDev->setParameter(key, value); } @@ -256,6 +258,8 @@ GBool VectorGraphicOutputDev::useTilingPatternFill() infofeature("tiled patterns"); // if(config_convertgradients) // return gTrue; + if(config_disable_tiling_pattern_fills) + return gTrue; return gFalse; } GBool VectorGraphicOutputDev::useShadedFills() diff --git a/lib/pdf/VectorGraphicOutputDev.h b/lib/pdf/VectorGraphicOutputDev.h index 479d77b9..6e530d62 100644 --- a/lib/pdf/VectorGraphicOutputDev.h +++ b/lib/pdf/VectorGraphicOutputDev.h @@ -205,6 +205,7 @@ virtual POPPLER_TILING_PATERN_RETURN tilingPatternFill(GfxState *state, int config_multiply; int config_drawonlyshapes; int config_textonly; + int config_disable_tiling_pattern_fills; gfxdevice_t char_output_dev; CharOutputDev*charDev; -- 2.11.4.GIT