________________________________
> From: [email protected]
> To: [email protected]
> Date: Mon, 24 May 2010 11:54:29 -0400
> Subject: [iText-questions] Blank PDF after it is transfered through SMTP
>
>
>
>
>
>
>
> I tried to send generated PDF through SMTP using Java mail api. It puzzled me 
> that the content of PDF once received in email is blank unless the 
> Content-Transfer-Encoding is set to base64. For example,

Do you have any idea what base64 encoding would do? That
may be a good place to start. You could for example extract the
text of your pdf and probably send that without complication 
( shameless taunt for response LOL ). What do you mean by blank?
You opened it in viewer and got blank page or zero length file? 

>
>
> Does iText support other Content-Transfer-Encoding like quoted-printable? Or 
> is there anything wrong with my usage of Java mail?

Only by accident would anyone here know anything about mail or SMTP.
iText supports PDF. you should look at the PDF spec and the meaning of
transfer encoding.

Also, the way to determine the answer is binary diff the two PDF files, before
and after going through the mail. You will probably be able to get some
idea of what happened. Of course, if you really got zero length file may 
not be too informative. I should probably know what happened., but
well I try to only send ASCII in mail. 



>
>
>
> Regards,
>
>
>
> Jiangang Song
>
>
>
>
>
> ________________________________
> Hotmail is redefining busy with tools for the New Busy. Get more from your 
> inbox. See how.
                                          
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to