Lines Matching refs:page_range

357     char *page_range = NULL;  in _get_pdf_page_range()  local
364 page_range = (char *) malloc(page_range_size + 1); in _get_pdf_page_range()
365 memset(page_range, 0, page_range_size + 1); in _get_pdf_page_range()
366 strncpy(page_range, (char *) pageRange, page_range_size); in _get_pdf_page_range()
369 if (strcmp(page_range, "") == 0) { in _get_pdf_page_range()
370 free(page_range); in _get_pdf_page_range()
371 page_range = NULL; in _get_pdf_page_range()
375 LOGD("_get_pdf_page_range(), page_range from JNI environment=%s", page_range); in _get_pdf_page_range()
379 if (!page_range) { in _get_pdf_page_range()
380 page_range = (char *) malloc(MAX_NUM_PAGES + 1); in _get_pdf_page_range()
381 memset(page_range, 0, MAX_NUM_PAGES + 1); in _get_pdf_page_range()
384 snprintf(page_range, MAX_NUM_PAGES, "1-%d", num_pages); in _get_pdf_page_range()
386 strncpy(page_range_str, page_range, MAX_NUM_PAGES); in _get_pdf_page_range()
393 char *page_range_split = strtok(page_range, ","); in _get_pdf_page_range()
406 if (page_range) { in _get_pdf_page_range()
407 free(page_range); in _get_pdf_page_range()
1058 free(wprintJobParams->page_range); in _convertJobParams_to_C()
1059 wprintJobParams->page_range = NULL; in _convertJobParams_to_C()
1066 wprintJobParams->page_range = (char *) malloc(page_range_size + 1); in _convertJobParams_to_C()
1067 memset(wprintJobParams->page_range, 0, page_range_size + 1); in _convertJobParams_to_C()
1068 strncpy(wprintJobParams->page_range, (char *) pageRange, page_range_size); in _convertJobParams_to_C()