Lines 441-459
int href_name_match P2C(char *, h, char
Link Here
|
441 |
|
441 |
|
442 |
void stamp_hps P1C(Hps_link *, pl) |
442 |
void stamp_hps P1C(Hps_link *, pl) |
443 |
{ |
443 |
{ |
444 |
char tmpbuf[200] ; |
444 |
char * tmpbuf; |
445 |
if (pl == NULL) { |
445 |
if (pl == NULL) { |
446 |
error("Null pointer, oh no!") ; |
446 |
error("stamp_hps: null pl pointer, oh no!") ; |
447 |
return ; |
447 |
return ; |
448 |
} else { |
448 |
} |
449 |
/* print out the proper pdfm with local page info only |
449 |
if(pl->title == NULL) { |
450 |
* target info will be in the target dictionary */ |
450 |
error("stamp_hps: null pl->title pointer, oh no!") ; |
451 |
(void)sprintf(tmpbuf, |
451 |
return ; |
452 |
" (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, |
452 |
} |
453 |
pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], |
453 |
|
454 |
pl->color[0], pl->color[1], pl->color[2]) ; |
454 |
tmpbuf = (char *) xmalloc(strlen(pl->title)+200); |
455 |
cmdout(tmpbuf) ; |
455 |
|
456 |
} |
456 |
/* print out the proper pdfm with local page info only |
|
|
457 |
* target info will be in the target dictionary */ |
458 |
(void)sprintf(tmpbuf, |
459 |
" (%s) [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] pdfm ", |
460 |
pl->title, pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, |
461 |
pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], |
462 |
pl->color[0], pl->color[1], pl->color[2]) ; |
463 |
cmdout(tmpbuf) ; |
464 |
free(tmpbuf); |
465 |
|
457 |
|
466 |
|
458 |
} |
467 |
} |
459 |
|
468 |
|
Lines 462-479
void stamp_hps P1C(Hps_link *, pl)
Link Here
|
462 |
*/ |
471 |
*/ |
463 |
void stamp_external P2C(char *, s, Hps_link *, pl) |
472 |
void stamp_external P2C(char *, s, Hps_link *, pl) |
464 |
{ |
473 |
{ |
465 |
char tmpbuf[200]; |
474 |
char *tmpbuf; |
466 |
if (pl == NULL) { |
475 |
if (pl == NULL) { |
467 |
error("Null pointer, oh no!") ; |
476 |
error("stamp_external: null pl pointer, oh no!") ; |
468 |
return ; |
477 |
return ; |
469 |
} else { |
478 |
} |
470 |
/* print out the proper pdfm with local page info only |
479 |
|
471 |
* target info will be in the target dictionary */ |
480 |
if (s == NULL) { |
472 |
(void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, |
481 |
error("stamp_external: null s pointer, oh no!") ; |
473 |
pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], |
482 |
return ; |
474 |
pl->color[0], pl->color[1], pl->color[2], s) ; |
483 |
} |
475 |
cmdout(tmpbuf) ; |
484 |
|
476 |
} |
485 |
tmpbuf = (char *) xmalloc(strlen(s) + 200); |
|
|
486 |
|
487 |
/* print out the proper pdfm with local page info only |
488 |
* target info will be in the target dictionary */ |
489 |
(void)sprintf(tmpbuf," [[%.0f %.0f %.0f %.0f] [%i %i %i [%i %i]] [%.0f %.0f %.0f]] (%s) pdfm ", |
490 |
pl->rect.llx, pl->rect.lly, pl->rect.urx, pl->rect.ury, |
491 |
pl->border[0], pl->border[1], pl->border[2], pl->border[3],pl->border[4], |
492 |
pl->color[0], pl->color[1], pl->color[2], s) ; |
493 |
cmdout(tmpbuf) ; |
494 |
free(tmpbuf); |
477 |
} |
495 |
} |
478 |
|
496 |
|
479 |
void finish_hps P1H(void) { |
497 |
void finish_hps P1H(void) { |