Lines Matching refs:handler

93      * @param FPDF $handler PDF file wrapper (FPDF object)
100 function out(&$handler) { argument
101 if (!$handler->is_object_written($this->get_object_id())) {
102 $handler->offsets[$this->get_object_id()] = strlen($handler->buffer);
103 $handler->_out($handler->_indirect_object($this));
105 $this->_out_nested($handler);
113 * @param FPDF $handler PDF file wrapper (FPDF object)
117 function _out_nested(&$handler) { argument
121 function PDFIndirectObject(&$handler, argument
128 function pdf(&$handler) { argument
129 return $handler->_dictionary($this->_dict($handler));
140 function PDFCMap($mapping, &$handler, $object_id, $generation_id) { argument
141 $this->PDFIndirectObject($handler,
172 function pdf(&$handler) { argument
177 $content = $handler->_dictionary($dict_content);
179 $content .= $handler->_stream($this->_content);
190 function PDFPage(&$handler, argument
195 $this->PDFIndirectObject($handler,
207 function _annotations(&$handler) { argument
208 return $handler->_reference_array($this->annotations);
231 function PDFAppearanceStream(&$handler, argument
235 $this->PDFIndirectObject($handler,
242 function pdf(&$handler) { argument
253 $content = $handler->_dictionary($dict_content);
255 $content .= $handler->_stream($this->_content);
262 function PDFAnnotation(&$handler, argument
265 $this->PDFIndirectObject($handler,
270 function _dict(&$handler) { argument
271 return array_merge(parent::_dict($handler),
272 array("Type" => $handler->_name("Annot")));
289 function left(&$handler) { argument
290 return $handler->x_coord($this->x);
293 function right(&$handler) { argument
294 return $handler->x_coord($this->x+$this->w);
297 function top(&$handler) { argument
298 return $handler->y_coord($this->y);
301 function bottom(&$handler) { argument
302 return $handler->y_coord($this->y+$this->h);
305 function pdf(&$handler) { argument
306 return $handler->_array(sprintf("%.2f %.2f %.2f %.2f",
307 $this->left($handler),
308 $this->top($handler),
309 $this->right($handler),
310 $this->bottom($handler)));
318 function PDFAnnotationExternalLink(&$handler, argument
323 $this->PDFAnnotation($handler,
331 function _dict(&$handler) { argument
332 return array_merge(parent::_dict($handler),
335 'Rect' => $this->rect->pdf($handler),
337 … 'A' => "<</S /URI /URI ".$handler->_textstring($this->link).">>"
346 function PDFAnnotationInternalLink(&$handler, argument
351 $this->PDFAnnotation($handler,
359 function pdf(&$handler) { argument
360 if ($handler->DefOrientation=='P') {
361 $wPt=$handler->fwPt;
362 $hPt=$handler->fhPt;
364 $wPt=$handler->fhPt;
365 $hPt=$handler->fwPt;
367 $l = $handler->links[$this->link];
379 if (!isset($handler->_pages[$l[0]-1])) {
383 $content = $handler->_dictionary(array(
386 'Rect' => $this->rect->pdf($handler),
389 … $handler->_reference($handler->_pages[$l[0]-1]),
390 $h-$l[1]*$handler->k)
399 function PDFAnnotationWidget(&$handler, argument
403 $this->PDFAnnotation($handler,
410 function _dict(&$handler) { argument
411 return array_merge(parent::_dict($handler),
412 array("Subtype" => $handler->_name("Widget"),
413 'Rect' => $this->_rect->pdf($handler)));
424 function PDFFieldGroup(&$handler, argument
428 $this->PDFIndirectObject($handler,
482 function _dict(&$handler) { argument
483 return array_merge(parent::_dict($handler),
484 array("Kids" => $handler->_reference_array($this->_kids),
485 "T" => $handler->_textstring($this->_group_name)));
489 function _out_nested(&$handler) { argument
490 parent::_out_nested($handler);
493 $field->out($handler);
515 function PDFField(&$handler, argument
520 $this->PDFAnnotationWidget($handler,
544 function _dict(&$handler) { argument
545 return array_merge(parent::_dict($handler),
546 array("Parent" => $handler->_reference($this->_parent),
547 "T" => $handler->_textstring($this->get_field_name()),
551 function pdf(&$handler) { argument
552 return $handler->_dictionary($this->_dict($handler));
577 function PDFFieldCheckBox(&$handler, argument
584 $this->PDFField($handler,
593 $this->_appearance_on = new PDFAppearanceStream($handler,
594 $handler->_generate_new_object_number(),
598 $this->_appearance_off = new PDFAppearanceStream($handler,
599 $handler->_generate_new_object_number(),
604 function _dict(&$handler) { argument
605 return array_merge(parent::_dict($handler),
611 … 'DV' => $this->_checked ? $handler->_name($this->_value) : "/Off",
612 … 'V' => $this->_checked ? $handler->_name($this->_value) : "/Off",
615 $handler->_reference($this->_appearance_on),
616 $handler->_reference($this->_appearance_off))
621 function _out_nested(&$handler) { argument
622 parent::_out_nested($handler);
624 $this->_appearance_on->out($handler);
625 $this->_appearance_off->out($handler);
634 function _out_nested(&$handler) { argument
635 parent::_out_nested($handler);
637 $this->_appearance->out($handler);
640 function PDFFieldPushButton(&$handler, argument
646 $this->PDFField($handler,
654 $this->_appearance = new PDFAppearanceStream($handler,
655 $handler->_generate_new_object_number(),
660 function _action(&$handler) { argument
664 function _dict(&$handler) { argument
665 return array_merge(parent::_dict($handler),
674 'AP' => "<< /N ".$handler->_reference($this->_appearance)." >>",
675 'AA' => $this->_action($handler)
683 function PDFFieldPushButtonImage(&$handler, argument
692 $this->PDFFieldPushButton($handler,
703 function _action(&$handler) { argument
704 $action = $handler->_dictionary(array(
706 'F' => $handler->_textstring($this->_link),
707 … 'Fields'=> $handler->_reference_array(array($this->get_parent())),
711 return $handler->_dictionary(array('U' => $action));
719 function PDFFieldPushButtonSubmit(&$handler, argument
728 $this->PDFFieldPushButton($handler,
740 function _action(&$handler) { argument
741 $action = $handler->_dictionary(array(
743 'F' => $handler->_textstring($this->_link),
744 … 'Fields'=> $handler->_reference_array(array($this->get_parent())),
748 return $handler->_dictionary(array('U' => $action));
753 function PDFFieldPushButtonReset(&$handler, argument
759 $this->PDFFieldPushButton($handler,
767 function _action(&$handler) { argument
768 $action = $handler->_dictionary(array('S' => "/ResetForm"));
769 return $handler->_dictionary(array('U' => $action));
795 function PDFFieldRadio(&$handler, argument
800 $this->PDFAnnotationWidget($handler,
807 $this->_appearance_on = new PDFAppearanceStream($handler,
808 $handler->_generate_new_object_number(),
812 $this->_appearance_off = new PDFAppearanceStream($handler,
813 $handler->_generate_new_object_number(),
818 function _dict(&$handler) { argument
819 return array_merge(parent::_dict($handler),
822 'Parent' => $handler->_reference($this->_parent),
825 $handler->_reference($this->_appearance_on),
826 $handler->_reference($this->_appearance_off))
830 function _out_nested(&$handler) { argument
831 parent::_out_nested($handler);
833 $this->_appearance_on->out($handler);
834 $this->_appearance_off->out($handler);
854 function _dict($handler) { argument
855 return array_merge(parent::_dict($handler),
857 … 'DV' => $this->_checked ? $handler->_name($this->_checked) : "/Off",
858 … 'V' => $this->_checked ? $handler->_name($this->_checked) : "/Off",
859 "FT" => $handler->_name('Btn'),
861 "Parent" => $handler->_reference($this->_parent)
873 function PDFFieldRadioGroup(&$handler, argument
877 $this->PDFFieldGroup($handler,
905 function _dict(&$handler) { argument
908 $options[] = $handler->_array(sprintf("%s %s",
909 $handler->_textstring($arr[0]),
910 $handler->_textstring($arr[1])));
913 $options_str = $handler->_array(implode(" ",$options));
915 return array_merge(parent::_dict($handler),
918 'V' => $handler->_textstring($this->_value), // Current value
919 'DV' => $handler->_textstring($this->_value), // Default value
924 function PDFFieldSelect(&$handler, argument
931 $this->PDFField($handler,
957 function _dict(&$handler) { argument
958 return array_merge(parent::_dict($handler),
961 'V' => $handler->_textstring($this->_value), // Current value
962 'DV' => $handler->_textstring($this->_value), // Default value
972 function _out_nested(&$handler) { argument
976 function PDFFieldText(&$handler, argument
984 $this->PDFField($handler,
1002 function _dict(&$handler) { argument
1003 return array_merge(parent::_dict($handler),
1012 function PDFFieldPassword(&$handler, argument
1020 $this->PDFFieldText($handler,
1030 function _dict(&$handler) { argument
1031 return array_merge(parent::_dict($handler),
1970 $handler,