PDF for XMLDocument

This commit is contained in:
sparkyx 2025-12-05 15:43:38 +01:00
parent c7bf2ebb0c
commit 1a52bfde61
3 changed files with 5 additions and 4 deletions

View file

@ -404,10 +404,10 @@ abstract class XML_Reader
* @param \Database $cn
* @returns \PDF
*/
public function to_pdf(): \PDF_Core
public function to_pdf(): PDF
{
//$pdf = new PDF($cn);
$pdf = new \PDF_Core;
$pdf = new PDF();
$result = $this->get_info();
// $pdf->setDossierInfo(_(" id ") . " " . $result['id']);

View file

@ -19,7 +19,7 @@
// Copyright Author Dany De Bontridder danydb@noalyss.eu
/*!\file
/*!\file pdf.class.php
* \brief API for creating PDF, unicode, based on tfpdf
*@see TFPDF
*/

View file

@ -444,7 +444,8 @@ function noalyss_class_autoloader($class)
'noalyss\xmldocument\document_reference'=>'XMLDocument/document_reference_type.class.php',
'noalyss\xmldocument\binary_object'=>'XMLDocument/document_reference_type.class.php',
'noalyss\xmldocument\xml_reader'=>'XMLDocument/xml_reader.class.php',
"noalyss\xmldocument\xmlcreditnote_reader"=>"XMLDocument/xmlcreditnote_reader.class.php"
"noalyss\xmldocument\xmlcreditnote_reader"=>"XMLDocument/xmlcreditnote_reader.class.php",
"noalyss\xmldocument\pdf"=>"XMLDocument/pdf.class.php"
);
if (isset ($aClass[$class])) {
require_once NOALYSS_INCLUDE . "/" . $aClass[$class];