本文整理匯總了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; }