简体   繁体   English

我们可以使用 opentbs 删除多个范围的幻灯片吗?

[英]can we delete slides with multiple range using opentbs?

currently we are doing this, which is working fine, but i was trying to delete slide with multiple range目前我们正在这样做,这工作正常,但我试图删除具有多个范围的幻灯片

 $slides_to_deletea = range(3, $num_slides);   
 $TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);

can we delete multiple slide from different range我们可以从不同范围内删除多张幻灯片吗

$slides_to_deletea = range(3, 5);
$slides_to_deletea = range(8, 12);

i tried this https://www.tinybutstrong.com/opentbs.php?doc#opentbs_delete_sheets我试过这个https://www.tinybutstrong.com/opentbs.php?doc#opentbs_delete_sheets

and also i was wondering if we can merge slides after deleting?而且我想知道我们是否可以在删除后合并幻灯片?

can we delete multiple slide from different range我们可以从不同范围内删除多张幻灯片吗

Yes.是的。

Example #1示例 #1

$slides_to_deletea = range(3, 5);  
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);

// continue to merge as you wish here…

$slides_to_deletea = range(8, 12);
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);

Example #2示例 #2

$slides_to_deletea = range(3, 5);  
$slides_to_deletea = array_merge($slides_to_deletea, range(8, 12));
$TBS->PlugIn(OPENTBS_DELETE_SLIDES, $slides_to_deletea);

and also i was wondering if we can merge slides after deleting?而且我想知道我们是否可以在删除后合并幻灯片?

Yes.是的。 When you use OPENTBS_DELETE_SLIDES, slides are only marked to be deleted.当您使用 OPENTBS_DELETE_SLIDES 时,幻灯片仅被标记为删除。 And slides (as well as sheets) are actually deleted during the final merging process only.幻灯片(以及工作表)实际上仅在最终合并过程中被删除。 That is when you call Show() .那是您调用Show()的时候。 This enables you to undo a delete, and also to keep the numbering of slides after a delete, so that you can continue to drive the merging as you wish using a constant numbering.这使您能够撤消删除,并在删除后保留幻灯片的编号,以便您可以使用恒定编号继续推动合并。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM