on 01-18-2017 1:08 PM
I am getting an pdf file but want to convert it into text attachment . is it possible to do it using module beans ? if yes how ?
Hi Shashi!
You could start trying with iText library:
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.parser.PdfTextExtractor;
try {
PdfReader reader = new PdfReader(INPUTFILE);
int n = reader.getNumberOfPages();
String str=PdfTextExtractor.getTextFromPage(reader, 2); //Extracting the content from a particular page.
System.out.println(str);
reader.close();
}
catch (Exception e) {
System.out.println(e);
}
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sender is proxy from BI system. Also i need to do look up from ecc system.
Actually i am new in java so don't know much on it . I tried to find any link for end to end scenario but unable to get so. Any link for this requirement could have been serve my purpose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much.
Can you also provide me some java mapping code which can convert input payload to text file and send it as an attachment to mail server.
Actually PI itself is converting input payload to PDF using java mapping, now the requirement is changed and they want rather Text file than pdf.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.