The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a way to operate pdftk within cpanel?

Discussion in 'General Discussion' started by gassrobertpaul, Jun 2, 2014.

  1. gassrobertpaul

    gassrobertpaul Registered

    Joined:
    May 29, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm using classes that generate pdf documents from pre-existing pdf templates and the pdftk-php class isn't working on CPanel. It generates the pdfs from the templates perfectly fine on my local server and the pdfs are working fine with the fpdf and fpdi classes on CPanel, but the pdftk-php class isn't functioning correctly on the CPanel. Although the class runs and produces a temporary file it is producing a corrupted pdf the way it would if no pdf template was present. I suspect that the pdftk.exe file isn't accessing the pdfs on cpanel for some reason. If this is the problem, is there a way around the restriction?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I don't really see how cPanel would have anything to do with this. Without having actually seen the issue you're referencing, perhaps this is a problem with the script being a .exe, which is for Windows?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,460
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. gassrobertpaul

    gassrobertpaul Registered

    Joined:
    May 29, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the information. It looks like I'll have to figure out how to access cpanel from the command line in order to get pdftk to work on the server.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,460
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

Share This Page