humanemulator.net — справка.
Продукт, демо и покупка — на
хуманэмулятор.рф
|
Демо
|
Купить
|
API
|
Changelog
get_page_count
get_page_count($path); - Получить число страниц в WORD документеФункция на вход принимает параметры:
После выполнения функции возвращаемое значение будет равно одному из двух :
Пример использования
<?php // Scenario: Get the number of pages in a Word document $xhe_host = getenv("RPABOT_HOST_URL"); // Connect functional objects if not already connected if (!isset($path)){ $path = "../../../Templates/init.php"; require($path); } // info echo "\n<span >wordfile->" . basename (__FILE__) . "</span>\n"; // Initialize variables $filePath = "test/test.docx"; // Open the file to read SYSTEM::$wordfile->open($filePath, true); // Example 1: Get the number of pages in the file echo("1. Get the number of pages in the file: "); $pageCount = SYSTEM::$wordfile->get_page_count($filePath); echo($pageCount); // Close the file SYSTEM::$wordfile->close($filePath); echo "\n"; // Quit the application WINDOW::$app->quit(); ?>
=============================================
wordfile Объекты DOM System Vision Web Window
=============================================
если что-то непонятно или необходимо узнать или считаете что надо добавить по работе этой функции, пишите в комментарии или на наш форум
.