pi->outputDev->setXRef(pi->doc, pi->doc->getXRef());
pi->doc->displayPage((OutputDev*)pi->outputDev, page->nr, zoom, zoom, /*rotate*/0, true, true, /*doLinks*/(int)1);
pi->doc->processLinks((OutputDev*)pi->outputDev, page->nr);
pi->outputDev->setXRef(pi->doc, pi->doc->getXRef());
pi->doc->displayPage((OutputDev*)pi->outputDev, page->nr, zoom, zoom, /*rotate*/0, true, true, /*doLinks*/(int)1);
pi->doc->processLinks((OutputDev*)pi->outputDev, page->nr);
int pdfpage=0, outputpage=0;
sscanf(value,"%d:%d", &pdfpage, &outputpage);
o->preparePage(pdfpage, outputpage);
} else {
int pdfpage=0, outputpage=0;
sscanf(value,"%d:%d", &pdfpage, &outputpage);
o->preparePage(pdfpage, outputpage);
} else {
{
pdf_doc_internal_t*i= (pdf_doc_internal_t*)doc->internal;
if(!strcmp(name, "title")) return getInfoString(i->docinfo.getDict(), "Title");
{
pdf_doc_internal_t*i= (pdf_doc_internal_t*)doc->internal;
if(!strcmp(name, "title")) return getInfoString(i->docinfo.getDict(), "Title");
else if(!strcmp(name, "creationdate")) return getInfoDate(i->docinfo.getDict(), "CreationDate");
else if(!strcmp(name, "moddate")) return getInfoDate(i->docinfo.getDict(), "ModDate");
else if(!strcmp(name, "linearized")) return strdup(i->doc->isLinearized() ? "yes" : "no");
else if(!strcmp(name, "creationdate")) return getInfoDate(i->docinfo.getDict(), "CreationDate");
else if(!strcmp(name, "moddate")) return getInfoDate(i->docinfo.getDict(), "ModDate");
else if(!strcmp(name, "linearized")) return strdup(i->doc->isLinearized() ? "yes" : "no");
else if(!strcmp(name, "encrypted")) return strdup(i->doc->isEncrypted() ? "yes" : "no");
else if(!strcmp(name, "oktoprint")) return strdup(i->doc->okToPrint() ? "yes" : "no");
else if(!strcmp(name, "oktocopy")) return strdup(i->doc->okToCopy() ? "yes" : "no");
else if(!strcmp(name, "oktochange")) return strdup(i->doc->okToChange() ? "yes" : "no");
else if(!strcmp(name, "oktoaddnotes")) return strdup(i->doc->okToAddNotes() ? "yes" : "no");
else if(!strcmp(name, "encrypted")) return strdup(i->doc->isEncrypted() ? "yes" : "no");
else if(!strcmp(name, "oktoprint")) return strdup(i->doc->okToPrint() ? "yes" : "no");
else if(!strcmp(name, "oktocopy")) return strdup(i->doc->okToCopy() ? "yes" : "no");
else if(!strcmp(name, "oktochange")) return strdup(i->doc->okToChange() ? "yes" : "no");
else if(!strcmp(name, "oktoaddnotes")) return strdup(i->doc->okToAddNotes() ? "yes" : "no");
{
msg("<verbose> setting parameter %s to \"%s\"", name, value);
if(!strncmp(name, "fontdir", strlen("fontdir"))) {
{
msg("<verbose> setting parameter %s to \"%s\"", name, value);
if(!strncmp(name, "fontdir", strlen("fontdir"))) {
gfxdocument_t*pdf_doc = (gfxdocument_t*)malloc(sizeof(gfxdocument_t));
memset(pdf_doc, 0, sizeof(gfxdocument_t));
pdf_doc_internal_t*i= (pdf_doc_internal_t*)malloc(sizeof(pdf_doc_internal_t));
gfxdocument_t*pdf_doc = (gfxdocument_t*)malloc(sizeof(gfxdocument_t));
memset(pdf_doc, 0, sizeof(gfxdocument_t));
pdf_doc_internal_t*i= (pdf_doc_internal_t*)malloc(sizeof(pdf_doc_internal_t));
int t;
i->pages = (pdf_page_info_t*)malloc(sizeof(pdf_page_info_t)*pdf_doc->num_pages);
memset(i->pages,0,sizeof(pdf_page_info_t)*pdf_doc->num_pages);
int t;
i->pages = (pdf_page_info_t*)malloc(sizeof(pdf_page_info_t)*pdf_doc->num_pages);
memset(i->pages,0,sizeof(pdf_page_info_t)*pdf_doc->num_pages);