Основной сайт хуманэмулятор.рф | Демо | Купить | API | Wiki
System / excelfile
extract_images
extract_images($path,$to_folder); - Вытащить картинки из docx файла в папкуФункция на вход принимает параметры:
После выполнения функции возвращаемое значение будет равно одному из двух :
Пример использования
<?php // Scenario: Extract images from Excel file $xhe_host = getenv("RPABOT_HOST_URL"); // Connect functional objects if not already connected if (!isset($path)){ // Path to the init.php file for connecting to the XHE API $path = "../../../Templates/init.php"; // Including init.php grants access to all classes and functionality for working with the XHE API require($path); } echo "\n<span >excelfile->" . basename(__FILE__) . "</span>\n"; // Initialize Excel SYSTEM::$excel->kill(); // Example 1: Extract images from Excel file to specified directory echo("Example 1: Extract images from Excel file : "); // Extract method arguments into variables $filePath = "test/test.xlsx"; $targetDirectory = "test/images"; $result = SYSTEM::$excelfile->extract_images($filePath, $targetDirectory); if ($result === true) echo("true\n"); else echo("false\n"); // End of script echo "\n"; // Quit application WINDOW::$app->quit(); ?>
=============================================
excelfile Объекты DOM System Vision Web Window
=============================================
если что-то непонятно или необходимо узнать или считаете что надо добавить по работе этой функции, пишите в комментарии или на наш форум
.