Read In Email, parsing Attachments and converting them to PDF

Dear Forum,
When an email arrives, I want to check wether there are attachments present in this email. When there are .GIF, .PNG or .TIFF files attached, I want to convert them to a PDF.
Does anybody knows how to do one of these steps in Java?
1) parsing attachments out of email
2)converting them to PDF
Thank you,
Stefan Tysbaert

In your JavaMail download there is a directory containing examples of JavaMail code. One of those examples covers your first question.
And the second question ("How do I convert a GIF file to PDF?") isn't a question about JavaMail.

Similar Messages

  • When I send an email with attachments and open them on my ipad some of them open but others do not

    When I send an email with attachments and open them on my ipad some of them open but others do not

    What are the types that won't open?
    Do you have an App that can open those types of files?

  • My current os x is 10.9.5, using final cut express vers. 4.0.1.  I have imported .mov clips created with a older mac os x (lion) and converted them to import into fce. after doing this as well as putting clips on the fce timeline when playing back t.h

    My current os x is 10.9.5, using final cut express vers. 4.0.1.  I have imported .mov clips created on a older mac os x (lion) and when I wanted to import them into fce, a quicktime conversion window opened up and converted them (I haven't experienced this in the past). I then imported the converted quicktime clips into my fce project.  After doing this I took selected clips and put those edited clips on the fce timeline.  When playing the video back in the fce timeline,I noticed
    1) the video wasn't playing back smoothly like the original content
    2) when looking at the timecode reading of the timeline, the timecode was sputtering as well as the video and audio.  I exported to quicktime just to see if that was consistent, it was.
    When I play the converted quicktime content independently of fce,  it plays normally (no sputtering of timecode, video and audio.  Need help to resolve the sputtering playback of converted video content in the fce timeline.  I've never experienced this before.  Any suggestions?

    When you say you converted the clips before importing them into FCE, did you convert to AIC or DV and do the converted clips match your FCE Sequence settings exactly?  If not, go back and convert the original files again, using the intended Sequence settings as a guide.
    -DH

  • When reading sent email, the attachments I included in the email to recipient  are not shown.  How can I retain the attachments?

    When send email with attachments and the open the sent mail to read what I sent, the attachemnts I sent are not shown on the mail in my sent folder.  How can I keep the attachments on my mail?

    It will not show anywhere; it is simply your account pic so you know you're using that particular account in Mail (if there is more than one).

  • I am using OS 10.6.8 on my iMac and using Appleworks V 6. I can drag a document or spread sheet to pages V4.1 or numbers v 2.1 and convert them. If i upgrade to Mavericks can i continue to do this?

    I am using OS 10.6.8 on my iMac. I am also using Apple Works V 6, Pages V 4.1 and Numbers V 2.1.  I can drag a document or spreadsheet from Apple Works to Pages or Numbers icons on my doc and convert them to Pages or Numbets documents and spreadsheets.  If I upgrade my OS to Mavericks will I be able to continue these conversions?

    Thanks for your help.  Even though you can drag all documents or spreadsheets in an Appleworks folder at once to a Pages or Numbers icon on the Doc, you end up with all items as seperate Pages or Numbers documents or spreadsheets. Then you the have to move each one into new folder.  Is there a way to transform an entire Appleworks folder into a Pages or Numbers folder?  It would make for much less work.  Again, I appreciate your assistance.

  • Trying to find epoch dates and convert them to dates

    I'm trying to find every epoch time in a string and convert them to a date. I have tried the below with no luck.
    SELECT REGEXP_REPLACE('1315617396271 Impacting: CISCO SAN SWITCH1315617396271 Impacting: CISCO SAN SWITCH'
    ,'([[:digit:]]{10,10})',unixts_to_date('\1'))
    FROM dual
    Result
    Error - ORA-01722: invalid number
    I know the dates are good and the function works fine from the below test.
    select unixts_to_date('1315617396') from dual
    result
    10 September 2011 01:16:36 AM
    Any help with this would be much appreciated!

    Hi,
    I was not able to copy-and-paste your example due to unknown characters (which are displayed as squares on my Ubuntu laptop).
    I modified them replacing those characters by spaces.
    Maybe that won't totally fit your needs, or might behave differently on your system.
    Anyway, I propose the following :Scott@my11g SQL>l
      1  with t as (
      2  select '1315617396  271 Impacting:  CISCO SAN SWITCH  1315617396  271 Impacting:  CISCO SAN SWITCH ' str from dual
      3  union all select '1315417396  123 Impacting:  CISCO SAN SWITCH  1315317396  123 Impacting:  CISCO SAN SWITCH ' from dual
      4  union all select 'I went to France from 1123456789 to 1234567890 and it was great !' from dual
      5  )
      6  ------ end of sample data ------
      7  select
      8       str
      9       ,listagg(strdt) within group (order by n) newstr
    10  from (
    11       select
    12            str
    13            ,n
    14            ,regexp_replace(sstr,'(.*?)\d*$','\1') || (to_date('1970101','yyyymmdd') + regexp_substr(sstr,'\d{10}',1)/3600/24) strdt
    15       from (
    16            select
    17                 str
    18                 ,n
    19                 ,regexp_substr(v.str,'.*?(\d{10}|$)',1,v.n) sstr
    20            from (
    21                 select t.str,
    22                 m.column_value n
    23                 from t
    24                 ,table(cast(multiset(select level
    25                                from dual
    26                                connect by level <= regexp_count(t.str,'.*?\d{10}')+1) as sys.OdciNumberList)) m
    27            ) v
    28       )
    29  )
    30* group by str
    Scott@my11g SQL>/
    STR                                                NEWSTR
    1315417396  123 Impacting:  CISCO SAN SWITCH  1315 06 June      2012 05:43:16 PM  123 Impacting:  CIS
    317396  123 Impacting:  CISCO SAN SWITCH           CO SAN SWITCH  05 June      2012 01:56:36 PM  123
                                                       Impacting:  CISCO SAN SWITCH
    1315617396  271 Impacting:  CISCO SAN SWITCH  1315 09 June      2012 01:16:36 AM  271 Impacting:  CIS
    617396  271 Impacting:  CISCO SAN SWITCH           CO SAN SWITCH  09 June      2012 01:16:36 AM  271
                                                       Impacting:  CISCO SAN SWITCH
    I went to France from 1123456789 to 1234567890 and I went to France from 07 May       2006 11:19:49 P
    it was great !                                    M to 13 November  2009 11:31:30 PM and it was grea
                                                       t !

  • Have an older Macbook Pro 10.6.8 tried to update it to XMavericks. Discovered that my microsoft apps are not compatible. Can I keep my files and convert them?

    Have an older Macbook Pro 10.6.8 tried to update it to XMavericks. Discovered that my microsoft apps are not compatible. Can I keep my files and convert them?

    Use a product such as LibreOffice, the iWork applications, or Microsoft Office 2008 or newer to open them.
    (107914)

  • Remove emails off iPhone and leave them on server.

    Is there a way like on Blackberry to remove emails off iPhone and leave them on the server? I dont' like that all my emails in the server are on my phone and wonce I delete them, they are gone.

    Check your account setting and see what the server is called...if it's something like imap.mail.yahoo.com or imap.aol.com then you have IMAP accounts configured.
    IMAP mails stay on the mail server belonging to Yahoo and AOL and each device you read the mail on communicates with the server and moves the items around, into the Trash and marks them as Read etc. ON THE SERVER.
    Therefore when you look at the server from another device, you will see it exactly how you left it last time.
    POP is different. Each device holds a local copy of the e-mail and can be different to all the other devices, so deleting it on one means it will still be in your Inbox when you look for it on another device, until you delete it on THAT device..
    Both Yahoo and AOL support POP accounts as well as IMAP but you'd need to tell your devide which server to use.
    POP servers are pop.mail.yahoo.com and opo.aol.com
    Those servers are for INCOMING mail.
    Outgoiong mail servers are usually called SMTP.aol.com and SMTP.mail.yahoo.com etc.

  • I am trying to import movie files into to iMovie. They are home videos so I use handbrake and VLC to put them onto the computer and convert them to MPEG-4 files. I successfully imported two of the videos but the others are not working, they are all MPEG-4

    I am trying to import movie files into to iMovie. They are home videos so I use handbrake and VLC to put them onto the computer and convert them to MPEG-4 files. I successfully imported two of the videos but the others are not working, they are all MPEG-4 files. Now, they are not compatible. How to I get them into imovie?

    Hi
    I use
    • DV-PAL or DV-NTSC - or -
    • AIC
    Yours Bengt W

  • SonicStage/Atrac3 files--How do I import these files and convert them??

    This is my problem.
    I used to have SonicStage, I no longer do, but I found some of my old CDs that I made using that program, but the atrac3 files(I believe that's what they're called) aren't compatible with Mac, so now what do I do? I've never converted anything in my life, are there any apps I could download that will rip the unreadable files from my old CDs and convert them into usable mp3 (or whatever) files?
    This is all very foreign to me and any advice would be greatly appreciated.

    Re: SonicStage for Mac

  • Read a Word/Excel doc and convert to PDF

    Can any one suggest a way or source to read a word/excel document and convert it to an PDF.. using Java
    Thanks,
    Satya

    Parse the Excel document with the Apache POI API and generate a PDF document with the Apache FOP API.

  • HT1550 I'm having trouble with importing them into iTunes and converting them at the same time. when i hold down option over the files i can't find where its supposed to say create new version. is this if you're in iTunes?

    I'm having trouble with importing them into iTunes and converting them at the same time. when i hold down option over the files i can't find where its supposed to say create new version. is this if you're in iTunes?

    You can't do it in one step. Add to iTunes first, Once the tracks are in iTunes you may convert to a different format.
    tt2

  • I don't understand.  I use Google Docs to write letters & other forms, then convert them to PDFs using Adobe Acrobat.  If Forms Central closes, will I still be able to do this?

    I don't understand.  I use Google Docs to write letters & other forms, then convert them to PDFs using Adobe Acrobat.  If Forms Central closes, will I still be able to do this?

    Adobe also has Acrobat.com and there is DropBox.com. Adobe has also announced Adobe Document Cloud.
    Forms central provide a subscription service for users with Reader to create simple forms. Apparently this did not meet a majority of users and with the minimal price difference for Acrobat and free web storage the users were better served without it. I expect cloud services will continue to emerge until providers better and more fully understand the user requirements.

  • Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text.  I didn't have this problem with Acrobat 9 standard.  What is the remedy for this.  If this is the best I can expect, I won't be able to use X standard.

    Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text.  I didn't have this problem with Acrobat 9 standard.  What is the remedy for this.  If this is the best I can expect, I won't be able to use X standard.

    I can't imagine any worse workflow than converting to JPEG to edit text, then back to PDF. Text in a PDF is a vector thing, smooth at all resolutions. And JPEG is made for photos. EVERY conversion to JPEG and back loses quality but how much loss there is will vary.
    If you must go to an image format, try PNG.

  • How do I make my already existing check boxes "checkable" [so I can check and uncheck them on PDF Expert]

    How do I make my already existing check boxes on a (PDF Document) checkable - So I can check and uncheck them on PDF Expert or Annotate 101.
    I am using ADOBE Acrobat PRO with millions of options, but no easy "here is how to do the one thing you want to do" anywhere within reason.
    Please help me.
    Thank You

    Can you check and uncheck the boxes in Acrobat?

Maybe you are looking for

  • Problem with java installation on Linux

    HI , I am trying to install jdk on Linux..I am new to java and Linux both. I am trying to download the file for the linux installation onto my home PC(windows XP) and then ftp it to my Linux machine. I need to do this because I have a remote login to

  • Cannot View PDF output in Template Viewer

    Guys I am a newbie to the XML Publisher. I installed the following patches for the Publisher. Trying to view a PDF output via Viewer and getting the following log Log Message:- [042407_110204096][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOPro

  • ICal: how can I start from scratch?

    I'm having recurring and persistent problems with iCal since I bought a new Mac Pro and migrated my user files from my previous computer (G5, which was also running Leopard). At first, alarms weren't working. I read several threads here and went thro

  • Control only the software instrument of one channel strip at a time with one Controller

    Hi people, I have a Nord Lead 2 and a Korg Nanokontrol and I want to use these as Midi controllers in the following way, but don't really know how to set up the system: I have 4 Channelstrips and each has the free software instrument Tyrell N6 insert

  • Pass a date Range from VB to a parameter

    Hello, I'm thinking this is an easy question, but ... In a Visual Studio 2008 VB program, I'm allowing the user to pick a starting and ending date from DateTimePickers. (works fiine). In a CR 2008 report, I have a paramter defined as "pDateRange",  T