in reply to Re: Re: saving pdf attachments
in thread saving pdf attachments

It sound like maybe the PDF reader is very critical about line endings. On a windows platform a line ends in \r\n while on *nix platforms a line ends in just \n. It could be that the quotedprintable decoder messes up the newlines.
Although i do not have a clear answer for you, you can test this more by substituting the line endings in the bad pdf with other line endings:
my $pdfContent = MIME::QuotedPrint::decode_qp(join "", @{ $message->{b +ody}->{data} }); $pdfContent =~ s/\n/\r\n/g;
Play a little with the line endings and test it.

Replies are listed 'Best First'.
Re: Re: Re: Re: saving pdf attachments
by busch4al (Novice) on Feb 27, 2003 at 14:49 UTC
    I tried messing with the line endings, and ended up
    with pdfs that open, but the content is missing (blank
    documents). ??? Yet some work perfectly with no
    manipulation of line endings. Thanks for the advice. I'll
    keep plugging away...