Displaying 1 result from an estimated 1 matches for "pagemax".
Did you mean:
pagemap
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...pDevDesc dd);
+ static void PDF_free_annots(PDFDesc *pd);
+ static void PDF_add_annot(PDFDesc *pd, char *str);
#ifdef SUPPORT_MBCS
static double PDF_StrWidthUTF8(const char *str,
const pGEcontext gc,
***************
*** 5315,5320 ****
--- 5335,5348 ----
}
pd->pagemax = 100;
+ pd->annots = (char **) calloc(100, sizeof(char *));
+ if(!pd->annots) {
+ free(pd->pos); free(pd->pageobj); free(pd); free(dd);
+ error(_("cannot allocate pd->annots"));
+ }
+ pd->annotsmax = 100;
+ pd->annotspos = 0;
+
/* initia...