Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

 

 

 

Labels (3)
3 Replies
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

Hi Nikhil,

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
Anonymous
Not applicable
Author

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