PDF attachment are corrupted via email.

When I open a PDF attachment via my emails it's corrupted with different colors over the page and I can't read it. Opening the same document from my laptop has no problem. I have also had the attachment resent. My iPad never had this problem until recently.

Skydiver119 makes a very good point. The built in PDF reader and the iBooks app will not read fillable form fields in a PDF, so you need a third party app for those types of PDF files. I use Adobe Reader for PDf files. It is free, it allows for annotation, you can create folders, highlighting, form fields, adding a signature, renaming, etc. It's a great app and certainly worth a look.

Similar Messages

  • Some PDF attachments are corrupted when emailed using javamail

    I have a java class that takes a file name, 'To' email, and 'From' email as parameters, and then emails the named file to the specified address as a Multipart email.
    The problem that I am facing is that sometimes the PDF cannot be opened when it arrives because it is corrupt. I know that prior to sending, the PDF opens without issue, so the problem is in the code somewhere.
    There are a couple of oddities here:
    1) PDFs that get corrupted and PDFs that do not get corrupted are generated from the same source (Oracle Report), so I believe that rules out a problem with malformed emails?
    2) If I compare the PDF before it gets sent to the PDF that arrives in my inbox using a hex editor (XVI32), the files are identical except that an extra character is getting added to the corrupt PDFs at the end of each line - hex '0A', which corresponds to ASCII linefeed. This indicates to me that maybe there is a problem with the way that the file is getting encoded when it is read. If I remove all of the 0A characters, the file opens correctly.
    I believe that the code I am using is set up correctly, as I have looked at countless examples of this online to try to find my problem. Hopefully someone can point me in the right direction. Code is included below.
    Thanks,
    Nick
    import java.util.*;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class test {
        public static void main(String args[]) {
            System.out.println("entered TEST email class");
            if (args.length < 3) {
                System.out.println("Invalid number of arguments. Syntax is 'java test <fileName> <fromEmail> <toEmail>'");
            } else {
                System.out.println("Correct number of arguments.");
                send(args[0], args[1], args[2]);
        public static void send(String fileName, String fromEmail, String toEmail) {
            System.out.println("Made it to SEND method");
            try {
                Properties props = new Properties();
                props.put("mail.smtp.host", "email.host");
                Session session = Session.getDefaultInstance(props, null);
                MimeMessage msg = new MimeMessage(session);
                //set from/to email addresses
                System.out.println("Setting email addresses...");
                msg.setFrom(new InternetAddress(fromEmail));
                msg.setRecipients(javax.mail.Message.RecipientType.TO, toEmail);
                //set email subject
                System.out.println("Setting subject...");
                msg.setSubject("email from TEST class");
                //define a body part for the email text and add text to it
                System.out.println("Setting body...");
                MimeBodyPart messageBodyPart = new MimeBodyPart();
                messageBodyPart.setContent("This is the email body. Here is some more body.", "text/html");
                //add code for attachment here!!
                System.out.println("Setting attachment...");
                MimeBodyPart attachFilePart = new MimeBodyPart();
                FileDataSource fds =
                        new FileDataSource(fileName);
                attachFilePart.setDataHandler(new DataHandler(fds));
                attachFilePart.setFileName(fds.getName());
                //define a multipart, and add the text body part and the attachment body part to it
                System.out.println("Building message...");
                Multipart mp = new MimeMultipart();
                mp.addBodyPart(messageBodyPart);
                mp.addBodyPart(attachFilePart);
                //add the multipart to the message
                msg.setContent(mp);
                //send the email
                System.out.println("Sending message...");
                Transport.send(msg);
                System.out.println("Email has been sent!");
            } catch (Exception e) {
                System.out.println("Error in test.send method: " + e.getMessage());
    }Edited by: nbacon on Sep 2, 2010 12:12 PM

    Normally pdf files are text, with any binary data represented as encoded text. If your pdf files
    include raw binary data, JavaMail can be confused. JavaMail will try to guess what encoding
    is appropriate for your data. If the data is mostly text, JavaMail will use quoted-printable encoding,
    and will canonicalize the text lines to end with CRLF (0x0D, 0x0A). A 0x0D in the binary will look
    like an end of line and will turn into 0x0D, 0x0A.
    You can force JavaMail to use base64 encoding for your data, which will preserve the binary
    data exactly, by using
    attachFilePart.setHeader("Content-Transfer-Encoding", "base64");
    after setting the content for the part.
    Alternatively, you could figure out how to generate pdf files that don't include raw binary data.

  • Rename or change PDF attachment when submitting via email

    Hi everybody,
    I have successfully created a form using LC 8.2.1 and I am able to submit it by email.
    My only problem is that I want to change or rename the attached PDF file before submitting it as it gets named automatically by the program. And I don't want it to be renamed automatically.
    Is there a way to do this?
    I have managed to customize the email subject and the body, but I'm failing to get the attached file renamed. I use the following code to customize both the email subject and the body:
    Button1.event__click.resolveNode("#submit").target="mailto:[email protected]?subject=Testing Form 2";
    Thank you very much

    Skydiver119 makes a very good point. The built in PDF reader and the iBooks app will not read fillable form fields in a PDF, so you need a third party app for those types of PDF files. I use Adobe Reader for PDf files. It is free, it allows for annotation, you can create folders, highlighting, form fields, adding a signature, renaming, etc. It's a great app and certainly worth a look.

  • I work for a retailer who sends out e-receipts as pdf attachements.  When the email arrives on any apple product, i see the email with the paperclip icon showing that there is an attachment but i cannot ever see or find the actual attachment.  Any ideas?

    i work for a retailer who sends out e-receipts as pdf attachements.  When the email arrives on any apple product, i see the email with the paperclip icon showing that there is an attachment but i cannot ever see or find the actual attachment.  Any ideas?

    i have scrolled left, right, up and down on iphone4, iphone5 and ipad and the attachment simply does not exist.  It has to be something with the apple mail client setup because for any mail client, if they go to the webemail thru safari, the attachment is there and it can be viewed without issue.
    I know there are plenty of people out there with this issue with the mail clients set up that you access thru the email icon on the iphone and ipad but i cannot find anyone with a resolution.  I cannot find any settings in the mail client setup that has anything to do with attachments or for what attachments can or cannot be read or seen.
    Hopefully someone out there has figured something out because this is an odd one.

  • I used to be able to send document as a PDF or Word Document via email using the toolbar.

    I used to be able to send Pages documents as a PDF or Word Document via email using the Pages toolbar (not the iWork feature).  Lately, it hasn't been working at all.  No email pops up; just nothing.  Is anyone else having this problem?  Any solutions?  I'm running Pages '09 version 4.1.

    This Apple Express Helper is a dumb one.
    File names with # and $ are perfectly treated by the share to Mail feature.
    What is rejected is the slash (/) and it's perfectly normal.
    Since the delivery of the first version of OS X, slash is an illegal character in file names.
    Apple thought that it would be fair to build a piece of code taking care of such chars because they were valid ones in the older operating systems.
    But they expected that users will drop these chars. Alas they didn't and users like you are continuing to play with matches.
    At last, OS X 10.7 removed the extraneous code and now, hosanna, iWork refuse to export files whose name contain the infamous slash.
    Yvan KOENIG (VALLAURIS, France) lundi 9 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Corrupt PDF and other files via eMail?

    Hi Everyone
    Having strange going on with the printers of late.
    I've used the exact same PDF settings for about 7 years and never have an issue.
    I sent a PDF to the printers last week and the printed product had our logo printed incorrectly on it (there wasn't any time for a colour proof).
    What happened was that the logo is built in CMYK, but the logo only printed 100% black areas of the logo - basically the backing of the logo is in black and that's all that printed.
    The printers couldn't explain it and it's the same logo that's been used with other printers around that time and since then.
    All is fine with the logo.
    Today I sent a cover to the printers and there's an advert on the right hand side of the document that has corrupted. I opened the PDF I sent and all is fine.
    The printer emailed me back what I sent to him and that seems to be corrupt - I can't explain it.
    What I have done is sent him a link to download the file from my Dropbox - which bypasses the file hitting the email altogether.
    When they got the file it was perfectly fine and printed just fine.
    As a test I sent the file several friends of mine who all opened it on various machines, and printed it successfully on various devices.
    The only common denominator here is that when I send the printer the file via Email it gets corrupted (nobody else I sent it to experienced any corruption).
    What exactly can an email system/firewall/anti-virus or other variable possibly affect a PDF?
    As a sidenote: I packaged the InDesign file and zipped it and sent that too - and that too got corrupted and the printers could not open it.

    Email notoriously damages PDF files, so I'd recommend using a Dropbox or similar approach as standard.
    The causes of corruption can be very hard to track down and can include subtle incompatibilities between email programs, size limits, failure of email programs to treat PDFs as binary, and automatic processing of email, such as corporate signatures or antispam.

  • Dunning letter (email) PDF attachment or body of email

    Hi experts,
    What is the industry practice for dunning letters when sent via email? Attach them as a pdf to the email, or add all the content of the dunning letter to the body of the email to make it easier for the customer to receive the message?
    Thanks,
    Mario

    Hi Mario,
    It all depends on the functionality that and payment option that are provided.
    If the dunning letters contains and payment/remittance slip(through which customer can make payment in bank, outlet or post office) than the letter should go as PDF attached to mail with body saying that its the reminder for payment being missed,
    But if the payment option is not like as described above than you can send the the letter in html body mail.
    Regards

  • Open PDF attachment at iBooks from email

    If I open email's PDF attachment by iBooks, then all email contents will be disappeared, I need to reset all iPhone 4's setting.

    In article <[email protected]>, Jhpoot wrote:
    > They are working in a Citrix Xenapp 6.5 environment on Windows 2008R2
    > (it also happens if working in a RDS session)
    >
    Are you trying to say that all of the apps mentioned are running as
    XENapps? If not please specify which are local vs remote.
    What is the client OS being run as that may also factor in.
    Worth trying another PDF reader such as FoxIT reader to better see
    which side is driving that behaviour.
    Andy of
    KonecnyConsulting.ca in Toronto
    Knowledge Partner
    http://forums.novell.com/member.php/75037-konecnya
    If you find a post helpful and are logged in the Web interface, please
    show your appreciation by clicking on the star below. Thanks!

  • How to view ms word, xls or pdf attachment​s in my emails

    How do I view attachements in z10 gmail emails.  I thought you just click on the attachment and it will view, but this doesn't seem to work.

    Hey Themailman,
    Welcome to the BlackBerry® Support Community Forums.
    You are correct you should be able to touch the attachment and the attachment should open, I have a couple questions:
    Have you tested with multiple attachments?
    What size is the attachment?
    I look forward to hearing back from you to help resolve this issue.
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to open a pdf attachment from a pc  email

    recieved email from a pc customer with a pdf atatchment  how do i open this ?
    ( new mac user )

    You have lots of options but my typical method is to select the PDF's icon in the email message and then right click (Control Click also works). This brings up a contextual menu that lets you choose whether to open it or save it. You can also drag the PDF's icon from Mail to the desktop or a folder and double click it.

  • Online php form (inserts) in pdf form and send via email

    So first hello all.
    There are 4 PDF Forms amd 4 php forms on a website.
    The user should be able to fill out the php form, click on send and the inserts from the user should be stored in the pdf form and send to an email adress.
    I know that there are 3rd party tools, the convert it to a image, draw the inserts and convert it back.
    But i want to know, how to do it with acrobat itself.
    Is there any way to put varaibles in the pdf where php can set (fill)
    If this is impossible:
    I have heard, that there is a server version from acrobat who can manage this.
    The information about this is rarly like i dont understand how much the costs are.
    First : price x (for the server software itself)   
    Second: price y (for every processed document)
    Many thanks in advance
    IT Technik Schiedt

    You cannot use Acrobat on a server in that manner. Acrobat is licensed for one user one system at a time.
    You can create and FDF file with the form field data and use that data to fill-in a PDF. You needd to create a unique PDF that could be added to an email and then deleted. You could also accumulate the data in a database.

  • PDF attachments are changed when emailed

    I have a user that whenever she creates or prints a PDF (Adobe 8 Professional) and then tries to email it within Adobe (going to file -> attach to an email), it converts to either a winmail.dat, .eml or a .mht file when the person receives it. It only does this when she sends to someone not using outlook. If she attaches the pdf outside of Adobe, then it works. Rich-text is turned off in Outlook and Adobe is patched and up to date. Any suggestions???? This is driving me crazy!!!!!!!!!

    Have you tried changing the message format in Outlook to HTML?

  • Naming of PDF when submitting form via email...

    Is there a way to name the pdf that gets attached to the email when using the submit by email button? currently it seems to assign a random selection of characters as the name of the pdf.

    Please see following thread:
    http://forums.adobe.com/message/4450906

  • Pdfs attached to my incoming emails come in what looks to me like html format of a pdf

    how do I view a pdf email attachmet that comes in html format?

    Dear Pat,
    I have solved the problem.
    My email program has three options to click on for any attachment:
    click on the attachment;
    click on "Download";
    click on "View".
    I had tried View and the attachment itself and got that screenshot above, neither of which were any good to me.
    Then I tried Download and the attachment downloaded itself as a .pdf, which of course I was able to open.
    Thanks for your time and patience.

  • Can I send a PDF with added comments via email? When the reciever of the email opens the PDF they don't recieve any of the comments.

    I currently use the free adobe pdf reader. I am allowed to comment on PDF's but when I save the file and send the file with the comments the receiver of the email does not get anyy of the comments. Can anyone help?

    Hi Anubha,
    Thanks for your reply.
    I tried sending myself a pdf document with comments from one email account and I sent it to another email account. I still get the same problem. I basically receive a pdf document with no comments.
    Am I doing something wrong?

Maybe you are looking for