virtual void beginString(GfxState *state, GString *s) ;
virtual void endString(GfxState *state) ;
virtual void drawChar(GfxState *state, double x, double y,
- double dx, double dy, Guchar c) ;
- virtual void drawChar16(GfxState *state, double x, double y,
- double dx, double dy, int c) ;
+ double dx, double dy,
+ double originX, double originY,
+ CharCode code, Unicode *u, int uLen);
//----- image drawing
virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
GBool inlineImg);
virtual void drawImage(GfxState *state, Object *ref, Stream *str,
int width, int height, GfxImageColorMap *colorMap,
- GBool inlineImg);
+ int *maskColors, GBool inlineImg);
private:
void drawGeneralImage(GfxState *state, Object *ref, Stream *str,
if(gstr)
logf("%sTag: %s\n", loglevel, FIXNULL(gstr->getCString()));
- //if(font->is16Bit()) logf("%sis 16 bit\n", loglevel); //FIXME: not existing in xpdf 1.01
+ if(font->isCIDFont()) logf("%sis CID font\n", loglevel);
GfxFontType type=font->getType();
switch(type) {
clippos = 0;
clipping[clippos] = 0;
outputstarted = 0;
+ xref = 0;
// printf("SWFOutputDev::SWFOutputDev() \n");
};
}
int charcounter = 0;
-void SWFOutputDev::drawChar(GfxState *state, double x, double y, double dx, double dy, Guchar c)
+void SWFOutputDev::drawChar(GfxState *state, double x, double y,
+ double dx, double dy,
+ double originX, double originY,
+ CharCode c, Unicode *u, int uLen)
{
logf("<debug> drawChar(%f,%f,%f,%f,'%c')\n",x,y,dx,dy,c);
// check for invisible text -- this is used by Acrobat Capture
GfxFont*font = state->getFont();
Gfx8BitFont*font8;
if(font->isCIDFont()) {
- logf("<error> CID Font\n");
+ logf("<error> CID Font");
return;
}
font8 = (Gfx8BitFont*)font;
}
}
-void SWFOutputDev::drawChar16(GfxState *state, double x, double y, double dx, double dy, int c)
-{
- printf("<error> drawChar16(%f,%f,%f,%f,%08x)\n",x,y,dx,dy,c);
- exit(1);
-}
-
void SWFOutputDev::endString(GfxState *state)
{
logf("<debug> endstring\n");
Ref embRef;
GBool embedded = gfxFont->getEmbeddedFontID(&embRef);
if(embedded) {
- if (//!gfxFont->is16Bit() && FIXME: not in xpdf 1.01
+ if (!gfxFont->isCIDFont() &&
(gfxFont->getType() == fontType1 ||
gfxFont->getType() == fontType1C ||
gfxFont->getType() == fontTrueType)) {
}
void SWFOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
- int width, int height,
- GfxImageColorMap *colorMap, GBool inlineImg)
+ int width, int height, GfxImageColorMap *colorMap,
+ int *maskColors, GBool inlineImg)
{
- logf("<verbose> drawImage %dx%d, %s, inline=%d", width, height,
- colorMap?"colorMap":"no colorMap", inlineImg);
+ logf("<verbose> drawImage %dx%d, %s %s, inline=%d", width, height,
+ colorMap?"colorMap":"no colorMap",
+ maskColors?"maskColors":"no maskColors",
+ inlineImg);
if(colorMap)
logf("<verbose> colorMap pixcomps:%d bits:%d mode:%d\n", colorMap->getNumPixelComps(),
colorMap->getBits(),colorMap->getColorSpace()->getMode());
GString *fileName = new GString(filename);
GString *userPW;
Object info;
- // init error file
- //errorInit(); FIXME xpdf 1.01
// read config file
globalParams = new GlobalParams("");