
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Encrypt The Existing PDF file using Talend
Dear All,
I would like to encrypt the existing pdf file with some password to send them via mail. I don't want to zip them rather I would prefer if I can make pdf password protected.
Could you please help me here with approach. I tried to use iText java code in talend but seems libraries are not supporting.
Regards,
Veerendra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There are no Talend provided components for your use case. However I would suggest you to check whether any component is available in custom component area under Talend exchange.
If there are no components available, you will have to write the custom java routine for your use case.
Warm Regards,
Nikhil Thampi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply on this.
There is no such component in exchange as well. I have tried it writing the java code but it seems talend does not accept itext java code. I was getting invalid identifier error while importing the itext java libraries. Any of these does not work.
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.Document;
import com.itextpdf.text.Phrase;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
Regards,
Veer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Custom java routine is not supporting the itext code of java which can be used to encrypt the pdf file.
I am getting errors like - 'The import com.itextpdf cannot be resolved' on below imports.
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.Document;
import com.itextpdf.text.Phrase;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
It seems like talend does not support the itextpdf code ?
Regards,
Veerendra
