使用convertapi,我想设置范围,并只转换选定的区域为pdf。这个是可能的吗?
<?php
require_once('vendor/autoload.php');
require_once 'vendor/convertapi/convertapi-
php/lib/ConvertApi/ConvertApi.php';
use \ConvertApi\ConvertApi;
ConvertApi::setApiSecret('secret');
$result = ConvertApi::convert('pdf', [
'File' => 'output/spreadsheet_2.xlsx',
], 'xlsx'
);
$result->saveFiles('output');
?>提前谢谢。
发布于 2019-03-04 16:04:52
目前,您只能设置WorksheetName或WorksheetIndex参数来缩小要转换的范围。
发布于 2021-08-04 08:55:09
如果要转换一定范围的工作表,则只能在该范围内循环,每次从一个工作表转换一个单独的PDF。到目前为止还没有更好的选择。
https://stackoverflow.com/questions/54976738
复制相似问题