Why does Outlook damage pdf files when sending?

P

PJ

When sending a pdf file as an attachment, the recipient gets this error
message: There was an error opening this document. The file is damaged and
could not be repaired. The same files when sent as an attachment from a
different application (hotmail e.g.) open properly so it appears that Outlook
is the culprit.
 
S

Scott S.

The file is being truncated. I have found that this happens if the PDF is
below a certain size (around 10k but it depends). Essentially if the PDF is
a single page and only has a single section compressed with /FLATE, outlook
will truncate it.

I found this generating PDF's from crystal reports. To fix the problem I
put a white image into the Crystal report (ie. one that can't be seen against
the background). This causes the PDF to have more than one "Stream" and
stops it from being truncated. Another solution is to decompress the Stream
and write it back without the /FLATE compression.
 
M

mukhtar

Hi

Im having same problem. When i send PDF as attachment from Outlook, reports
from Crystal Report with single page get corrupts....

Is there any other solution, then the one you wrote.
I have many reports, and is not possible for me to put White Images on all,
coz of performanve issues.

Please reply , if any other solution

Thax
Mukhtar Ahmed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top