Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Joao Oliveira
Okular
Commits
222f1933
Commit
222f1933
authored
Oct 20, 2004
by
Enrico Ros
Browse files
2/2 Preliminar suport for saving images with RMB popup.
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=356242
parent
d07efe68
Changes
3
Hide whitespace changes
Inline
Side-by-side
kpdf/QOutputDev.cpp
View file @
222f1933
...
...
@@ -174,15 +174,6 @@ GBool KPDFOutputDev::beginType3Char(GfxState *state, double x, double y, double
return
SplashOutputDev
::
beginType3Char
(
state
,
x
,
y
,
dx
,
dy
,
code
,
u
,
uLen
);
}
/*void KPDFOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str,
int width, int height, GBool invert,
GBool inlineImg)
{
double * ctm = state->getCTM();
printf("> %d %d %f %f %f %f %f %f\n", width, height, ctm[0], ctm[1], ctm[2], ctm[3], ctm[4], ctm[5]);
SplashOutputDev::drawImageMask(state, ref, str, width, height, invert, inlineImg);
}
*/
void
KPDFOutputDev
::
drawImage
(
GfxState
*
state
,
Object
*
ref
,
Stream
*
str
,
int
_width
,
int
_height
,
GfxImageColorMap
*
colorMap
,
int
*
maskColors
,
GBool
inlineImg
)
...
...
kpdf/QOutputDev.h
View file @
222f1933
...
...
@@ -62,9 +62,6 @@ public:
virtual
void
drawChar
(
GfxState
*
state
,
double
x
,
double
y
,
double
dx
,
double
dy
,
double
originX
,
double
originY
,
CharCode
code
,
Unicode
*
u
,
int
uLen
);
virtual
GBool
beginType3Char
(
GfxState
*
state
,
double
x
,
double
y
,
double
dx
,
double
dy
,
CharCode
code
,
Unicode
*
u
,
int
uLen
);
//----- image drawing
/* virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
int width, int height, GBool invert,
GBool inlineImg);*/
virtual
void
drawImage
(
GfxState
*
state
,
Object
*
ref
,
Stream
*
str
,
int
width
,
int
height
,
GfxImageColorMap
*
colorMap
,
int
*
maskColors
,
GBool
inlineImg
);
...
...
kpdf/document.cpp
View file @
222f1933
...
...
@@ -270,6 +270,7 @@ void KPDFDocument::requestPixmap( int id, uint page, int width, int height, bool
kp
->
setSearchPage
(
d
->
kpdfOutputDev
->
takeTextPage
()
);
if
(
genLinks
)
kp
->
setLinks
(
d
->
kpdfOutputDev
->
takeLinks
()
);
kp
->
setActiveRects
(
d
->
kpdfOutputDev
->
takeActiveRects
()
);
d
->
observers
[
id
]
->
notifyPixmapChanged
(
page
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment