static void printInfoString(Dict *infoDict, char *key, char *fmt);
static void printInfoDate(Dict *infoDict, char *key, char *fmt);
-static char userPassword[33] = "";
-static GBool printVersion = gFalse;
-static GBool printHelp = gFalse;
-
double fontsizes[] =
{
0.833,0.833,0.889,0.889,0.788,0.722,0.833,0.778,0.600,0.600,0.600,0.600,0.576,0.576,0.576,0.576
int setT1Font(char*name,FontEncoding*enc);
int t1id;
- int jpeginfo; // did we write "Page contains jpegs" yet?
- int pbminfo; // did we write "Page contains jpegs" yet?
+ int jpeginfo; // did we write "File contains jpegs" yet?
+ int pbminfo; // did we write "File contains jpegs" yet?
+ int linkinfo; // did we write "File contains links" yet?
GfxState *laststate;
};
SWFOutputDev::SWFOutputDev()
{
jpeginfo = 0;
+ linkinfo = 0;
pbminfo = 0;
clippos = 0;
clipping[clippos] = 0;
void SWFOutputDev::beginString(GfxState *state, GString *s)
{
double m11,m21,m12,m22;
- logf("<debug> beginstring \"%s\"\n", s->getCString());
+// logf("<debug> %s beginstring \"%s\"\n", gfxstate2str(state), s->getCString());
state->getFontTransMat(&m11, &m12, &m21, &m22);
m11 *= state->getHorizScaling();
m21 *= state->getHorizScaling();
break;
}
}
+ if(!linkinfo && (page || url))
+ {
+ logf("<notice> File contains links");
+ linkinfo = 1;
+ }
if(page>0)
{
int t;
return 0;
this->t1id = id;
+ return 1;
}
void SWFOutputDev::updateLineWidth(GfxState *state)
char * fontname = 0;
GfxFont*gfxFont = state->getFont();
char * fileName = 0;
+
+// logf("<debug> %s updateFont\n", gfxstate2str(state));
if (!gfxFont) {
return;
opennewwindow = 1;
}
+void pdfswf_storeallcharacters()
+{
+ storeallcharacters = 1;
+}
+
void pdfswf_jpegquality(int val)
{
if(val<0) val=0;