Lines Matching refs:handler

68      * @param FPDF $handler PDF file wrapper (FPDF object)
75 function out(&$handler) { argument
76 if (!$handler->is_object_written($this->get_object_id())) {
77 $handler->offsets[$this->get_object_id()] = strlen($handler->buffer);
78 $handler->_out($handler->_indirect_object($this));
80 $this->_out_nested($handler);
88 * @param FPDF $handler PDF file wrapper (FPDF object)
92 function _out_nested(&$handler) { argument
96 function PDFIndirectObject(&$handler, argument
103 function pdf(&$handler) { argument
104 return $handler->_dictionary($this->_dict($handler));
115 function PDFPage(&$handler, argument
118 $this->PDFIndirectObject($handler,
127 function _annotations(&$handler) { argument
128 return $handler->_reference_array($this->annotations);
135 function PDFAppearanceStream(&$handler, argument
139 $this->PDFIndirectObject($handler,
146 function pdf(&$handler) { argument
157 $content = $handler->_dictionary($dict_content);
159 $content .= $handler->_stream($this->_content);
166 function PDFAnnotation(&$handler, argument
169 $this->PDFIndirectObject($handler,
174 function _dict(&$handler) { argument
175 return array_merge(parent::_dict($handler),
176 array("Type" => $handler->_name("Annot")));
193 function left(&$handler) { argument
194 return $handler->x_coord($this->x);
197 function right(&$handler) { argument
198 return $handler->x_coord($this->x+$this->w);
201 function top(&$handler) { argument
202 return $handler->y_coord($this->y);
205 function bottom(&$handler) { argument
206 return $handler->y_coord($this->y+$this->h);
209 function pdf(&$handler) { argument
210 return $handler->_array(sprintf("%.2f %.2f %.2f %.2f",
211 $this->left($handler),
212 $this->top($handler),
213 $this->right($handler),
214 $this->bottom($handler)));
222 function PDFAnnotationExternalLink(&$handler, argument
227 $this->PDFAnnotation($handler,
235 function _dict(&$handler) { argument
236 return array_merge(parent::_dict($handler),
239 'Rect' => $this->rect->pdf($handler),
241 … 'A' => "<</S /URI /URI ".$handler->_textstring($this->link).">>"
250 function PDFAnnotationInternalLink(&$handler, argument
255 $this->PDFAnnotation($handler,
263 function pdf(&$handler) { argument
264 if ($handler->DefOrientation=='P') {
265 $wPt=$handler->fwPt;
266 $hPt=$handler->fhPt;
268 $wPt=$handler->fhPt;
269 $hPt=$handler->fwPt;
271 $l = $handler->links[$this->link];
272 $h = isset($handler->OrientationChanges[$l[0]]) ? $wPt : $hPt;
283 if (!isset($handler->_pages[$l[0]-1])) {
287 $content = $handler->_dictionary(array(
290 'Rect' => $this->rect->pdf($handler),
293 … $handler->_reference($handler->_pages[$l[0]-1]),
294 $h-$l[1]*$handler->k)
303 function PDFAnnotationWidget(&$handler, argument
307 $this->PDFAnnotation($handler,
314 function _dict(&$handler) { argument
315 return array_merge(parent::_dict($handler),
316 array("Subtype" => $handler->_name("Widget"),
317 'Rect' => $this->_rect->pdf($handler)));
328 function PDFFieldGroup(&$handler, argument
332 $this->PDFIndirectObject($handler,
386 function _dict(&$handler) { argument
387 return array_merge(parent::_dict($handler),
388 array("Kids" => $handler->_reference_array($this->_kids),
389 "T" => $handler->_textstring($this->_group_name)));
393 function _out_nested(&$handler) { argument
394 parent::_out_nested($handler);
397 $field->out($handler);
419 function PDFField(&$handler, argument
424 $this->PDFAnnotationWidget($handler,
448 function _dict(&$handler) { argument
449 return array_merge(parent::_dict($handler),
450 array("Parent" => $handler->_reference($this->_parent),
451 "T" => $handler->_textstring($this->get_field_name())));
454 function pdf(&$handler) { argument
455 return $handler->_dictionary($this->_dict($handler));
480 function PDFFieldCheckBox(&$handler, argument
487 $this->PDFField($handler,
496 $this->_appearance_on = new PDFAppearanceStream($handler,
497 $handler->_generate_new_object_number(),
501 $this->_appearance_off = new PDFAppearanceStream($handler,
502 $handler->_generate_new_object_number(),
507 function _dict(&$handler) { argument
508 return array_merge(parent::_dict($handler),
514 … 'DV' => $this->_checked ? $handler->_name($this->_value) : "/Off",
515 … 'V' => $this->_checked ? $handler->_name($this->_value) : "/Off",
518 $handler->_reference($this->_appearance_on),
519 $handler->_reference($this->_appearance_off))
524 function _out_nested(&$handler) { argument
525 parent::_out_nested($handler);
527 $this->_appearance_on->out($handler);
528 $this->_appearance_off->out($handler);
537 function _out_nested(&$handler) { argument
538 parent::_out_nested($handler);
540 $this->_appearance->out($handler);
543 function PDFFieldPushButton(&$handler, argument
549 $this->PDFField($handler,
557 $this->_appearance = new PDFAppearanceStream($handler,
558 $handler->_generate_new_object_number(),
563 function _action(&$handler) { argument
567 function _dict(&$handler) { argument
568 return array_merge(parent::_dict($handler),
577 'AP' => "<< /N ".$handler->_reference($this->_appearance)." >>",
578 'AA' => $this->_action($handler)
586 function PDFFieldPushButtonImage(&$handler, argument
595 $this->PDFFieldPushButton($handler,
606 function _action(&$handler) { argument
607 $action = $handler->_dictionary(array(
609 'F' => $handler->_textstring($this->_link),
610 … 'Fields'=> $handler->_reference_array(array($this->get_parent())),
614 return $handler->_dictionary(array('U' => $action));
622 function PDFFieldPushButtonSubmit(&$handler, argument
631 $this->PDFFieldPushButton($handler,
643 function _action(&$handler) { argument
644 $action = $handler->_dictionary(array(
646 'F' => $handler->_textstring($this->_link),
647 … 'Fields'=> $handler->_reference_array(array($this->get_parent())),
652 return $handler->_dictionary(array('U' => $action));
657 function PDFFieldPushButtonReset(&$handler, argument
663 $this->PDFFieldPushButton($handler,
671 function _action(&$handler) { argument
672 $action = $handler->_dictionary(array('S' => "/ResetForm"));
673 return $handler->_dictionary(array('U' => $action));
699 function PDFFieldRadio(&$handler, argument
704 $this->PDFAnnotationWidget($handler,
711 $this->_appearance_on = new PDFAppearanceStream($handler,
712 $handler->_generate_new_object_number(),
716 $this->_appearance_off = new PDFAppearanceStream($handler,
717 $handler->_generate_new_object_number(),
722 function _dict(&$handler) { argument
723 return array_merge(parent::_dict($handler),
726 'Parent' => $handler->_reference($this->_parent),
729 $handler->_reference($this->_appearance_on),
730 $handler->_reference($this->_appearance_off))
734 function _out_nested(&$handler) { argument
735 parent::_out_nested($handler);
737 $this->_appearance_on->out($handler);
738 $this->_appearance_off->out($handler);
758 function _dict($handler) { argument
759 return array_merge(parent::_dict($handler),
761 … 'DV' => $this->_checked ? $handler->_name($this->_checked) : "/Off",
762 … 'V' => $this->_checked ? $handler->_name($this->_checked) : "/Off",
763 "FT" => $handler->_name('Btn'),
765 "Parent" => $handler->_reference($this->_parent)
777 function PDFFieldRadioGroup(&$handler, argument
781 $this->PDFFieldGroup($handler,
809 function _dict(&$handler) { argument
812 $options[] = $handler->_array(sprintf("%s %s",
813 $handler->_textstring($arr[0]),
814 $handler->_textstring($arr[1])));
817 $options_str = $handler->_array(implode(" ",$options));
819 return array_merge(parent::_dict($handler),
822 'V' => $handler->_textstring($this->_value), // Current value
823 'DV' => $handler->_textstring($this->_value), // Default value
828 function PDFFieldSelect(&$handler, argument
835 $this->PDFField($handler,
861 function _dict(&$handler) { argument
862 return array_merge(parent::_dict($handler),
865 'V' => $handler->_textstring($this->_value), // Current value
866 'DV' => $handler->_textstring($this->_value), // Default value
876 function _out_nested(&$handler) { argument
880 function PDFFieldText(&$handler, argument
888 $this->PDFField($handler,
906 function _dict(&$handler) { argument
907 return array_merge(parent::_dict($handler),
916 function PDFFieldPassword(&$handler, argument
924 $this->PDFFieldText($handler,
934 function _dict(&$handler) { argument
935 return array_merge(parent::_dict($handler),