本文整理汇总了PHP中PDF_Common::setup_ids方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF_Common::setup_ids方法的具体用法?PHP PDF_Common::setup_ids怎么用?PHP PDF_Common::setup_ids使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF_Common
的用法示例。
在下文中一共展示了PDF_Common::setup_ids方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/**
* Debugging can be done by adding &html=1 to the end of the URL when viewing the PDF
* We no longer need to access the file directly.
*/
if (!class_exists('RGForms')) {
/* Accessed directly */
exit;
}
/**
* Set up the form ID and lead ID, as well as we want page breaks displayed.
* Form ID and Lead ID can be set by passing it to the URL - ?fid=1&lid=10
*/
PDF_Common::setup_ids();
/**
* Load the form data, including the custom style sheet which looks in the plugin's theme folder before defaulting back to the plugin's file.
*/
$form = RGFormsModel::get_form_meta($form_id);
$stylesheet_location = file_exists(PDF_TEMPLATE_LOCATION . 'template.css') ? PDF_TEMPLATE_URL_LOCATION . 'template.css' : PDF_PLUGIN_URL . 'styles/template.css';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style>
body { font-family: Arial; font-size: 11pt; }
p { text-align: left; margin-bottom: 4pt; margin-top:0pt; }