Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

Problem exporting pdf files via command line FTP

I'm getting pdf files via command line FTP from a remote server...when I open them I'm getting font errors.  When I get the same pdf files via an FTP gui (specifically, WinSCP) they open just fine.
Any ideas what is causing the font errors when using the command line FTP?  Please help.
0
MariaHalt
Asked:
MariaHalt
1 Solution
 
SuperdaveCommented:
Make sure you type bin before the get command?  That could garble it and might default differently on a different FTP client.
0
 
Karl Heinz KremerCommented:
I'll second Superdave's advice: PDF is a binary format, and if you use ftp in text mode, it will modify what it considers to be line endings. There are no line endings in a binary file, so the file ends up being corrupt.
Most command line ftp programs that I've used over the decades default to text or ASCII mode, which means that you need to first switch them to binary mode (with the bin command).

Chances are that there is more broken in your PDF than just the fonts.
0
 
MariaHaltAuthor Commented:
Yep, that was it.  Thank you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now