File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -506,13 +506,13 @@ public function content_to_pdf(
506506
507507 if ($ addDefaultCss ) {
508508 $ basicStyles = [
509- api_get_path (WEB_PUBLIC_PATH ).'assets/bootstrap/dist/css/bootstrap.min.css ' ,
510- api_get_path (WEB_CSS_PATH ).'base.css ' ,
511- api_get_path (WEB_CSS_PATH ) .api_get_visual_theme ().'/default.css '
509+ api_get_path (SYS_PATH ).'web/ assets/bootstrap/dist/css/bootstrap.min.css ' ,
510+ api_get_path (SYS_PATH ).'web/css/ base.css ' ,
511+ api_get_path (SYS_PATH ). ' web/css/themes/ ' .api_get_visual_theme ().'/default.css '
512512 ];
513513 foreach ($ basicStyles as $ style ) {
514514 $ cssContent = file_get_contents ($ style );
515- $ this ->pdf ->WriteHTML (" <style> $ cssContent</style> " , 1 );
515+ $ this ->pdf ->WriteHTML ($ cssContent , 1 );
516516 }
517517 }
518518
You can’t perform that action at this time.
0 commit comments