Jump to content

Help with downloading Invoice as PDF


Amish1

Recommended Posts

I was attempting to change the logo size on the PDF of my invoices and opened the invoicepdf.tpl file and includes/tcpdf.php files. I changed nothing and closed them and now the download to PDF buttons just returns a page full of symbols. Thank you in advance for any assistance.

Link to comment
Share on other sites

Open the WHMCS download and get it there. If you don't still have an unedited copy, download it from the client area and keep that unchanged for cases like this. DW isn't an issue for edits, usually, but be careful about allowing it to autocorrect or autocomplete tags. That's not desirable in templates.

 

Potentially Filezilla didn't recognize the format and moved or edited it as BINARY or something. It's plain text, so should be moved as ASCII only.

Link to comment
Share on other sites

Brilliant!

When I was first starting out many years ago I recall editing PERL scripts using Windows Notepad and wondering why it was producing errors. Took ages to find out that app is crapp for editing. ;) Uploading was another issue occasionally, and I'd been using WS_FTP pro for years (moved off to Van Dyke's SecureFX and Shell app), as it almost always got the type correct and was configurable. Check Filezilla settings to see if you can specify what to do automatically for tpl files.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated