Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to split pdf files by dragging the file to an icon in the desktop. There is a program line called pdftk that seems to have an option to split pdf files. The syntax seems to be

pdftk <input_files> burst

is there a way that I can create an icon on the desktop that would perform this action?

I tried creating a shortcut to pdftk but dragging a file there does not do anything.

Thank you.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Create a .bat file with the following contents:

@echo off
start pdftk %1 burst

If you drag & drop a file onto that script, it should do what you want.
You just have to make sure, that pdftk is available in the execution context (like by modifying the PATH environment variable).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.