git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added experimental splashoutputdev code
[swftools.git]
/
lib
/
pdf
/
InfoOutputDev.cc
diff --git
a/lib/pdf/InfoOutputDev.cc
b/lib/pdf/InfoOutputDev.cc
index
830776d
..
2bcbdaa
100644
(file)
--- a/
lib/pdf/InfoOutputDev.cc
+++ b/
lib/pdf/InfoOutputDev.cc
@@
-1,14
+1,19
@@
+#include "SplashTypes.h"
+#include "SplashOutputDev.h"
#include "InfoOutputDev.h"
#include "GfxState.h"
#include "../log.h"
#include <math.h>
#include "InfoOutputDev.h"
#include "GfxState.h"
#include "../log.h"
#include <math.h>
-InfoOutputDev::InfoOutputDev()
+InfoOutputDev::InfoOutputDev(XRef*xref)
{
num_links = 0;
num_images = 0;
num_fonts = 0;
id2font = new GHash();
{
num_links = 0;
num_images = 0;
num_fonts = 0;
id2font = new GHash();
+ SplashColor white = {255,255,255};
+ splash = new SplashOutputDev(splashModeRGB8,320,0,white,0,0);
+ splash->startDoc(xref);
}
InfoOutputDev::~InfoOutputDev()
{
}
InfoOutputDev::~InfoOutputDev()
{
@@
-58,7
+63,6
@@
static char*getFontID(GfxFont*font)
return strdup(buf);
}
return strdup(buf);
}
-
void InfoOutputDev::updateFont(GfxState *state)
{
GfxFont*font = state->getFont();
void InfoOutputDev::updateFont(GfxState *state)
{
GfxFont*font = state->getFont();
@@
-77,6
+81,10
@@
void InfoOutputDev::updateFont(GfxState *state)
num_fonts++;
}
currentfont = info;
num_fonts++;
}
currentfont = info;
+
+ splash->doUpdateFont(state);
+ SplashFont* splash_font = splash->font;
+ //printf("%s: %d chars\n", id, splash_font->getNumChars());
}
void InfoOutputDev::drawChar(GfxState *state, double x, double y,
}
void InfoOutputDev::drawChar(GfxState *state, double x, double y,