Link to home
Start Free TrialLog in
Avatar of MariaHalt
MariaHaltFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Superdave
Superdave
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of MariaHalt

ASKER

Yep, that was it.  Thank you.