设置 pdftk Sample.pdf Burst 的输出位置
我有一个问题,我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想做完全相同的事情:您可以使用 pdftk 的“output”参数指定输出目录和名称格式。
例如:
请参阅 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 :
See the pdftk doc for more informations :
http://www.pdflabs.com/docs/pdftk-man-page/#dest-op-burst
Hope this helps,
Vincent