You are here

interface ConvertToPdfInterface in PDF using mPDF 8.2

Same name and namespace in other branches
  1. 8 src/ConvertToPdfInterface.php \Drupal\pdf_using_mpdf\ConvertToPdfInterface

Provides an interface defining methods needed for PDF generation.

Hierarchy

Expanded class hierarchy of ConvertToPdfInterface

All classes that implement ConvertToPdfInterface

1 file declares its use of ConvertToPdfInterface
ConvertToPdf.php in src/Conversion/ConvertToPdf.php

File

src/ConvertToPdfInterface.php, line 8

Namespace

Drupal\pdf_using_mpdf
View source
interface ConvertToPdfInterface {

  /**
   * Point of call to instantiate the mPDF library
   * and call the generator functions for creating a
   * PDF file.
   *
   * @param string $html
   *   The html that will be converted into PDF content.
   *
   * @param array $settings
   *   Optional. Additional mPDF settings to add and overwrite existing ones
   *   Overwriting mPDF settings is useful when a different PDF settings are
   *   desired for different files per use case
   *
   * @param array $options
   *   An optional array containing usually the context variables used for
   *   token replacement
   */
  function convert($html, $settings = [], $options = []);

}

Members

Namesort descending Modifiers Type Description Overrides
ConvertToPdfInterface::convert function Point of call to instantiate the mPDF library and call the generator functions for creating a PDF file. 1