设置 pdftk Sample.pdf Burst 的输出位置

发布于 2024-11-18 18:16:35 字数 398 浏览 6 评论 0原文

我有一个问题,我正在使用 tdftk 从 php 中分割 pdf 文件的页面。 使用以下命令

$command = escapeshellcmd("pdftk ").escapeshellarg("/var/www/card/card.pdf")." ".escapeshellcmd(" burst");
$result = passthru($command);

它工作得很好,并将页面分割成文件。

现在我的问题是我可以设置存储突发文件的输出位置吗?

默认情况下,它将文件放置在站点 Web 根目录中,因为我希望将文件放置在 /var/www/card/pages/ 目录中。

PDFTK 有什么办法可以做到这一点吗?

请帮我解决这个问题...

I've a question, I am using tdftk to split pages of a pdf file from php.
using following command

$command = escapeshellcmd("pdftk ").escapeshellarg("/var/www/card/card.pdf")." ".escapeshellcmd(" burst");
$result = passthru($command);

it's working very well, and splitting the pages into files.

now my question is can i set the output location where burst files should be store.

by default it is placing the the files at site web root, where as I want the files at /var/www/card/pages/ directory.

is there any way to do this in PDFTK?

Please please help me with this...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

極樂鬼 2024-11-25 18:16:35

我想做完全相同的事情:您可以使用 pdftk 的“output”参数指定输出目录和名称格式。
例如:

pdftk your_file.pdf burst output your_directory/page_%02d.pdf

请参阅 pdftk 文档以获取更多信息:

http:// www.pdflabs.com/docs/pdftk-man-page/#dest-op-burst

希望这有帮助,
文森特

I wanted to do the exact same thing : you can specify the output directory and the name format with the "output" parameter of pdftk.
ex :

pdftk your_file.pdf burst output your_directory/page_%02d.pdf

See the pdftk doc for more informations :

http://www.pdflabs.com/docs/pdftk-man-page/#dest-op-burst

Hope this helps,
Vincent

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文