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

Extracting .pdf file into separate .png (image) files and move the .png files into another folder

Hi All,

My requirements is this:

1. Need to extract a pdf file into png files. If the pdf file has 5 pages, meaning it will have 5 png files with each page of pdf in each png.

2. Then, move the png files into another directory.

0683p000009M2cl.png

 

For requirement 1, I have done it using routine, call it using tjava.

For requirement 2, I have done it using solution given by rhall_2_0: https://community.talend.com/t5/Design-and-Development/resolved-How-to-copy-files-with-keeping-folde...

 

I manage to output the files and filepath via tlogrow and it all looks correct. But, it gives errors like below:

0683p000009M2lb.png

And it failed to copy the png files into the outputFilePath.

Please advice on what I did wrong. Thanks!

Labels (3)
2 Replies
akumar2301
Specialist II

It is because of header .Process is trying to read "filetoCopy" as filename to copy.

 

You need to somehow exclude header information before passing filenames to tfilecopy.

Anonymous
Not applicable
Author

 Abishek,

Meaning that I need to eliminate the filepath in fileToCopy and only take the .png filename?

 

Regards.