I am working on a project using Java that embedding PDF with text file. So far, I developed and tested on development tool Eclipse, the program run perfectly smooth and the result were as expected.
I try to run the program on unix, program was run, directories and files created as expected. I verified the result by transferring the PDF from unix to window by using winSCP, I try “Binary” and “Text” from Transfer Setting selection, it came out two different problems.
First of all, I clicked “Text” from the Transfer Setting selection, winSCP finished transfer. I opened the PDF and an error occurred, “Insufficient data for image”. I checked the embedded text file, it presented perfectly lines by lines.
Then, I chose “Binary” and winSCP transferred to window completely. I opened the PDF, it showed perfectly. However, the sentences in the embedded text file massed together in one line.
Did I set something wrong or using wrong transfer method? Or something I looked over?
Thankyou in dvance