Problem exporting pdf files via command line FTP

Posted on 2008-11-13
Last Modified: 2012-05-05
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.
Question by:MariaHalt
    LVL 13

    Accepted Solution

    Make sure you type bin before the get command?  That could garble it and might default differently on a different FTP client.
    LVL 44

    Expert Comment

    by:Karl Heinz Kremer
    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.

    Author Closing Comment

    Yep, that was it.  Thank you.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    This article is in response to a question here ( at Experts Exchange. The Original Poster has a scanned signature and wants to make the background transparent so that the signature may be pl…
    This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
    In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
    We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now