Bugzilla – Attachment 101584 Details for
Bug 156300
CUPS support for poppler
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
Poppler fix to render a specific page
poppler-0.5.4_renderPage.patch (text/x-diff), 1.85 KB, created by
Klaus Singvogel
on 2006-10-16 15:31:35 UTC
(
hide
)
Description:
Poppler fix to render a specific page
Filename:
MIME Type:
Creator:
Klaus Singvogel
Created:
2006-10-16 15:31:35 UTC
Size:
1.85 KB
patch
obsolete
>diff -Naur poppler-0.5.4.org/poppler/Gfx.cc poppler-0.5.4/poppler/Gfx.cc >--- poppler-0.5.4.org/poppler/Gfx.cc 2006-10-09 11:12:40.000000000 +0200 >+++ poppler-0.5.4/poppler/Gfx.cc 2006-10-09 11:14:07.000000000 +0200 >@@ -444,7 +444,12 @@ > fontChanged = gFalse; > clip = clipNone; > ignoreUndef = 0; >+ > out->startPage(pageNum, state); >+ renderThisPage = out->renderPage(pageNum); >+ if (!renderThisPage) >+ return; >+ > out->setDefaultCTM(state->getCTM()); > out->updateAll(state); > for (i = 0; i < 6; ++i) { >@@ -476,6 +481,7 @@ > xref = xrefA; > subPage = gTrue; > printCommands = globalParams->getPrintCommands(); >+ renderThisPage = gTrue; > > // start the resource stack > res = new GfxResources(xref, resDict, NULL); >@@ -525,6 +531,9 @@ > Object obj2; > int i; > >+ if (!renderThisPage) >+ return; >+ > if (obj->isArray()) { > for (i = 0; i < obj->arrayGetLength(); ++i) { > obj->arrayGet(i, &obj2); >diff -Naur poppler-0.5.4.org/poppler/Gfx.h poppler-0.5.4/poppler/Gfx.h >--- poppler-0.5.4.org/poppler/Gfx.h 2006-10-09 11:12:40.000000000 +0200 >+++ poppler-0.5.4/poppler/Gfx.h 2006-10-09 11:12:52.000000000 +0200 >@@ -156,6 +156,7 @@ > GBool // callback to check for an abort > (*abortCheckCbk)(void *data); > void *abortCheckCbkData; >+ GBool renderThisPage; // Render this page? > > static Operator opTab[]; // table of operators > >diff -Naur poppler-0.5.4.org/poppler/OutputDev.h poppler-0.5.4/poppler/OutputDev.h >--- poppler-0.5.4.org/poppler/OutputDev.h 2006-10-09 11:12:40.000000000 +0200 >+++ poppler-0.5.4/poppler/OutputDev.h 2006-10-09 11:12:52.000000000 +0200 >@@ -74,6 +74,9 @@ > // Set default transform matrix. > virtual void setDefaultCTM(double *ctm); > >+ // Should the page be rendered >+ virtual GBool renderPage(int /*pageNum*/) { return gTrue; } >+ > // Start a page. > virtual void startPage(int /*pageNum*/, GfxState * /*state*/) {} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 156300
:
101581
|
101582
| 101584 |
101585