# How to user PDF::Toolkit.pdftk?

**URL:** <https://www.ruby-forum.com/t/how-to-user-pdf-toolkit-pdftk/191023>\
**Category:** Rails\
**Created:** [July 2, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/how-to-user-pdf-toolkit-pdftk/191023 "2010-07-02T20:35:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 2, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/how-to-user-pdf-toolkit-pdftk/191023/1 "2010-07-02T20:35:38Z")

</div>

Hi,

I tried to fill a PDF fill template with an xdp file by using  
PDF::Toolkit.pdftk(“C:/pdf/fic2028.xdp”, “fill\_form”,  
“C:/pdf/fic2028.pdf”)

But I got the following error  
Errno::ENOENT (No such file or directory - “pdftk” “C:/pdf/fic2028.xdp”  
“fill\_form” “C:/pdf/fic2028.pdf” “-” “dont\_ask”)

I don’t know, I checked, and my files are in the directory

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 6, 2010, 1:15am UTC](https://www.ruby-forum.com/t/how-to-user-pdf-toolkit-pdftk/191023/2 "2010-07-06T01:15:24Z")

</div>

hi

you need to install pdftk binary, i’m not sure if it supports for  
windows but you can check this link

> **[PDFtk - The PDF Toolkit](https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)**
>
> PDFtk is a simple tool for doing everyday things with PDF documents. It comes in three flavors: PDFtk Free, PDFtk Pro, and our original command-line tool PDFtk Server.

On 7/3/10, Mamadou Touré [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I don’t know, I checked, and my files are in the directory  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
blog : [http://adityakircon.blogsome.com](http://adityakircon.blogsome.com)  
ym / twitter : kirconboy  
skype : adit\_skype

Be Nice. Treat others with the same respect you’d want them to treat  
you. We’re all here to learn together. Be tolerant of others who may  
not know everything you know. BRING YOUR SENSE OF HUMOR  
([stackoverflow.com](http://stackoverflow.com))
