print_pdf_dompdf.admin.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * Contains the administrative functions of the print_pdf_dompdf sub-module.
  5. *
  6. * This file is included by the print_pdf_dompdf module, and includes the
  7. * settings form.
  8. *
  9. * @ingroup print
  10. */
  11. /**
  12. * Form constructor for the dompdf options settings form.
  13. *
  14. * @ingroup forms
  15. */
  16. function print_pdf_dompdf_settings() {
  17. $form['settings'] = array(
  18. '#type' => 'fieldset',
  19. '#title' => t('dompdf options'),
  20. );
  21. $form['settings']['print_pdf_dompdf_unicode'] = array(
  22. '#type' => 'checkbox',
  23. '#title' => t("Use dompdf's Unicode Mode"),
  24. '#default_value' => variable_get('print_pdf_dompdf_unicode', PRINT_PDF_DOMPDF_UNICODE_DEFAULT),
  25. '#description' => t("If enabled, dompdf's Unicode mode is used. If not, the module will attempt to convert some non-ASCII chars to ISO-8859-1."),
  26. );
  27. $form['settings']['print_pdf_dompdf_font_subsetting'] = array(
  28. '#type' => 'checkbox',
  29. '#title' => t('Enable font subsetting'),
  30. '#default_value' => variable_get('print_pdf_dompdf_font_subsetting', PRINT_PDF_DOMPDF_FONT_SUBSETTING_DEFAULT),
  31. '#description' => t('Only embed those font characters that are actually used. This can generates smaller PDF files but may significantly slow down processing.'),
  32. );
  33. return system_settings_form($form);
  34. }